For further explanation about Jaccard Similarity, refer https://en.wikipedia.org/wiki/Jaccard_index
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final JaccardSimilarity | INSTANCE
The singleton instance. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Double | Returns: The Jaccard Similarity of two set character sequence passed as input.first input sequence. left, final CharSequence second input sequence. right)Implements org. Computes the Jaccard Similarity of two set character sequence passed as input. |
| public < The type of similarity score unit. E> Double | Returns: The Jaccard Similarity of two set character sequence passed as input.first input sequence. left, final SimilarityInput<E> second input sequence. right)Implements org. Computes the Jaccard Similarity of two character sequences passed as input. |
| INSTANCE | back to summary |
|---|---|
| pack-priv static final JaccardSimilarity INSTANCE The singleton instance. | |
| JaccardSimilarity | back to summary |
|---|---|
| public JaccardSimilarity() Creates a new instance. | |
| apply | back to summary |
|---|---|
| public Double apply(final CharSequence left, final CharSequence right) Implements org. Computes the Jaccard Similarity of two set character sequence passed as input.
| |
| apply | back to summary |
|---|---|
| public <E> Double apply(final SimilarityInput<E> left, final SimilarityInput<E> right) Implements org. Computes the Jaccard Similarity of two character sequences passed as input. Does the calculation by identifying the union (characters in at least one of the two sets) of the two sets and intersection (characters which are present in set one which are present in set two)
| |