|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Metric
A Metric is a function that satisfies the following properties for all x,y, z:
(The last of these properties is called the triangle inequality.)
| Method Summary | |
|---|---|
double |
distance(double[] x,
double[] y)
Calculate the distance between two n-dimensional points |
| Method Detail |
|---|
double distance(double[] x,
double[] y)
x - One n-dimensional pointy - Another n-dimensional point
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||