Class SimplifiedCoverTree.CoverTreeRangeObjectSearcher
- java.lang.Object
-
- elki.index.tree.metrical.covertree.SimplifiedCoverTree.CoverTreeRangeSearcher
-
- elki.index.tree.metrical.covertree.SimplifiedCoverTree.CoverTreeRangeObjectSearcher
-
- All Implemented Interfaces:
RangeSearcher<O>
- Enclosing class:
- SimplifiedCoverTree<O>
public class SimplifiedCoverTree.CoverTreeRangeObjectSearcher extends SimplifiedCoverTree.CoverTreeRangeSearcher implements RangeSearcher<O>
Range query class.- Author:
- Erich Schubert
-
-
Constructor Summary
Constructors Constructor Description CoverTreeRangeObjectSearcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModifiableDoubleDBIDList
getRange(O 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 O query
Query object.
-
-
Method Detail
-
getRange
public ModifiableDoubleDBIDList getRange(O 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<O>
- 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
-
-