Class NearestNeighbourSearch.NeighborNode
- java.lang.Object
-
- moa.classifiers.lazy.neighboursearch.NearestNeighbourSearch.NeighborNode
-
- Enclosing class:
- NearestNeighbourSearch
protected class NearestNeighbourSearch.NeighborNode extends Object
A class for storing data about a neighboring instance.- Version:
- $Revision: 8034 $
- Author:
- Ashraf M. Kibriya (amk14[at-the-rate]cs[dot]waikato[dot]ac[dot]nz)
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor 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.
-
-
-
Field Detail
-
m_Instance
public Instance m_Instance
The neighbor instance.
-
m_Distance
public double m_Distance
The distance from the current instance to this neighbor.
-
m_Next
public NearestNeighbourSearch.NeighborNode m_Next
A link to the next neighbor instance.
-
-
Constructor Detail
-
NeighborNode
public NeighborNode(double distance, Instance instance, NearestNeighbourSearch.NeighborNode next)
Create a new neighbor node.- Parameters:
distance
- the distance to the neighborinstance
- the neighbor instancenext
- the next neighbor node
-
NeighborNode
public NeighborNode(double distance, Instance instance)
Create a new neighbor node that doesn't link to any other nodes.- Parameters:
distance
- the distance to the neighborinstance
- the neighbor instance
-
-