gov.sandia.cognition.learning.algorithm.nearest
Class KNearestNeighborExhaustive.Neighbor

java.lang.Object
  extended by gov.sandia.cognition.util.AbstractCloneableSerializable
      extended by gov.sandia.cognition.learning.algorithm.nearest.KNearestNeighborExhaustive.Neighbor
All Implemented Interfaces:
CloneableSerializable, Serializable, Cloneable, Comparable<KNearestNeighborExhaustive.Neighbor>
Enclosing class:
KNearestNeighborExhaustive<InputType,OutputType>

protected class KNearestNeighborExhaustive.Neighbor
extends AbstractCloneableSerializable
implements Comparable<KNearestNeighborExhaustive.Neighbor>

Holds neighbor information used during the evaluate method and is put into a priority queue.

See Also:
Serialized Form

Constructor Summary
KNearestNeighborExhaustive.Neighbor(OutputType value, double divergence)
          Creates a new neighbor.
 
Method Summary
 int compareTo(KNearestNeighborExhaustive.Neighbor other)
           
 
Methods inherited from class gov.sandia.cognition.util.AbstractCloneableSerializable
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KNearestNeighborExhaustive.Neighbor

public KNearestNeighborExhaustive.Neighbor(OutputType value,
                                           double divergence)
Creates a new neighbor.

Parameters:
value - The value associated with the neighbor.
divergence -
Method Detail

compareTo

public int compareTo(KNearestNeighborExhaustive.Neighbor other)
Specified by:
compareTo in interface Comparable<KNearestNeighborExhaustive.Neighbor>