EditDistance<Double>, SimilarityScore<Double>public class JaccardDistance extends Object implements EditDistance<Double>
For further explanation about Jaccard Distance, refer https://en.wikipedia.org/wiki/Jaccard_index
| Constructor | Description |
|---|---|
JaccardDistance() |
| Modifier and Type | Method | Description |
|---|---|---|
Double |
apply(CharSequence left,
CharSequence right) |
Calculates Jaccard distance of two set character sequence passed as
input.
|
public Double apply(CharSequence left, CharSequence right)
apply in interface EditDistance<Double>apply in interface SimilarityScore<Double>left - first character sequenceright - second character sequenceIllegalArgumentException - if either String input nullCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.