|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface KDComparator<T>
Method Summary | |
---|---|
int |
compare(T a,
T b,
int dim)
Compares a(dim) to b(dim) |
double |
distance(T a,
T b)
Computes the distance between a and b for nearest neighbour searches |
double |
distance(T a,
T b,
int dim)
Computes the axis-aligned distance between a and b, ||a(dim)-b(dim)|| for nearest neighbour searches |
Method Detail |
---|
int compare(T a, T b, int dim)
double distance(T a, T b)
double distance(T a, T b, int dim)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |