
O - Object typepublic class MetricalIndexKNNQuery<O> extends AbstractDistanceKNNQuery<O>
| Modifier and Type | Field and Description |
|---|---|
protected AbstractMTree<O,?,?,?> |
index
The index to use
|
distanceQuery, relationHINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE| Constructor and Description |
|---|
MetricalIndexKNNQuery(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, getKNNForDBIDprotected final AbstractMTree<O,?,?,?> index
public MetricalIndexKNNQuery(AbstractMTree<O,?,?,?> index, DistanceQuery<O> distanceQuery)
index - Index to usedistanceQuery - Distance query usedpublic KNNList getKNNForObject(O q, int k)
KNNQuerygetKNNForObject in interface KNNQuery<O>getKNNForObject in class AbstractDistanceKNNQuery<O>q - Query objectk - Number of neighbors requestedCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.