Package org.tinspin.index
Class Index.PointEntryKnn<T>
- java.lang.Object
-
- org.tinspin.index.Index.PointEntry<T>
-
- org.tinspin.index.Index.PointEntryKnn<T>
-
- Enclosing interface:
- Index
public static class Index.PointEntryKnn<T> extends Index.PointEntry<T>
-
-
Constructor Summary
Constructors Constructor Description PointEntryKnn(double[] point, T value, double dist)PointEntryKnn(Index.PointEntry<T> entry, double dist)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubledist()An entry with distance property.voidset(double[] point, T value, double dist)voidset(Index.PointEntry<T> entry, double dist)
-
-
-
Constructor Detail
-
PointEntryKnn
public PointEntryKnn(double[] point, T value, double dist)
-
PointEntryKnn
public PointEntryKnn(Index.PointEntry<T> entry, double dist)
-
-
Method Detail
-
dist
public double dist()
An entry with distance property. This is, for example, used as a return value for nearest neighbour queries.- Returns:
- the distance
-
set
public void set(double[] point, T value, double dist)
-
set
public void set(Index.PointEntry<T> entry, double dist)
-
-