T
- the type of key/object.public class SimpleNeighbor<T> extends Neighbor<T,T>
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.Copyright © 2015. All rights reserved.