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 JaccardDistance()
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 null
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.