Class PreprocessorSqrtKNNQuery

  • All Implemented Interfaces:
    elki.database.query.knn.KNNSearcher<elki.database.ids.DBIDRef>

    public class PreprocessorSqrtKNNQuery
    extends PreprocessorKNNQuery
    Use the square rooted values of precomputed kNN.
    Since:
    0.4.0
    Author:
    Erich Schubert
    • Field Detail

      • LOG

        private static final elki.logging.Logging LOG
        Class logger
    • Constructor Detail

      • PreprocessorSqrtKNNQuery

        public PreprocessorSqrtKNNQuery​(elki.database.relation.Relation<?> relation,
                                        AbstractMaterializeKNNPreprocessor<?> preprocessor)
        Constructor.
        Parameters:
        relation - Relation to query
        preprocessor - Preprocessor instance to use
    • Method Detail

      • getKNN

        public elki.database.ids.KNNList getKNN​(elki.database.ids.DBIDRef id,
                                                int k)
        Specified by:
        getKNN in interface elki.database.query.knn.KNNSearcher<elki.database.ids.DBIDRef>
        Overrides:
        getKNN in class PreprocessorKNNQuery
      • getLogger

        protected elki.logging.Logging getLogger()
        Get the class logger. Override when subclassing!
        Overrides:
        getLogger in class PreprocessorKNNQuery
        Returns:
        Class logger.