Class SimplifiedCoverTree.CoverTreeRangeDBIDSearcher
- java.lang.Object
-
- elki.index.tree.metrical.covertree.SimplifiedCoverTree.CoverTreeRangeSearcher
-
- elki.index.tree.metrical.covertree.SimplifiedCoverTree.CoverTreeRangeDBIDSearcher
-
- All Implemented Interfaces:
RangeSearcher<DBIDRef>
- Enclosing class:
- SimplifiedCoverTree<O>
public class SimplifiedCoverTree.CoverTreeRangeDBIDSearcher extends SimplifiedCoverTree.CoverTreeRangeSearcher implements RangeSearcher<DBIDRef>
Range query class.- Author:
- Erich Schubert
-
-
Constructor Summary
Constructors Constructor Description CoverTreeRangeDBIDSearcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModifiableDoubleDBIDList
getRange(DBIDRef query, double range, ModifiableDoubleDBIDList result)
Get the neighbors for a particular id in a given query range.protected double
queryDistance(DBIDRef it)
Compute distance to query object.-
Methods inherited from class elki.index.tree.metrical.covertree.SimplifiedCoverTree.CoverTreeRangeSearcher
doSearch
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface elki.database.query.range.RangeSearcher
getRange
-
-
-
-
Field Detail
-
query
private DBIDRef query
Query reference.
-
-
Method Detail
-
getRange
public ModifiableDoubleDBIDList getRange(DBIDRef query, double range, ModifiableDoubleDBIDList result)
Description copied from interface:RangeSearcher
Get the neighbors for a particular id in a given query range.- Specified by:
getRange
in interfaceRangeSearcher<DBIDRef>
- Parameters:
query
- query object IDrange
- Query rangeresult
- Output data structure- Returns:
- neighbors
-
queryDistance
protected double queryDistance(DBIDRef it)
Description copied from class:SimplifiedCoverTree.CoverTreeRangeSearcher
Compute distance to query object.- Specified by:
queryDistance
in classSimplifiedCoverTree.CoverTreeRangeSearcher
- Parameters:
it
- Candidate- Returns:
- Distance
-
-