Package elki.index.preprocessed.knn
Class SpatialPair<K,V extends elki.data.spatial.SpatialComparable>
- java.lang.Object
-
- elki.utilities.pairs.Pair<K,V>
-
- elki.index.preprocessed.knn.SpatialPair<K,V>
-
- All Implemented Interfaces:
elki.data.spatial.SpatialComparable
public class SpatialPair<K,V extends elki.data.spatial.SpatialComparable> extends elki.utilities.pairs.Pair<K,V> implements elki.data.spatial.SpatialComparableDefines the requirements for objects that can be indexed by a Spatial Index, which are spatial nodes or data objects.- Since:
- 0.4.0
- Author:
- Elke Achtert
-
-
Constructor Summary
Constructors Constructor Description SpatialPair(K key, V spatial)Constructor: bundle a key and a spatial comparable
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDimensionality()doublegetMax(int dimension)doublegetMin(int dimension)
-
-
-
Method Detail
-
getDimensionality
public int getDimensionality()
- Specified by:
getDimensionalityin interfaceelki.data.spatial.SpatialComparable
-
getMin
public double getMin(int dimension)
- Specified by:
getMinin interfaceelki.data.spatial.SpatialComparable
-
getMax
public double getMax(int dimension)
- Specified by:
getMaxin interfaceelki.data.spatial.SpatialComparable
-
-