Class RandomSampleKNNPreprocessor<O>

  • Type Parameters:
    O - Object type
    All Implemented Interfaces:
    elki.index.Index, elki.index.KNNIndex<O>

    @Reference(authors="Arthur Zimek, Matthew Gaudet, Ricardo J. G. B. Campello, J\u00f6rg Sander",
               title="Subsampling for Efficient and Effective Unsupervised Outlier Detection Ensembles",
               booktitle="Proc. 19th ACM SIGKDD Int. Conf. Knowledge Discovery and Data Mining, KDD \'13",
               url="https://doi.org/10.1145/2487575.2487676",
               bibkey="DBLP:conf/kdd/ZimekGCS13")
    public class RandomSampleKNNPreprocessor<O>
    extends AbstractMaterializeKNNPreprocessor<O>
    Class that computed the kNN only on a random sample.

    Used in:

    Arthur Zimek, Matthew Gaudet, Ricardo J. G. B. Campello, Jörg Sander
    Subsampling for Efficient and Effective Unsupervised Outlier Detection Ensembles
    Proc. 19th ACM SIGKDD Int. Conf. Knowledge Discovery and Data Mining KDD'13

    Since:
    0.5.0
    Author:
    Erich Schubert
    • Field Detail

      • LOG

        private static final elki.logging.Logging LOG
        Logger
      • share

        private final double share
        Relative share of objects to get
      • rnd

        private final elki.utilities.random.RandomFactory rnd
        Random generator
    • Constructor Detail

      • RandomSampleKNNPreprocessor

        public RandomSampleKNNPreprocessor​(elki.database.relation.Relation<O> relation,
                                           elki.distance.Distance<? super O> distance,
                                           int k,
                                           double share,
                                           elki.utilities.random.RandomFactory rnd)
        Constructor.
        Parameters:
        relation - Relation to index
        distance - distance function
        k - k
        share - Relative share
        rnd - Random generator