Package elki.index

Interface RKNNIndex<O>

    • 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 query
        maxk - Maximum k for RkNN query
        flags - 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 query
        maxk - Maximum k for RkNN query
        flags - Hints for the optimizer
        Returns:
        RKNN Query object or null