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>
distance
Distance functionstatic OptionID
DISTANCE_FUNCTION_ID
Parameter to specify the distance function to determine the distance between database objects, must extendDistance
.protected RandomFactory
random
Random generatorstatic OptionID
SAMPLE_SIZE_ID
Parameter to specify the sample size for choosing vantage pointprotected int
sampleSize
Sample sizestatic OptionID
SEED_ID
Parameter to specify the rnd generator seed(package private) int
truncate
Truncation parameterstatic OptionID
TRUNCATE_ID
Parameter 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 void
configure(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: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 VPTree.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
- Returns:
- a new instance
-
-