Package org.tinspin.index.phtree
Class DistEntryR<T>
- java.lang.Object
-
- org.tinspin.index.phtree.EntryR<T>
-
- org.tinspin.index.phtree.DistEntryR<T>
-
- All Implemented Interfaces:
RectangleEntry<T>,RectangleEntryDist<T>
public class DistEntryR<T> extends EntryR<T> implements RectangleEntryDist<T>
-
-
Constructor Summary
Constructors Constructor Description DistEntryR(double[] min, double[] max, 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.RectangleEntry
lower, upper, value
-
-
-
-
Constructor Detail
-
DistEntryR
public DistEntryR(double[] min, double[] max, T val, double dist)Create a new entry with distance- Parameters:
min- minmax- maxval- valuedist- distance
-
-
Method Detail
-
dist
public double dist()
Description copied from interface:RectangleEntryDistAn entry with distance property. This is, for example, used as a return value for nearest neighbor queries.- Specified by:
distin interfaceRectangleEntryDist<T>- Returns:
- the distance
-
-