Package elki.index.vafile
Class PartialVAFile.PartialVAFileRangeQuery
- java.lang.Object
-
- elki.index.AbstractRefiningIndex.AbstractRefiningQuery
-
- elki.index.vafile.PartialVAFile.PartialVAFileRangeQuery
-
- All Implemented Interfaces:
RangeSearcher<V>
- Enclosing class:
- PartialVAFile<V extends NumberVector>
public class PartialVAFile.PartialVAFileRangeQuery extends AbstractRefiningIndex.AbstractRefiningQuery implements RangeSearcher<V>
Range query for this index.- Author:
- Erich Schubert, Thomas Bernecker
-
-
Field Summary
Fields Modifier and Type Field Description private double
p
Lp-Norm p.private long[]
subspace
Subspace.-
Fields inherited from class elki.index.AbstractRefiningIndex.AbstractRefiningQuery
distanceQuery
-
-
Constructor Summary
Constructors Constructor Description PartialVAFileRangeQuery(DistanceQuery<V> ddq, double p, long[] subspace)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModifiableDoubleDBIDList
getRange(V query, double range, ModifiableDoubleDBIDList result)
Get the neighbors for a particular id in a given query range.-
Methods inherited from class elki.index.AbstractRefiningIndex.AbstractRefiningQuery
incRefinements, refine
-
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
-
-
-
-
Constructor Detail
-
PartialVAFileRangeQuery
public PartialVAFileRangeQuery(DistanceQuery<V> ddq, double p, long[] subspace)
Constructor.- Parameters:
ddq
- Distance queryp
- LP Norm psubspace
- Subspace
-
-
Method Detail
-
getRange
public ModifiableDoubleDBIDList getRange(V 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<V extends NumberVector>
- Parameters:
query
- query object IDrange
- Query rangeresult
- Output data structure- Returns:
- neighbors
-
-