Class DistanceQuantileSampler.Par<O>

  • Type Parameters:
    O - Object type
    All Implemented Interfaces:
    Enclosing class:

    public static class DistanceQuantileSampler.Par<O>
    extends java.lang.Object
    implements Parameterizer
    Parameterization class
    Erich Schubert
    • Field Detail


        public static final OptionID QUANTILE_ID
        Quantile to compute.

        public static final OptionID SAMPLING_ID
        Sampling rate.
      • NOZEROS_ID

        public static final OptionID NOZEROS_ID
        Flag to ignore zero distances (recommended with many duplicates).
      • SEED_ID

        public static final OptionID SEED_ID
        Random generator seed.
      • distance

        protected Distance<? super O> distance
        The distance function to use.
      • quantile

        protected double quantile
        Quantile to compute.
      • sampling

        protected double sampling
        Sampling rate.
      • nozeros

        protected boolean nozeros
        Flag to ignore zero distances (recommended with many duplicates).
    • Constructor Detail

      • Par

        public Par()
    • Method Detail

      • configure

        public void configure​(Parameterization config)
        Description copied from interface: Parameterizer
        Configure the class.

        Note: the status is collected by the parameterization object, so that multiple errors may arise and be reported in one run.

        Specified by:
        configure in interface Parameterizer
        config - Parameterization
      • make

        public DistanceQuantileSampler<O> make()
        Description copied from interface: Parameterizer
        Make an instance after successful configuration.

        Note: your class should return the exact type, only this very broad interface should use Object as return type.

        Specified by:
        make in interface Parameterizer
        a new instance