Package elki.index.projected
Class ProjectedIndex.ProjectedRangeByDBID
- java.lang.Object
-
- elki.index.projected.ProjectedIndex.ProjectedRangeByDBID
-
- All Implemented Interfaces:
RangeSearcher<DBIDRef>
- Enclosing class:
- ProjectedIndex<O,I>
class ProjectedIndex.ProjectedRangeByDBID extends java.lang.Object implements RangeSearcher<DBIDRef>
Class to proxy range queries.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description protected DistanceQuery<O>
distanceQuery
Hold the distance function to be used.(package private) RangeSearcher<I>
inner
Inner range query.
-
Constructor Summary
Constructors Constructor Description ProjectedRangeByDBID(DistanceQuery<O> distanceQuery, RangeSearcher<I> inner)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModifiableDoubleDBIDList
getRange(DBIDRef id, double range, ModifiableDoubleDBIDList result)
Get the neighbors for a particular id in a given query range.-
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
-
distanceQuery
protected final DistanceQuery<O> distanceQuery
Hold the distance function to be used.
-
inner
RangeSearcher<I> inner
Inner range query.
-
-
Constructor Detail
-
ProjectedRangeByDBID
public ProjectedRangeByDBID(DistanceQuery<O> distanceQuery, RangeSearcher<I> inner)
Constructor.- Parameters:
distanceQuery
- Distance query to useinner
- Inner range query
-
-
Method Detail
-
getRange
public ModifiableDoubleDBIDList getRange(DBIDRef id, 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:
id
- query object IDrange
- Query rangeresult
- Output data structure- Returns:
- neighbors
-
-