weka.classifiers.lazy
Class IBk.NeighborNode

java.lang.Object
  extended byweka.classifiers.lazy.IBk.NeighborNode
Enclosing class:
IBk

private class IBk.NeighborNode
extends java.lang.Object


Field Summary
private  double m_Distance
          The distance from the current instance to this neighbor
private  Instance m_Instance
          The neighbor instance
private  IBk.NeighborNode m_Next
          A link to the next neighbor instance
 
Constructor Summary
IBk.NeighborNode(double distance, Instance instance)
          Create a new neighbor node that doesn't link to any other nodes.
IBk.NeighborNode(double distance, Instance instance, IBk.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

private Instance m_Instance
The neighbor instance


m_Distance

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


m_Next

private IBk.NeighborNode m_Next
A link to the next neighbor instance

Constructor Detail

IBk.NeighborNode

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

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

IBk.NeighborNode

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