D
- Distance typeclass ProjectedIndex.ProjectedKNNQuery<D extends Distance<D>> extends Object implements KNNQuery<O,D>
Modifier and Type | Field and Description |
---|---|
(package private) DistanceQuery<O,D> |
distq
Distance query for refinement.
|
(package private) KNNQuery<I,D> |
inner
Inner kNN query.
|
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
ProjectedIndex.ProjectedKNNQuery(DistanceQuery<O,D> distanceQuery,
KNNQuery<I,D> inner)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
List<? extends KNNList<D>> |
getKNNForBulkDBIDs(ArrayDBIDs ids,
int k)
Bulk query method
|
KNNList<D> |
getKNNForDBID(DBIDRef id,
int k)
Get the k nearest neighbors for a particular id.
|
KNNList<D> |
getKNNForObject(O obj,
int k)
Get the k nearest neighbors for a particular id.
|
DistanceQuery<O,D extends Distance<D>> distq
public KNNList<D> getKNNForDBID(DBIDRef id, int k)
KNNQuery
public List<? extends KNNList<D>> getKNNForBulkDBIDs(ArrayDBIDs ids, int k)
KNNQuery