public interface DataGenerator
| Modifier and Type | Method and Description |
|---|---|
void |
buildGenerator(Instances inputInstances)
Build the data generator
|
double[][] |
generateInstances(int[] indices)
Generate an instance.
|
int |
getNumGeneratingModels()
Returns the number of generating models used by this DataGenerator
|
double[] |
getWeights()
Get weights
|
void |
setSeed(int seed)
Set a seed for random number generation (if needed).
|
void |
setWeightingDimensions(boolean[] dimensions)
Set the dimensions to be used in computing a weight for
each instance generated
|
void |
setWeightingValues(double[] vals)
Set the values of the dimensions (chosen via setWeightingDimensions)
to be used when computing instance weights
|
void buildGenerator(Instances inputInstances) throws Exception
inputInstances - Instances to build the generator fromException - if an error occursdouble[][] generateInstances(int[] indices)
throws Exception
Instance valueException - if an error occursvoid setWeightingDimensions(boolean[] dimensions)
dimensions - an array of booleans specifying the dimensions to
be used when computing instance weightsvoid setWeightingValues(double[] vals)
vals - a double[] valueint getNumGeneratingModels()
int valuevoid setSeed(int seed)
seed - an int valueCopyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.