public class JaccardDistance extends Object implements EditDistance<Double>
For further explanation about Jaccard Distance, refer https://en.wikipedia.org/wiki/Jaccard_index
| Constructor and Description |
|---|
JaccardDistance() |
| Modifier and Type | Method and 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.