Package elki.index
Interface RKNNIndex<O>
-
- Type Parameters:
O
- Database Object type
- All Superinterfaces:
Index
- All Known Implementing Classes:
LatLngAsECEFIndex
,LngLatAsECEFIndex
,MaterializeKNNAndRKNNPreprocessor
,MkAppTreeIndex
,MkCoPTreeIndex
,MkMaxTreeIndex
,MkTabTreeIndex
,ProjectedIndex
,RdKNNTree
public interface RKNNIndex<O> extends Index
Index with support for kNN queries.- Since:
- 0.4.0
- Author:
- Erich Schubert
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RKNNSearcher<DBIDRef>
rkNNByDBID(DistanceQuery<O> distanceQuery, int maxk, int flags)
Get a RKNN query object for the given distance query and k.RKNNSearcher<O>
rkNNByObject(DistanceQuery<O> distanceQuery, int maxk, int flags)
Get a RKNN query object for the given distance query and k.-
Methods inherited from interface elki.index.Index
initialize, logStatistics
-
-
-
-
Method Detail
-
rkNNByObject
RKNNSearcher<O> rkNNByObject(DistanceQuery<O> distanceQuery, int maxk, int flags)
Get a RKNN query object for the given distance query and k.This function MAY return null, when the given distance is not supported!
- Parameters:
distanceQuery
- Distance querymaxk
- Maximum k for RkNN queryflags
- Hints for the optimizer- Returns:
- RKNN Query object or
null
-
rkNNByDBID
RKNNSearcher<DBIDRef> rkNNByDBID(DistanceQuery<O> distanceQuery, int maxk, int flags)
Get a RKNN query object for the given distance query and k.This function MAY return null, when the given distance is not supported!
- Parameters:
distanceQuery
- Distance querymaxk
- Maximum k for RkNN queryflags
- Hints for the optimizer- Returns:
- RKNN Query object or
null
-
-