public class GaussianGenerator extends RandomizableDistributionGenerator implements NumericAttributeGenerator
-S <seed> Sets the seed of the random number generator of the generator (default: 1)
-M <num> Sets the mean of the generator (default: 0)
-SD <num> Sets the standard deviation of the generator (default: 1)
EMGenerator
,
Serialized FormConstructor and Description |
---|
GaussianGenerator() |
Modifier and Type | Method and Description |
---|---|
double |
generate()
Generates a value that falls under this distribution.
|
double |
getLogProbabilityOf(double valuex)
Gets the (natural) log of the probability of a given value.
|
double |
getProbabilityOf(double valuex)
Gets the probability that a value falls under this distribution.
|
java.lang.String |
globalInfo()
Returns a string describing this class' ability.
|
getMean, getOptions, getStandardDeviation, listOptions, meanTipText, setMean, setOptions, setStandardDeviation, standardDeviationTipText
getSeed, seedTipText, setSeed
copy, debugTipText, forName, getDebug, setDebug
public java.lang.String globalInfo()
globalInfo
in class Generator
public double generate()
public double getProbabilityOf(double valuex)
getProbabilityOf
in class Generator
valuex
- The value to get the probability of.public double getLogProbabilityOf(double valuex)
getLogProbabilityOf
in class Generator
valuex
- The value to get the log probability of.