Class NearestNeighbourSearch.NeighborNode

  • Enclosing class:
    NearestNeighbourSearch

    protected class NearestNeighbourSearch.NeighborNode
    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

      • m_Instance

        public Instance m_Instance
        The neighbor instance.
      • m_Distance

        public double m_Distance
        The distance from the current instance to this neighbor.
    • Constructor Detail

      • NeighborNode

        public NeighborNode​(double distance,
                            Instance instance,
                            NearestNeighbourSearch.NeighborNode next)
        Create a new neighbor node.
        Parameters:
        distance - the distance to the neighbor
        instance - the neighbor instance
        next - the next neighbor node
      • NeighborNode

        public NeighborNode​(double distance,
                            Instance instance)
        Create a new neighbor node that doesn't link to any other nodes.
        Parameters:
        distance - the distance to the neighbor
        instance - the neighbor instance