public class TanimotoDistanceMetric extends Object implements DistanceMetric
http://en.wikipedia.org/wiki/Jaccard_index
,
Serialized FormConstructor and Description |
---|
TanimotoDistanceMetric() |
Modifier and Type | Method and Description |
---|---|
static TanimotoDistanceMetric |
apply() |
protected static void |
checkValidArguments(Vector a,
Vector b) |
double |
distance(Vector a,
Vector b)
Returns the distance between the arguments.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkValidArguments
public static TanimotoDistanceMetric apply()
public double distance(Vector a, Vector b)
DistanceMetric
distance
in interface DistanceMetric
a
- a Vector defining a multi-dimensional point in some spaceb
- a Vector defining a multi-dimensional point in some spaceCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.