|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.hogent.tarsos.lsh.families.EuclideanDistance
public class EuclideanDistance
Calculates the Euclidean distance between two vectors. Sometimes this is also called the L2 distance.
Constructor Summary | |
---|---|
EuclideanDistance()
|
Method Summary | |
---|---|
double |
distance(Vector one,
Vector other)
Calculate the distance between two vectors. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EuclideanDistance()
Method Detail |
---|
public double distance(Vector one, Vector other)
DistanceMeasure
distance
in interface DistanceMeasure
one
- The first vector.other
- The other vector
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |