Package elki.index.distancematrix
Class PrecomputedDistanceMatrix.PrecomputedKNNQuery
- java.lang.Object
-
- elki.index.distancematrix.PrecomputedDistanceMatrix.PrecomputedKNNQuery
-
- All Implemented Interfaces:
KNNSearcher<DBIDRef>
- Enclosing class:
- PrecomputedDistanceMatrix<O>
public class PrecomputedDistanceMatrix.PrecomputedKNNQuery extends java.lang.Object implements KNNSearcher<DBIDRef>
kNN query using the distance matrix.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description (package private) DBIDArrayIter
it
Iterator for mapping.
-
Constructor Summary
Constructors Constructor Description PrecomputedKNNQuery()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KNNList
getKNN(DBIDRef id, int k)
Get the k nearest neighbors for a particular object.
-
-
-
Field Detail
-
it
DBIDArrayIter it
Iterator for mapping.
-
-
Method Detail
-
getKNN
public KNNList getKNN(DBIDRef id, int k)
Description copied from interface:KNNSearcher
Get the k nearest neighbors for a particular object.- Specified by:
getKNN
in interfaceKNNSearcher<DBIDRef>
- Parameters:
id
- query objectk
- Number of neighbors requested- Returns:
- neighbors
-
-