public class GridDataGenerator extends Object
Constructor and Description |
---|
GridDataGenerator()
Creates a new grid data generator for a 2 x 5 with uniform noise in the range [-1/4, 1/4]
|
GridDataGenerator(ContinuousDistribution noiseSource,
int... dimensions)
Creates a new Grid data generator, that can be queried for new data sets.
|
GridDataGenerator(ContinuousDistribution noiseSource,
Random rand,
int... dimensions)
Creates a new Grid data generator, that can be queried for new data sets.
|
Modifier and Type | Method and Description |
---|---|
SimpleDataSet |
generateData(int samples)
Generates a new data set.
|
public GridDataGenerator(ContinuousDistribution noiseSource, Random rand, int... dimensions)
noiseSource
- the distribution that describes the noise that will be added to each data point. If no noise is used, each data point would lie exactly on its local axis.rand
- the source of randomness that the noise will usedimensions
- an array describing how many groups there will be.
The length of the array dictates the number of dimensions in the data
set, each value describes how many axis of that dimensions to use. The
total number of classes is the product of these values.ArithmeticException
- if one of the dimension values is not a positive value, or a zero number of dimensions is givenpublic GridDataGenerator(ContinuousDistribution noiseSource, int... dimensions)
noiseSource
- the distribution that describes the noise that will be added to each data point. If no noise is used, each data point would lie exactly on its local axis.dimensions
- an array describing how many groups there will be.
The length of the array dictates the number of dimensions in the data
set, each value describes how many axis of that dimensions to use. The
total number of classes is the product of these values.ArithmeticException
- if one of the dimension values is not a positive value, or a zero number of dimensions is givenpublic GridDataGenerator()
public SimpleDataSet generateData(int samples)
samples
- the number of sample data points to create for each class in the data set.Copyright © 2017. All rights reserved.