public class CosineDistance extends java.lang.Object implements DistanceMeasure
Constructor and Description |
---|
CosineDistance() |
Modifier and Type | Method and Description |
---|---|
double |
distance(Vector one,
Vector other)
Calculate the distance between two vectors.
|
public double distance(Vector one, Vector other)
DistanceMeasure
distance
in interface DistanceMeasure
one
- The first vector.other
- The other vector