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 java.lang.Exception
inputInstances
- Instances to build the generator fromjava.lang.Exception
- if an error occursdouble[][] generateInstances(int[] indices) throws java.lang.Exception
Instance
valuejava.lang.Exception
- if an error occursdouble[] getWeights() throws java.lang.Exception
java.lang.Exception
void 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
value