public class EuclideanDistance extends java.lang.Object implements DistanceMeasure
Constructor and Description |
---|
EuclideanDistance() |
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