protected class NaiveProjectedKNNPreprocessor.NaiveProjectedKNNQuery extends Object implements KNNQuery<O>
Modifier and Type | Field and Description |
---|---|
(package private) DistanceQuery<O> |
distq
Distance query to use for refinement
|
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
NaiveProjectedKNNPreprocessor.NaiveProjectedKNNQuery(DistanceQuery<O> distanceQuery)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
List<KNNList> |
getKNNForBulkDBIDs(ArrayDBIDs ids,
int k)
Bulk query method
|
KNNList |
getKNNForDBID(DBIDRef id,
int k)
Get the k nearest neighbors for a particular id.
|
KNNList |
getKNNForObject(O obj,
int k)
Get the k nearest neighbors for a particular id.
|
DistanceQuery<O extends NumberVector> distq
public NaiveProjectedKNNPreprocessor.NaiveProjectedKNNQuery(DistanceQuery<O> distanceQuery)
distanceQuery
- Distance query to use for refinementpublic KNNList getKNNForDBID(DBIDRef id, int k)
KNNQuery
getKNNForDBID
in interface KNNQuery<O extends NumberVector>
id
- query object IDk
- Number of neighbors requestedpublic List<KNNList> getKNNForBulkDBIDs(ArrayDBIDs ids, int k)
KNNQuery
getKNNForBulkDBIDs
in interface KNNQuery<O extends NumberVector>
ids
- query object IDsk
- Number of neighbors requestedpublic KNNList getKNNForObject(O obj, int k)
KNNQuery
getKNNForObject
in interface KNNQuery<O extends NumberVector>
obj
- Query objectk
- Number of neighbors requestedCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.