O
- Database object typepublic abstract class AbstractSimilarityRangeQuery<O> extends java.lang.Object implements RangeQuery<O>
Modifier and Type | Field and Description |
---|---|
protected Relation<? extends O> |
relation
The data to use for this query
|
protected SimilarityQuery<O> |
simQuery
Hold the similarity function to be used.
|
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
AbstractSimilarityRangeQuery(SimilarityQuery<O> simQuery)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
DoubleDBIDList |
getRangeForDBID(DBIDRef id,
double range)
Get the neighbors for a particular id in a given query range
|
void |
getRangeForDBID(DBIDRef id,
double range,
ModifiableDoubleDBIDList neighbors)
Get the neighbors for a particular object in a given query range
|
DoubleDBIDList |
getRangeForObject(O obj,
double range)
Get the neighbors for a particular object in a given query range
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRangeForObject
protected final SimilarityQuery<O> simQuery
public AbstractSimilarityRangeQuery(SimilarityQuery<O> simQuery)
simQuery
- Similarity querypublic DoubleDBIDList getRangeForDBID(DBIDRef id, double range)
RangeQuery
getRangeForDBID
in interface RangeQuery<O>
id
- query object IDrange
- Query rangepublic DoubleDBIDList getRangeForObject(O obj, double range)
RangeQuery
getRangeForObject
in interface RangeQuery<O>
obj
- Query objectrange
- Query rangepublic void getRangeForDBID(DBIDRef id, double range, ModifiableDoubleDBIDList neighbors)
RangeQuery
getRangeForDBID
in interface RangeQuery<O>
id
- query object IDrange
- Query rangeneighbors
- Neighbors output setCopyright © 2019 ELKI Development Team. License information.