Class LinearScanRKNNByDBID<O>

    • Constructor Detail

      • LinearScanRKNNByDBID

        public LinearScanRKNNByDBID​(DistanceQuery<O> distanceQuery,
                                    KNNSearcher<DBIDRef> knnQuery)
        Constructor.
        Parameters:
        distanceQuery - Distance function to use
        knnQuery - kNN query to use.
    • Method Detail

      • getRKNN

        public DoubleDBIDList getRKNN​(DBIDRef id,
                                      int k)
        Description copied from interface: RKNNSearcher
        Get the reverse k nearest neighbors for a particular object.
        Specified by:
        getRKNN in interface RKNNSearcher<O>
        Parameters:
        id - query object
        k - number of neighbors requested
        Returns:
        reverse k nearest neighbors