Constructor and Description |
---|
SimpleNeighbor(T key,
int index,
double distance)
Constructor.
|
public SimpleNeighbor(T key, int index, double distance)
key
- the neighbor object.index
- the index of neighbor object in the dataset.distance
- the distance between the query and the neighbor.