de.lmu.ifi.dbs.elki.database.query.range
Class LinearScanRawDoubleDistanceRangeQuery<O>
java.lang.Object
de.lmu.ifi.dbs.elki.database.query.AbstractDataBasedQuery<O>
de.lmu.ifi.dbs.elki.database.query.range.AbstractDistanceRangeQuery<O,D>
de.lmu.ifi.dbs.elki.database.query.range.LinearScanRangeQuery<O,DoubleDistance>
de.lmu.ifi.dbs.elki.database.query.range.LinearScanRawDoubleDistanceRangeQuery<O>
- Type Parameters:
O
- Database object type
- All Implemented Interfaces:
- DatabaseQuery, LinearScanQuery, RangeQuery<O,DoubleDistance>
public class LinearScanRawDoubleDistanceRangeQuery<O>
- extends LinearScanRangeQuery<O,DoubleDistance>
- implements LinearScanQuery
Default linear scan range query class.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LinearScanRawDoubleDistanceRangeQuery
public LinearScanRawDoubleDistanceRangeQuery(DistanceQuery<O,DoubleDistance> distanceQuery)
- Constructor.
- Parameters:
distanceQuery
- Distance function to use
getRangeForDBID
public List<DistanceResultPair<DoubleDistance>> getRangeForDBID(DBID id,
DoubleDistance range)
- Description copied from interface:
RangeQuery
- Get the nearest neighbors for a particular id in a given query range
- Specified by:
getRangeForDBID
in interface RangeQuery<O,DoubleDistance>
- Overrides:
getRangeForDBID
in class LinearScanRangeQuery<O,DoubleDistance>
- Parameters:
id
- query object IDrange
- Query range
- Returns:
- neighbors
getRangeForObject
public List<DistanceResultPair<DoubleDistance>> getRangeForObject(O obj,
DoubleDistance range)
- Description copied from interface:
RangeQuery
- Get the nearest neighbors for a particular object in a given query range
- Specified by:
getRangeForObject
in interface RangeQuery<O,DoubleDistance>
- Overrides:
getRangeForObject
in class LinearScanRangeQuery<O,DoubleDistance>
- Parameters:
obj
- Query objectrange
- Query range
- Returns:
- neighbors