Package elki.index.preprocessed.knn
Class SpacefillingKNNPreprocessor.SpaceFillingKNNQuery
- java.lang.Object
-
- elki.index.preprocessed.knn.SpacefillingKNNPreprocessor.SpaceFillingKNNQuery
-
- All Implemented Interfaces:
KNNSearcher<DBIDRef>
- Enclosing class:
- SpacefillingKNNPreprocessor<O extends NumberVector>
protected class SpacefillingKNNPreprocessor.SpaceFillingKNNQuery extends java.lang.Object implements KNNSearcher<DBIDRef>
KNN Query processor for space filling curves- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description (package private) DistanceQuery<O>
distq
Distance query to use for refinement
-
Constructor Summary
Constructors Constructor Description SpaceFillingKNNQuery(DistanceQuery<O> distanceQuery)
Constructor.
-
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
-
distq
DistanceQuery<O extends NumberVector> distq
Distance query to use for refinement
-
-
Constructor Detail
-
SpaceFillingKNNQuery
public SpaceFillingKNNQuery(DistanceQuery<O> distanceQuery)
Constructor.- Parameters:
distanceQuery
- Distance query to use for refinement
-
-
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
-
-