|
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public static interface NearestNeighbors.Entry<Coord extends java.lang.Number & java.lang.Comparable<? super Coord>,P extends Point<Coord>,V>
The Entry interface makes accessible the results of a
NearestNeighbors search. An Entry exposes both the
point-value mapping and its distance from the query point.
| Method Summary | |
|---|---|
double |
getDistance()
Returns the distance from result to the query point. |
double |
getDistance2()
Returns the square of the distance from result to the query point. |
java.util.Map.Entry<P,V> |
getNeighbor()
Returns the point-value mapping stored in this query result. |
| Method Detail |
|---|
double getDistance()
getDistance2(). Therefore, repeated calls may be
expensive.
double getDistance2()
java.util.Map.Entry<P,V> getNeighbor()
|
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||