protected class NearestNeighbourSearch.NeighborNode extends java.lang.Object implements RevisionHandler
| 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.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getRevision()
Returns the revision string.
|
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 instancepublic java.lang.String getRevision()
getRevision in interface RevisionHandler