|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
O
- Object typeD
- Distance typepublic interface KNNQuery<O,D extends Distance<D>>
The interface of an actual instance.
Field Summary |
---|
Fields inherited from interface de.lmu.ifi.dbs.elki.database.query.DatabaseQuery |
---|
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE |
Method Summary | |
---|---|
D |
getDistanceFactory()
Get the distance data type of the function. |
DistanceQuery<O,D> |
getDistanceQuery()
Get the distance query for this function. |
List<List<DistanceResultPair<D>>> |
getKNNForBulkDBIDs(ArrayDBIDs ids,
int k)
Bulk query method |
void |
getKNNForBulkHeaps(Map<DBID,KNNHeap<D>> heaps)
Bulk query method configured by a map. |
List<DistanceResultPair<D>> |
getKNNForDBID(DBID id,
int k)
Get the k nearest neighbors for a particular id. |
List<DistanceResultPair<D>> |
getKNNForObject(O obj,
int k)
Get the k nearest neighbors for a particular id. |
Relation<? extends O> |
getRelation()
Access the underlying data query. |
Method Detail |
---|
List<DistanceResultPair<D>> getKNNForDBID(DBID id, int k)
id
- query object IDk
- Number of neighbors requested
List<List<DistanceResultPair<D>>> getKNNForBulkDBIDs(ArrayDBIDs ids, int k)
ids
- query object IDsk
- Number of neighbors requested
void getKNNForBulkHeaps(Map<DBID,KNNHeap<D>> heaps)
heaps
- Map of heaps to fill.List<DistanceResultPair<D>> getKNNForObject(O obj, int k)
obj
- Query objectk
- Number of neighbors requested
DistanceQuery<O,D> getDistanceQuery()
D getDistanceFactory()
Relation<? extends O> getRelation()
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |