public abstract class Generator
extends java.lang.Object
implements java.io.Serializable, weka.core.OptionHandler
Constructor and Description |
---|
Generator() |
Modifier and Type | Method and Description |
---|---|
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<weka.core.Option> |
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.
|
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<weka.core.Option> listOptions()
listOptions
in interface weka.core.OptionHandler
public void setOptions(java.lang.String[] options) throws java.lang.Exception
setOptions
in interface weka.core.OptionHandler
options
- the list of options as an array of stringsjava.lang.Exception
- if an option is not supportedpublic java.lang.String[] getOptions()
getOptions
in interface weka.core.OptionHandler
public void setDebug(boolean debug)
debug
- true if debug output should be printedpublic boolean getDebug()
public java.lang.String debugTipText()