K
- the type of keys.V
- the type of associated objects.public class Neighbor<K,V> extends Object implements Comparable<Neighbor<K,V>>
Modifier and Type | Field and Description |
---|---|
double |
distance
The distance between the query and the neighbor.
|
int |
index
The index of neighbor object in the dataset.
|
K |
key
The key of neighbor.
|
V |
value
The data object of neighbor.
|
public K key
public V value
public int index
public double distance
Copyright © 2015. All rights reserved.