Package elki.algorithm.statistics
Class DistanceQuantileSampler.Par<O>
- java.lang.Object
-
- elki.algorithm.statistics.DistanceQuantileSampler.Par<O>
-
- Type Parameters:
O
- Object type
- All Implemented Interfaces:
Parameterizer
- Enclosing class:
- DistanceQuantileSampler<O>
public static class DistanceQuantileSampler.Par<O> extends java.lang.Object implements Parameterizer
Parameterization class- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description protected Distance<? super O>
distance
The distance function to use.protected boolean
nozeros
Flag to ignore zero distances (recommended with many duplicates).static OptionID
NOZEROS_ID
Flag to ignore zero distances (recommended with many duplicates).protected double
quantile
Quantile to compute.static OptionID
QUANTILE_ID
Quantile to compute.protected RandomFactory
rand
Random generator.protected double
sampling
Sampling rate.static OptionID
SAMPLING_ID
Sampling rate.static OptionID
SEED_ID
Random generator seed.
-
Constructor Summary
Constructors Constructor Description Par()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(Parameterization config)
Configure the class.DistanceQuantileSampler<O>
make()
Make an instance after successful configuration.
-
-
-
Field Detail
-
QUANTILE_ID
public static final OptionID QUANTILE_ID
Quantile to compute.
-
SAMPLING_ID
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.
-
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).
-
rand
protected RandomFactory rand
Random generator.
-
-
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 interfaceParameterizer
- Parameters:
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 interfaceParameterizer
- Returns:
- a new instance
-
-