Package elki.index

Interface RangeIndex<O>

    • Method Detail

      • rangeByObject

        RangeSearcher<O> rangeByObject​(DistanceQuery<O> distanceQuery,
                                       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:
        distanceQuery - Distance query
        maxrange - Maximum range
        flags - Hints for the optimizer
        Returns:
        KNN Query object or null
      • rangeByDBID

        default RangeSearcher<DBIDRef> rangeByDBID​(DistanceQuery<O> distanceQuery,
                                                   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:
        distanceQuery - Distance query
        maxrange - Maximum range
        flags - Hints for the optimizer
        Returns:
        KNN Query object or null