de.lmu.ifi.dbs.elki.database.query.rknn
Interface RKNNQuery<O,D extends Distance<D>>

Type Parameters:
O - Object type
D - Distance type
All Superinterfaces:
DatabaseQuery
All Known Implementing Classes:
AbstractRKNNQuery, LinearScanRKNNQuery, MkTreeRKNNQuery, PreprocessorRKNNQuery

public interface RKNNQuery<O,D extends Distance<D>>
extends DatabaseQuery

Abstract reverse kNN Query interface.


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.
 Relation<? extends O> getRelation()
          Access the underlying data query.
 List<List<DistanceResultPair<D>>> getRKNNForBulkDBIDs(ArrayDBIDs ids, int k)
          Bulk query method for reverse k nearest neighbors for ids.
 List<DistanceResultPair<D>> getRKNNForDBID(DBID id, int k)
          Get the reverse k nearest neighbors for a particular id.
 List<DistanceResultPair<D>> getRKNNForObject(O obj, int k)
          Get the reverse k nearest neighbors for a particular object.
 

Method Detail

getRKNNForDBID

List<DistanceResultPair<D>> getRKNNForDBID(DBID id,
                                           int k)
Get the reverse k nearest neighbors for a particular id.

Parameters:
id - query object ID
k - number of neighbors requested
Returns:
reverse k nearest neighbors

getRKNNForObject

List<DistanceResultPair<D>> getRKNNForObject(O obj,
                                             int k)
Get the reverse k nearest neighbors for a particular object.

Parameters:
obj - query object instance
k - number of neighbors requested
Returns:
reverse k nearest neighbors

getRKNNForBulkDBIDs

List<List<DistanceResultPair<D>>> getRKNNForBulkDBIDs(ArrayDBIDs ids,
                                                      int k)
Bulk query method for reverse k nearest neighbors for ids.

Parameters:
ids - query object IDs
k - number of neighbors requested
Returns:
reverse k nearest neighbors

getDistanceFactory

D getDistanceFactory()
Get the distance data type of the function.


getRelation

Relation<? extends O> getRelation()
Access the underlying data query.

Returns:
data query in use

Release 0.4.0 (2011-09-20_1324)