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