|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.classifiers.meta.generators.Generator
weka.classifiers.meta.generators.RandomizableGenerator
public abstract class RandomizableGenerator
An abstract superclass for generators that use a seeded internal random number generator.
Constructor Summary | |
---|---|
RandomizableGenerator()
|
Method Summary | |
---|---|
java.lang.String[] |
getOptions()
Gets the current settings of the generator. |
long |
getSeed()
Gets the current random number generator seed. |
java.util.Enumeration |
listOptions()
Returns an enumeration describing the available options. |
java.lang.String |
seedTipText()
Returns the tip text for this property. |
void |
setOptions(java.lang.String[] options)
Parses a given list of options. |
void |
setSeed(long value)
Sets the seed to the random number generator. |
Methods inherited from class weka.classifiers.meta.generators.Generator |
---|
copy, debugTipText, forName, generate, getDebug, getLogProbabilityOf, getProbabilityOf, globalInfo, setDebug |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RandomizableGenerator()
Method Detail |
---|
public java.util.Enumeration listOptions()
listOptions
in interface OptionHandler
listOptions
in class Generator
public void setOptions(java.lang.String[] options) throws java.lang.Exception
setOptions
in interface OptionHandler
setOptions
in class Generator
options
- the list of options as an array of strings
java.lang.Exception
- if an option is not supportedpublic java.lang.String[] getOptions()
getOptions
in interface OptionHandler
getOptions
in class Generator
public void setSeed(long value)
value
- The new seed for the random number generator.public long getSeed()
public java.lang.String seedTipText()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |