T
- type of the tokenpublic final class OverlapCoefficient<T> extends Object implements SetMetric<T>
overlap_coefficient(q,r) = (|q & r|) / min{|q|, |r|}
Related to the Jaccard index.
This class is immutable and thread-safe.
JaccardSimilarity
,
Wikipedia -
Overlap CoefficientConstructor and Description |
---|
OverlapCoefficient() |
Modifier and Type | Method and Description |
---|---|
float |
compare(Set<T> a,
Set<T> b)
Measures the similarity between sets a and b.
|
String |
toString() |
public float compare(Set<T> a, Set<T> b)
SetMetric
Copyright © 2014–2018. All rights reserved.