|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for a set of classes which have a metric function distance(Array i, Array j), which returns a double giving the distance between the two vectors
Method Summary | |
double |
distance(Array i,
Array j)
returns the distance between i and j according to the metric defined in this class |
double |
norm(Array i)
returns the norm of a vector in this metric |
Array |
normalize(Array i)
normalizes vector i to have length 1 in the norm defined in this class |
Method Detail |
public double norm(Array i)
public double distance(Array i, Array j)
public Array normalize(Array i)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |