Package elki.index.tree.metrical.vptree
Class VPTree.Factory.Par<O extends NumberVector>
- java.lang.Object
-
- elki.index.tree.metrical.vptree.VPTree.Factory.Par<O>
-
- All Implemented Interfaces:
Parameterizer
- Enclosing class:
- VPTree.Factory<O extends NumberVector>
public static class VPTree.Factory.Par<O extends NumberVector> extends java.lang.Object implements Parameterizer
Parameterization class.- Author:
- Robert Gehde
-
-
Field Summary
Fields Modifier and Type Field Description protected Distance<? super O>distanceDistance functionstatic OptionIDDISTANCE_FUNCTION_IDParameter to specify the distance function to determine the distance between database objects, must extendDistance.protected RandomFactoryrandomRandom generatorstatic OptionIDSAMPLE_SIZE_IDParameter to specify the sample size for choosing vantage pointprotected intsampleSizeSample sizestatic OptionIDSEED_IDParameter to specify the rnd generator seed(package private) inttruncateTruncation parameterstatic OptionIDTRUNCATE_IDParameter to specify the minimum leaf size
-
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.VPTree.Factory<O>make()Make an instance after successful configuration.
-
-
-
Field Detail
-
DISTANCE_FUNCTION_ID
public static final OptionID DISTANCE_FUNCTION_ID
Parameter to specify the distance function to determine the distance between database objects, must extendDistance.
-
SAMPLE_SIZE_ID
public static final OptionID SAMPLE_SIZE_ID
Parameter to specify the sample size for choosing vantage point
-
TRUNCATE_ID
public static final OptionID TRUNCATE_ID
Parameter to specify the minimum leaf size
-
SEED_ID
public static final OptionID SEED_ID
Parameter to specify the rnd generator seed
-
distance
protected Distance<? super O extends NumberVector> distance
Distance function
-
random
protected RandomFactory random
Random generator
-
sampleSize
protected int sampleSize
Sample size
-
truncate
int truncate
Truncation parameter
-
-
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 VPTree.Factory<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
-
-