Package org.tinspin.index
Class Index.BoxEntryKnn<T>
- java.lang.Object
-
- org.tinspin.index.Index.BoxEntry<T>
-
- org.tinspin.index.Index.BoxEntryKnn<T>
-
- Enclosing interface:
- Index
public static class Index.BoxEntryKnn<T> extends Index.BoxEntry<T>
-
-
Constructor Summary
Constructors Constructor Description BoxEntryKnn(double[] min, double[] max, T value, double dist)BoxEntryKnn(Index.BoxEntry<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[] min, double[] max, T val, double dist)
-
-
-
Constructor Detail
-
BoxEntryKnn
public BoxEntryKnn(double[] min, double[] max, T value, double dist)
-
BoxEntryKnn
public BoxEntryKnn(Index.BoxEntry<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 neighbor queries.- Returns:
- the distance
-
set
public void set(double[] min, double[] max, T val, double dist)
-
-