Package elki.datasource
Class RandomDoubleVectorDatabaseConnection
- java.lang.Object
-
- elki.datasource.AbstractDatabaseConnection
-
- elki.datasource.RandomDoubleVectorDatabaseConnection
-
- All Implemented Interfaces:
DatabaseConnection
public class RandomDoubleVectorDatabaseConnection extends AbstractDatabaseConnection
Produce a database of random double vectors with each dimension in [0:1].- Since:
- 0.4.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RandomDoubleVectorDatabaseConnection.Par
Parameterization class.
-
Field Summary
Fields Modifier and Type Field Description protected int
dim
Dimensionality.private static Logging
LOG
Class logger.protected RandomFactory
rnd
Random generatorprotected int
size
Size of database to generate.-
Fields inherited from class elki.datasource.AbstractDatabaseConnection
filters, LABEL_CONCATENATION
-
-
Constructor Summary
Constructors Constructor Description RandomDoubleVectorDatabaseConnection(int dim, int size, RandomFactory rnd, java.util.List<? extends ObjectFilter> filters)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Logging
getLogger()
Get the logger for this database connection.MultipleObjectsBundle
loadData()
Returns the initial data for a database.-
Methods inherited from class elki.datasource.AbstractDatabaseConnection
invokeBundleFilters, invokeStreamFilters
-
-
-
-
Field Detail
-
LOG
private static final Logging LOG
Class logger.
-
dim
protected int dim
Dimensionality.
-
size
protected int size
Size of database to generate.
-
rnd
protected RandomFactory rnd
Random generator
-
-
Constructor Detail
-
RandomDoubleVectorDatabaseConnection
public RandomDoubleVectorDatabaseConnection(int dim, int size, RandomFactory rnd, java.util.List<? extends ObjectFilter> filters)
Constructor.- Parameters:
dim
- Dimensionalitysize
- Database sizernd
- Random generatorfilters
- Filters to use
-
-
Method Detail
-
loadData
public MultipleObjectsBundle loadData()
Description copied from interface:DatabaseConnection
Returns the initial data for a database.- Returns:
- a database object bundle
-
getLogger
protected Logging getLogger()
Description copied from class:AbstractDatabaseConnection
Get the logger for this database connection.- Specified by:
getLogger
in classAbstractDatabaseConnection
- Returns:
- Logger
-
-