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>distanceThe distance function to use.protected booleannozerosFlag to ignore zero distances (recommended with many duplicates).static OptionIDNOZEROS_IDFlag to ignore zero distances (recommended with many duplicates).protected doublequantileQuantile to compute.static OptionIDQUANTILE_IDQuantile to compute.protected RandomFactoryrandRandom generator.protected doublesamplingSampling rate.static OptionIDSAMPLING_IDSampling rate.static OptionIDSEED_IDRandom generator seed.
-
Constructor Summary
Constructors Constructor Description Par()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(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:ParameterizerConfigure 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:
configurein interfaceParameterizer- Parameters:
config- Parameterization
-
make
public DistanceQuantileSampler<O> make()
Description copied from interface:ParameterizerMake an instance after successful configuration.Note: your class should return the exact type, only this very broad interface should use
Objectas return type.- Specified by:
makein interfaceParameterizer- Returns:
- a new instance
-
-