protected class InMemoryLSHIndex.Instance.LSHKNNQuery extends AbstractRefiningIndex.AbstractKNNQuery
distanceQuery
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
LSHKNNQuery(DistanceQuery<V> distanceQuery)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
KNNList |
getKNNForObject(V obj,
int k)
Get the k nearest neighbors for a particular id.
|
incRefinements, refine
getKNNForBulkDBIDs, getKNNForDBID, getRelation
public LSHKNNQuery(DistanceQuery<V> distanceQuery)
distanceQuery
- public KNNList getKNNForObject(V obj, int k)
KNNQuery
getKNNForObject
in interface KNNQuery<V>
getKNNForObject
in class AbstractDistanceKNNQuery<V>
obj
- Query objectk
- Number of neighbors requestedCopyright © 2019 ELKI Development Team. License information.