O
- Object typepublic class MTreeKNNQuery<O> extends AbstractDistanceKNNQuery<O>
Modifier and Type | Field and Description |
---|---|
protected AbstractMTree<O,?,?,?> |
index
The index to use
|
distanceQuery
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
MTreeKNNQuery(AbstractMTree<O,?,?,?> index,
DistanceQuery<O> distanceQuery)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
KNNList |
getKNNForObject(O q,
int k)
Get the k nearest neighbors for a particular id.
|
getKNNForBulkDBIDs, getKNNForDBID, getRelation
protected final AbstractMTree<O,?,?,?> index
public MTreeKNNQuery(AbstractMTree<O,?,?,?> index, DistanceQuery<O> distanceQuery)
index
- Index to usedistanceQuery
- Distance query usedpublic KNNList getKNNForObject(O q, int k)
KNNQuery
getKNNForObject
in interface KNNQuery<O>
getKNNForObject
in class AbstractDistanceKNNQuery<O>
q
- Query objectk
- Number of neighbors requestedCopyright © 2019 ELKI Development Team. License information.