public class SimplifiedCoverTree.CoverTreeKNNQuery extends AbstractDistanceKNNQuery<O> implements KNNQuery<O>
distanceQuery
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
CoverTreeKNNQuery(DistanceQuery<O> distanceQuery)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
KNNList |
getKNNForObject(O obj,
int k)
Get the k nearest neighbors for a particular id.
|
getKNNForBulkDBIDs, getKNNForDBID, getRelation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getKNNForBulkDBIDs, getKNNForDBID
public CoverTreeKNNQuery(DistanceQuery<O> distanceQuery)
distanceQuery
- Distancepublic KNNList getKNNForObject(O obj, int k)
KNNQuery
getKNNForObject
in interface KNNQuery<O>
getKNNForObject
in class AbstractDistanceKNNQuery<O>
obj
- Query objectk
- Number of neighbors requestedCopyright © 2019 ELKI Development Team. License information.