|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.classifiers.meta.generators.Generator
public abstract class Generator
An artificial data generator.
| Constructor Summary | |
|---|---|
Generator()
|
|
| Method Summary | |
|---|---|
Generator |
copy()
Clones this generator. |
java.lang.String |
debugTipText()
Returns the tip text for this property. |
static Generator |
forName(java.lang.String generatorName,
java.lang.String[] options)
Creates a new instance of a generator given it's class name and (optional) arguments to pass to it's setOptions method. |
abstract double |
generate()
Generates a value that falls under this distribution. |
boolean |
getDebug()
Get whether debugging is turned on. |
abstract double |
getLogProbabilityOf(double somedata)
Gets the (natural) log of the probability of a given value. |
java.lang.String[] |
getOptions()
Gets the current settings of the Classifier. |
abstract double |
getProbabilityOf(double somedata)
Gets the probability that a value falls under this distribution. |
abstract java.lang.String |
globalInfo()
Returns a string describing this class' ability. |
java.util.Enumeration |
listOptions()
Returns an enumeration describing the available options. |
void |
setDebug(boolean debug)
Set debugging mode. |
void |
setOptions(java.lang.String[] options)
Parses a given list of options. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Generator()
| Method Detail |
|---|
public abstract double getProbabilityOf(double somedata)
somedata - The value to get the probability of.
public abstract double getLogProbabilityOf(double somedata)
somedata - The value to get the log probability of.
public abstract double generate()
public Generator copy()
public static Generator forName(java.lang.String generatorName,
java.lang.String[] options)
throws java.lang.Exception
generatorName - the fully qualified class name of the generatoroptions - an array of options suitable for passing to setOptions. May
be null.
java.lang.Exception - if the classifier name is invalid, or the options
supplied are not acceptable to the classifierpublic abstract java.lang.String globalInfo()
public java.util.Enumeration listOptions()
listOptions in interface OptionHandler
public void setOptions(java.lang.String[] options)
throws java.lang.Exception
setOptions in interface OptionHandleroptions - 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 OptionHandlerpublic void setDebug(boolean debug)
debug - true if debug output should be printedpublic boolean getDebug()
public java.lang.String debugTipText()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||