Package elki.index.tree.metrical.vptree
Class GNAT.Factory.Par<O extends NumberVector>
- java.lang.Object
-
- elki.index.tree.metrical.vptree.GNAT.Factory.Par<O>
-
- All Implemented Interfaces:
Parameterizer
- Enclosing class:
- GNAT.Factory<O extends NumberVector>
public static class GNAT.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 intamountVantagePointsSample sizeprotected Distance<? super O>distanceDistance functionstatic OptionIDDISTANCE_FUNCTION_IDParameter to specify the distance function to determine the distance between database objects, must extendDistance.static OptionIDNUMBER_VANTAGE_POINTS_IDParameter to specify the sample size for choosing vantage pointprotected RandomFactoryrandomRandom generatorstatic OptionIDSEED_IDParameter to specify the random 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.GNAT.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.
-
NUMBER_VANTAGE_POINTS_ID
public static final OptionID NUMBER_VANTAGE_POINTS_ID
Parameter to specify the sample size for choosing vantage point
-
SEED_ID
public static final OptionID SEED_ID
Parameter to specify the random generator seed
-
distance
protected Distance<? super O extends NumberVector> distance
Distance function
-
random
protected RandomFactory random
Random generator
-
amountVantagePoints
protected int amountVantagePoints
Sample size
-
-
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 GNAT.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
-
-