public class PartialVAFile.PartialVAFileRangeQuery extends AbstractRefiningIndex.AbstractRangeQuery<DoubleDistance>
Modifier and Type | Field and Description |
---|---|
private double |
p
Lp-Norm p.
|
private BitSet |
subspace
Subspace.
|
distanceQuery
relation
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
PartialVAFile.PartialVAFileRangeQuery(DistanceQuery<V,DoubleDistance> ddq,
double p,
BitSet subspace)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
DoubleDistanceDBIDPairList |
getRangeForObject(V query,
DoubleDistance range)
Get the nearest neighbors for a particular object in a given query range
|
incRefinements, refine
getDistanceFactory, getRangeForDBID
getRelation
private double p
private BitSet subspace
public PartialVAFile.PartialVAFileRangeQuery(DistanceQuery<V,DoubleDistance> ddq, double p, BitSet subspace)
ddq
- Distance queryp
- LP Norm psubspace
- Subspacepublic DoubleDistanceDBIDPairList getRangeForObject(V query, DoubleDistance range)
RangeQuery
getRangeForObject
in interface RangeQuery<V extends NumberVector<?>,DoubleDistance>
getRangeForObject
in class AbstractDistanceRangeQuery<V extends NumberVector<?>,DoubleDistance>
query
- Query objectrange
- Query range