Package org.tinspin.index.covertree
Class PointDist<T>
- java.lang.Object
-
- org.tinspin.index.covertree.Point<T>
-
- org.tinspin.index.covertree.PointDist<T>
-
- All Implemented Interfaces:
PointEntry<T>,PointEntryDist<T>
public class PointDist<T> extends Point<T> implements PointEntryDist<T>
-
-
Field Summary
Fields Modifier and Type Field Description static Comparator<PointDist<?>>COMPARATOR
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubledist()An entry with distance property.voidset(double[] point, T val, double dist)voidset(Point<T> point, double dist)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.tinspin.index.PointEntry
point, value
-
-
-
-
Field Detail
-
COMPARATOR
public static final Comparator<PointDist<?>> COMPARATOR
-
-
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
-
set
public void set(double[] point, T val, double dist)
-
-