protected class NearestNeighbourSearch.NeighborNode extends Object
Modifier and Type | Field and Description |
---|---|
double |
m_Distance
The distance from the current instance to this neighbor.
|
weka.core.Instance |
m_Instance
The neighbor instance.
|
NearestNeighbourSearch.NeighborNode |
m_Next
A link to the next neighbor instance.
|
Constructor and Description |
---|
NearestNeighbourSearch.NeighborNode(double distance,
weka.core.Instance instance)
Create a new neighbor node that doesn't link to any other nodes.
|
NearestNeighbourSearch.NeighborNode(double distance,
weka.core.Instance instance,
NearestNeighbourSearch.NeighborNode next)
Create a new neighbor node.
|
public weka.core.Instance m_Instance
public double m_Distance
public NearestNeighbourSearch.NeighborNode m_Next
public NearestNeighbourSearch.NeighborNode(double distance, weka.core.Instance instance, NearestNeighbourSearch.NeighborNode next)
distance
- the distance to the neighborinstance
- the neighbor instancenext
- the next neighbor nodepublic NearestNeighbourSearch.NeighborNode(double distance, weka.core.Instance instance)
distance
- the distance to the neighborinstance
- the neighbor instanceCopyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.