Class PreprocessorRKNNQuery<O>

  • All Implemented Interfaces:
    RKNNSearcher<DBIDRef>

    public class PreprocessorRKNNQuery<O>
    extends java.lang.Object
    implements RKNNSearcher<DBIDRef>
    Instance for a particular database, invoking the preprocessor.
    Since:
    0.4.0
    Author:
    Elke Achtert
    • Field Detail

      • relation

        protected final Relation<? extends O> relation
        The data to use for this query
      • warned

        private boolean warned
        Warn only once.
    • 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