Package elki.index.preprocessed.knn
Class PartitionApproximationMaterializeKNNPreprocessor.Factory.Par<O>
- java.lang.Object
-
- elki.index.preprocessed.knn.PartitionApproximationMaterializeKNNPreprocessor.Factory.Par<O>
-
- All Implemented Interfaces:
Parameterizer
- Enclosing class:
- PartitionApproximationMaterializeKNNPreprocessor.Factory<O>
public static class PartitionApproximationMaterializeKNNPreprocessor.Factory.Par<O> extends java.lang.Object
Parameterization class.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description protected int
partitions
Number of partitionsstatic OptionID
PARTITIONS_ID
Parameter to specify the number of partitions to use for materializing the kNN.private RandomFactory
rnd
Random generatorstatic OptionID
SEED_ID
Parameter to specify the random number generator.-
Fields inherited from class elki.index.preprocessed.knn.AbstractMaterializeKNNPreprocessor.Factory.Par
distance, k
-
-
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.PartitionApproximationMaterializeKNNPreprocessor.Factory<O>
make()
Make an instance after successful configuration.
-
-
-
Field Detail
-
PARTITIONS_ID
public static final OptionID PARTITIONS_ID
Parameter to specify the number of partitions to use for materializing the kNN. Must be an integer greater than 1.
-
SEED_ID
public static final OptionID SEED_ID
Parameter to specify the random number generator.
-
partitions
protected int partitions
Number of partitions
-
rnd
private RandomFactory rnd
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
- Overrides:
configure
in classAbstractMaterializeKNNPreprocessor.Factory.Par<O>
- Parameters:
config
- Parameterization
-
make
public PartitionApproximationMaterializeKNNPreprocessor.Factory<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
- Specified by:
make
in classAbstractMaterializeKNNPreprocessor.Factory.Par<O>
- Returns:
- a new instance
-
-