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 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 query
        maxrange - Maximum range
        flags - 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 query
        maxrange - Maximum range
        flags - Hints for the optimizer
        Returns:
        KNN Query object or null