weka.classifiers.sparse
Class IBkMetric.NeighborNode

java.lang.Object
  extended byweka.classifiers.sparse.IBkMetric.NeighborNode
Enclosing class:
IBkMetric

protected class IBkMetric.NeighborNode
extends java.lang.Object


Field Summary
protected  double m_Distance
          The distance from the current instance to this neighbor
protected  Instance m_Instance
          The neighbor instance
protected  IBkMetric.NeighborNode m_Next
          A link to the next neighbor instance
 
Constructor Summary
IBkMetric.NeighborNode(double distance, Instance instance)
          Create a new neighbor node that doesn't link to any other nodes.
IBkMetric.NeighborNode(double distance, Instance instance, IBkMetric.NeighborNode next)
          Create a new neighbor node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_Instance

protected Instance m_Instance
The neighbor instance


m_Distance

protected double m_Distance
The distance from the current instance to this neighbor


m_Next

protected IBkMetric.NeighborNode m_Next
A link to the next neighbor instance

Constructor Detail

IBkMetric.NeighborNode

public IBkMetric.NeighborNode(double distance,
                              Instance instance,
                              IBkMetric.NeighborNode next)
Create a new neighbor node.

Parameters:
distance - the distance to the neighbor
instance - the neighbor instance
next - the next neighbor node

IBkMetric.NeighborNode

public IBkMetric.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