|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface to something that can generate new instances based on a set of input instances
Method Summary | |
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 |
Method Detail |
public void buildGenerator(Instances inputInstances) throws java.lang.Exception
inputInstances
- Instances to build the generator from
java.lang.Exception
- if an error occurspublic double[][] generateInstances(int[] indices) throws java.lang.Exception
Instance
value
java.lang.Exception
- if an error occurspublic double[] getWeights() throws java.lang.Exception
java.lang.Exception
public void setWeightingDimensions(boolean[] dimensions)
dimensions
- an array of booleans specifying the dimensions to
be used when computing instance weightspublic void setWeightingValues(double[] vals)
vals
- a double[]
valuepublic int getNumGeneratingModels()
int
valuepublic void setSeed(int seed)
seed
- an int
value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2003 David Lindsay, Computer Learning Research Centre, Dept. Computer Science, Royal Holloway, University of London