D
- Distance typepublic interface KNNResult<D extends Distance<D>> extends Collection<DistanceResultPair<D>>
Modifier and Type | Method and Description |
---|---|
ArrayDBIDs |
asDBIDs()
View as ArrayDBIDs
|
List<D> |
asDistanceList()
View as list of distances
|
DistanceResultPair<D> |
get(int index)
Direct object access.
|
int |
getK()
Get the K parameter (note: this may be less than the size of the list!)
|
D |
getKNNDistance()
Get the distance to the k nearest neighbor, or maxdist otherwise.
|
int |
size()
Size
|
int size()
size
in interface Collection<DistanceResultPair<D extends Distance<D>>>
int getK()
DistanceResultPair<D> get(int index)
index
- D getKNNDistance()
ArrayDBIDs asDBIDs()