Package elki.datasource
Class RandomDoubleVectorDatabaseConnection.Par
- java.lang.Object
-
- elki.datasource.AbstractDatabaseConnection.Par
-
- elki.datasource.RandomDoubleVectorDatabaseConnection.Par
-
- All Implemented Interfaces:
Parameterizer
- Enclosing class:
- RandomDoubleVectorDatabaseConnection
public static class RandomDoubleVectorDatabaseConnection.Par extends AbstractDatabaseConnection.Par
Parameterization class.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description (package private) int
dim
Dimensionality.static OptionID
DIM_ID
Database to specify the random vector dimensionality.(package private) RandomFactory
rnd
Random generator.static OptionID
SEED_ID
Random generator seed.(package private) int
size
Database size.static OptionID
SIZE_ID
Parameter to specify the database size to generate.-
Fields inherited from class elki.datasource.AbstractDatabaseConnection.Par
filters, FILTERS_ID, parser, PARSER_ID
-
-
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.RandomDoubleVectorDatabaseConnection
make()
Make an instance after successful configuration.-
Methods inherited from class elki.datasource.AbstractDatabaseConnection.Par
configFilters, configParser
-
-
-
-
Field Detail
-
SEED_ID
public static final OptionID SEED_ID
Random generator seed.
-
DIM_ID
public static final OptionID DIM_ID
Database to specify the random vector dimensionality.
-
SIZE_ID
public static final OptionID SIZE_ID
Parameter to specify the database size to generate.
-
dim
int dim
Dimensionality.
-
size
int size
Database size.
-
rnd
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.
- Parameters:
config
- Parameterization
-
make
public RandomDoubleVectorDatabaseConnection 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.- Returns:
- a new instance
-
-