Package org.tinspin.index.kdtree
Class KDEntryDist<T>
- java.lang.Object
-
- org.tinspin.index.kdtree.KDEntryDist<T>
-
- All Implemented Interfaces:
PointEntry<T>,PointEntryDist<T>
public class KDEntryDist<T> extends Object implements PointEntryDist<T>
-
-
Field Summary
Fields Modifier and Type Field Description static org.tinspin.index.kdtree.KDEntryDist.QEntryComparatorCOMP
-
Constructor Summary
Constructors Constructor Description KDEntryDist(Node<T> node, double dist)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubledist()An entry with distance property.double[]point()Tvalue()
-
-
-
Method Detail
-
dist
public double dist()
Description copied from interface:PointEntryDistAn entry with distance property. This is, for example, used as a return value for nearest neighbour queries.- Specified by:
distin interfacePointEntryDist<T>- Returns:
- the distance
-
point
public double[] point()
- Specified by:
pointin interfacePointEntry<T>- Returns:
- The coordinates of the entry.
-
value
public T value()
- Specified by:
valuein interfacePointEntry<T>- Returns:
- The value associated with the rectangle or point.
-
-