Package org.tinspin.index.phtree
Class DistEntryP<T>
- java.lang.Object
-
- org.tinspin.index.phtree.EntryP<T>
-
- org.tinspin.index.phtree.DistEntryP<T>
-
- All Implemented Interfaces:
PointEntry<T>,PointEntryDist<T>
public class DistEntryP<T> extends EntryP<T> implements PointEntryDist<T>
-
-
Constructor Summary
Constructors Constructor Description DistEntryP(double[] point, T val, double dist)Create a new entry with distance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubledist()An entry with distance property.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.tinspin.index.PointEntry
point, value
-
-
-
-
Constructor Detail
-
DistEntryP
public DistEntryP(double[] point, T val, double dist)Create a new entry with distance- Parameters:
point- pointval- valuedist- distance
-
-
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
-
-