EssayTools
JaccardCoefficient
compute the Jaccard coefficient of two arrays
BinaryJaccardCoefficient
compute the binary Jaccard coefficient of two arrays
Calling Sequence
Parameters
Description
Examples
Compatibility
JaccardCoefficient( v1, v2 )
BinaryJaccardCoefficient( v1, v2 )
v1, v2
-
vector or list of integers
The Jaccard coefficient is a measure of similarity between two vectors.
In binary form, where the vectors contain 1's and 0's, the formula can be expressed in set notation.
Both v1 and v2 must be the same size.
In the context of text comparison, v1 and v2 could be a count of the occurrences of certain words within two essay sets. In the binary form v1 and v2 would contain 1 for the presence of a word, and 0 for its absence.
For positive integer counts, the Jaccard and BinaryJaccard coefficients will range from 0 to 1, where 1 is a perfect match, and 0 indicates no overlap. The higher the score in-between, the more similar the vectors.
The Binary form of this command will accept any vector as input and interpret all non-zero entries to 1s.
These functions are part of the EssayTools package, so they can be used in the short form, for example, JaccardCoefficient(..), only after executing the command with(EssayTools). However, they can always be accessed through the long form of the command names by using, for example, EssayTools[JaccardCoefficient](..).
The EssayTools[JaccardCoefficient] and EssayTools[BinaryJaccardCoefficient] commands were introduced in Maple 17.
For more information on Maple 17 changes, see Updates in Maple 17.
See Also
EssayTools[CosineCoefficient]
EssayTools[DiceCoefficient]
StringTools
Download Help Document