de.lmu.ifi.dbs.elki.database.query.rknn
Class AbstractRKNNQuery<O,D extends Distance<D>>
java.lang.Object
de.lmu.ifi.dbs.elki.database.query.AbstractDataBasedQuery<O>
de.lmu.ifi.dbs.elki.database.query.rknn.AbstractRKNNQuery<O,D>
- All Implemented Interfaces:
- DatabaseQuery, RKNNQuery<O,D>
- Direct Known Subclasses:
- LinearScanRKNNQuery, MkTreeRKNNQuery
public abstract class AbstractRKNNQuery<O,D extends Distance<D>>
- extends AbstractDataBasedQuery<O>
- implements RKNNQuery<O,D>
Instance for the query on a particular database.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
distanceQuery
protected final DistanceQuery<O,D extends Distance<D>> distanceQuery
- Hold the distance function to be used.
AbstractRKNNQuery
public AbstractRKNNQuery(DistanceQuery<O,D> distanceQuery)
- Constructor.
- Parameters:
distanceQuery
- distance query
getRKNNForDBID
public abstract List<DistanceResultPair<D>> getRKNNForDBID(DBID id,
int k)
- Description copied from interface:
RKNNQuery
- Get the reverse k nearest neighbors for a particular id.
- Specified by:
getRKNNForDBID
in interface RKNNQuery<O,D extends Distance<D>>
- Parameters:
id
- query object IDk
- number of neighbors requested
- Returns:
- reverse k nearest neighbors
getDistanceFactory
public D getDistanceFactory()
- Description copied from interface:
RKNNQuery
- Get the distance data type of the function.
- Specified by:
getDistanceFactory
in interface RKNNQuery<O,D extends Distance<D>>