public class SetJaccardSimilarity extends SetSimilarity
data, dense
Constructor and Description |
---|
SetJaccardSimilarity(FastPreferenceData<?,?> data,
boolean dense)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected double |
sim(int intersectionSize,
int nA,
int nB)
Calculates the similarity value.
|
similarElems, similarity
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
similarity
public SetJaccardSimilarity(FastPreferenceData<?,?> data, boolean dense)
data
- preference datadense
- true for array-based calculations, false to map-basedprotected double sim(int intersectionSize, int nA, int nB)
SetSimilarity
sim
in class SetSimilarity
intersectionSize
- size of the intersection of setsnA
- size of the first setnB
- size of the second setCopyright © 2016. All rights reserved.