de.lmu.ifi.dbs.elki.datasource
Class RandomDoubleVectorDatabaseConnection

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.datasource.AbstractDatabaseConnection
      extended by de.lmu.ifi.dbs.elki.datasource.RandomDoubleVectorDatabaseConnection
All Implemented Interfaces:
DatabaseConnection, InspectionUtilFrequentlyScanned, Parameterizable

public class RandomDoubleVectorDatabaseConnection
extends AbstractDatabaseConnection

Produce a database of random double vectors with each dimension in [0:1]


Nested Class Summary
static class RandomDoubleVectorDatabaseConnection.Parameterizer
          Parameterization class.
 
Field Summary
protected  int dim
          Dimensionality
private static Logging logger
           
protected  Long seed
          Seed to use
protected  int size
          Size of database to generate
 
Fields inherited from class de.lmu.ifi.dbs.elki.datasource.AbstractDatabaseConnection
filters, FILTERS_ID, LABEL_CONCATENATION
 
Constructor Summary
RandomDoubleVectorDatabaseConnection(int dim, int size, Long seed, List<ObjectFilter> filters)
          Constructor.
 
Method Summary
protected  Logging getLogger()
          Get the logger for this database connection.
 MultipleObjectsBundle loadData()
          Returns the initial data for a database.
 
Methods inherited from class de.lmu.ifi.dbs.elki.datasource.AbstractDatabaseConnection
invokeFilters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dim

protected int dim
Dimensionality


size

protected int size
Size of database to generate


seed

protected Long seed
Seed to use


logger

private static final Logging logger
Constructor Detail

RandomDoubleVectorDatabaseConnection

public RandomDoubleVectorDatabaseConnection(int dim,
                                            int size,
                                            Long seed,
                                            List<ObjectFilter> filters)
Constructor.

Parameters:
dim - Dimensionality
size - Database size
seed - Random seed
filters -
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 class AbstractDatabaseConnection
Returns:
Logger

Release 0.4.0 (2011-09-20_1324)