Class NearestNeighbourSearch.MyHeapElement

  • Enclosing class:
    NearestNeighbourSearch

    protected class NearestNeighbourSearch.MyHeapElement
    extends Object
    A class for storing data about a neighboring instance.
    Version:
    $Revision: 8034 $
    Author:
    Ashraf M. Kibriya (amk14[at-the-rate]cs[dot]waikato[dot]ac[dot]nz)
    • Field Detail

      • index

        public int index
        the index of this element.
      • distance

        public double distance
        the distance of this element.
    • Constructor Detail

      • MyHeapElement

        public MyHeapElement​(int i,
                             double d)
        constructor.
        Parameters:
        i - the index
        d - the distance