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 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