Package elki.database.query.range
Class LinearScanSimilarityRangeByDBID<O>
- java.lang.Object
-
- elki.database.query.range.LinearScanSimilarityRangeByDBID<O>
-
- Type Parameters:
O
- relation object type
- All Implemented Interfaces:
LinearScanQuery
,RangeSearcher<DBIDRef>
public class LinearScanSimilarityRangeByDBID<O> extends java.lang.Object implements RangeSearcher<DBIDRef>, LinearScanQuery
Default linear scan range query class.- Since:
- 0.7.5
- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description protected SimilarityQuery<O>
simQuery
Hold the similarity function to be used.
-
Constructor Summary
Constructors Constructor Description LinearScanSimilarityRangeByDBID(SimilarityQuery<O> simQuery)
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
-
simQuery
protected final SimilarityQuery<O> simQuery
Hold the similarity function to be used.
-
-
Constructor Detail
-
LinearScanSimilarityRangeByDBID
public LinearScanSimilarityRangeByDBID(SimilarityQuery<O> simQuery)
Constructor.- Parameters:
simQuery
- Similarity function to use
-
-
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<O>
- Parameters:
id
- query object IDrange
- Query rangeresult
- Output data structure- Returns:
- neighbors
-
-