Package elki.index
Interface DistanceIndex<O>
-
- Type Parameters:
O
- Object type
- All Superinterfaces:
Index
- All Known Implementing Classes:
PrecomputedDistanceMatrix
public interface DistanceIndex<O> extends Index
Index with support for distance queries (e.g., precomputed distance matrixes, caches)- Since:
- 0.7.0
- Author:
- Erich Schubert
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DistanceQuery<O>
getDistanceQuery(Distance<? super O> distanceFunction)
Get a KNN query object for the given distance query and k.-
Methods inherited from interface elki.index.Index
initialize, logStatistics
-
-
-
-
Method Detail
-
getDistanceQuery
DistanceQuery<O> getDistanceQuery(Distance<? super O> distanceFunction)
Get a KNN query object for the given distance query and k.This function MAY return null, when the given distance is not supported!
- Parameters:
distanceFunction
- Distance function to use.- Returns:
- KNN Query object or
null
-
-