|
||||||||||
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 |
Instance |
generateInstance()
Generate an instance. |
Instance |
generateInstanceFast()
Generate an instance. |
int |
getNumGeneratingModels()
Returns the number of generating models used by this DataGenerator |
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 Instance generateInstance() throws java.lang.Exception
Instance
value
java.lang.Exception
- if an error occurspublic Instance generateInstanceFast() throws java.lang.Exception
Instance
value
java.lang.Exception
- if an error occurspublic 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
value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |