Class HilOut.HilFeature

  • All Implemented Interfaces:
    java.lang.Comparable<HilOut.HilFeature>
    Enclosing class:
    HilOut<O extends elki.data.NumberVector>

    static final class HilOut.HilFeature
    extends java.lang.Object
    implements java.lang.Comparable<HilOut.HilFeature>
    Hilbert representation of a single object. Details of this representation are discussed in the main HilOut publication, see "point features".
    Author:
    Jonathan von Brünken
    • Field Summary

      Fields 
      Modifier and Type Field Description
      long[] hilbert
      Hilbert representation TODO: use byte[] to save some memory, but slower?
      elki.database.ids.DBID id
      Object ID
      double lbound
      Lower bound of object
      int level
      Object level
      elki.utilities.datastructures.heap.ObjectHeap<elki.database.ids.DoubleDBIDPair> nn
      Heap with the nearest known neighbors
      elki.database.ids.HashSetModifiableDBIDs nn_keys
      Set representation of the nearest neighbors for faster lookups
      double sum_nn
      Current weight (sum of nn distances)
      double ubound
      Upper bound for object
    • Constructor Summary

      Constructors 
      Constructor Description
      HilFeature​(elki.database.ids.DBID id, elki.utilities.datastructures.heap.ObjectHeap<elki.database.ids.DoubleDBIDPair> nn)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(HilOut.HilFeature o)  
      protected void insert​(elki.database.ids.DBID id, double dt, int k)
      insert function inserts a nearest neighbor into a features nn list and its distance
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • id

        public elki.database.ids.DBID id
        Object ID
      • hilbert

        public long[] hilbert
        Hilbert representation TODO: use byte[] to save some memory, but slower?
      • level

        public int level
        Object level
      • ubound

        public double ubound
        Upper bound for object
      • lbound

        public double lbound
        Lower bound of object
      • nn

        public elki.utilities.datastructures.heap.ObjectHeap<elki.database.ids.DoubleDBIDPair> nn
        Heap with the nearest known neighbors
      • nn_keys

        public elki.database.ids.HashSetModifiableDBIDs nn_keys
        Set representation of the nearest neighbors for faster lookups
      • sum_nn

        public double sum_nn
        Current weight (sum of nn distances)
    • Constructor Detail

      • HilFeature

        public HilFeature​(elki.database.ids.DBID id,
                          elki.utilities.datastructures.heap.ObjectHeap<elki.database.ids.DoubleDBIDPair> nn)
        Constructor.
        Parameters:
        id - Object ID
        nn - Heap for neighbors
    • Method Detail

      • insert

        protected void insert​(elki.database.ids.DBID id,
                              double dt,
                              int k)
        insert function inserts a nearest neighbor into a features nn list and its distance
        Parameters:
        id - DBID of the nearest neighbor
        dt - distance or the neighbor to the features position
        k - K