Class SpatialPair<K,​V extends elki.data.spatial.SpatialComparable>

  • 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.SpatialComparable
    Defines 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
    • Field Summary

      • Fields inherited from class elki.utilities.pairs.Pair

        first, second
    • 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
      int getDimensionality()  
      double getMax​(int dimension)  
      double getMin​(int dimension)  
      • Methods inherited from class elki.utilities.pairs.Pair

        equals, getFirst, getSecond, hashCode, setFirst, setSecond, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SpatialPair

        public SpatialPair​(K key,
                           V spatial)
        Constructor: bundle a key and a spatial comparable
        Parameters:
        key - key
        spatial - spatial value
    • Method Detail

      • getDimensionality

        public int getDimensionality()
        Specified by:
        getDimensionality in interface elki.data.spatial.SpatialComparable
      • getMin

        public double getMin​(int dimension)
        Specified by:
        getMin in interface elki.data.spatial.SpatialComparable
      • getMax

        public double getMax​(int dimension)
        Specified by:
        getMax in interface elki.data.spatial.SpatialComparable