Package elki.index
Interface SimilarityRangeIndex<O>
-
- Type Parameters:
O
- Database Object type
- All Superinterfaces:
Index
- All Known Implementing Classes:
PrecomputedSimilarityMatrix
public interface SimilarityRangeIndex<O> extends Index
Index with support for similarity range queries.- Since:
- 0.4.0
- Author:
- Erich Schubert
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RangeSearcher<DBIDRef>
similarityRangeByDBID(SimilarityQuery<O> simQuery, double maxrange, int flags)
Get a range query object for the given distance query and k.RangeSearcher<O>
similarityRangeByObject(SimilarityQuery<O> simQuery, double maxrange, int flags)
Get a range query object for the given distance query and k.-
Methods inherited from interface elki.index.Index
initialize, logStatistics
-
-
-
-
Method Detail
-
similarityRangeByObject
RangeSearcher<O> similarityRangeByObject(SimilarityQuery<O> simQuery, double maxrange, int flags)
Get a range query object for the given distance query and k.This function MAY return null, when the given distance is not supported!
- Parameters:
simQuery
- Similarity querymaxrange
- Maximum rangeflags
- Hints for the optimizer- Returns:
- KNN Query object or
null
-
similarityRangeByDBID
RangeSearcher<DBIDRef> similarityRangeByDBID(SimilarityQuery<O> simQuery, double maxrange, int flags)
Get a range query object for the given distance query and k.This function MAY return null, when the given distance is not supported!
- Parameters:
simQuery
- Similarity querymaxrange
- Maximum rangeflags
- Hints for the optimizer- Returns:
- KNN Query object or
null
-
-