public class NormalUPM.M extends Continuous.M
Continuous.M.TransformModel.DefaultsValue.Atomic, Value.Bool, Value.Char, Value.Chars, Value.Cts, Value.Defer, Value.Discrete, Value.Enum, Value.Inc_Or, Value.Int, Value.Lambda, Value.List, Value.Maybe, Value.Option, Value.Real, Value.Scannable, Value.Structured, Value.Triv, Value.Tuple| Modifier and Type | Field and Description |
|---|---|
double |
mu
The mean, μ, and standard deviation, σ.
|
double |
sigma
The mean, μ, and standard deviation, σ.
|
| Modifier | Constructor and Description |
|---|---|
protected |
M(double msg1,
double msg2,
double mu,
Value sigma)
A constructor with one statistical parameter, σ,
for use by
NormalMu.M. |
|
M(double msg1,
double msg2,
Value muSigma)
Given the two-part message lengths, and
statistical parameter
|
| Modifier and Type | Method and Description |
|---|---|
double |
nlLH(Value ss)
Given ss =
stats(ds), of a data-set, ds,
return nlLH(ss), that is the negative log likelihood of ds. |
double |
nlPdf_x(double x)
The negative log pdf of a datum, x (double),
for use by
nlPdf. |
double |
random_x()
Generate a double from Nμ,σ
for use in
random(). |
double |
variance()
Return ν =
sigma2. |
asEstimator, asUPModel, m1m2sp, msg, msg1, msg1bits, msg2, msg2bits, msgBits, nl2LH, nl2Pr, pr, random, randomSeries, statParams, stats, stats, sumNlPr, transform, type, zeroTrivpublic final double mu
public final double sigma
public M(double msg1,
double msg2,
Value muSigma)
protected M(double msg1,
double msg2,
double mu,
Value sigma)
NormalMu.M.public double variance()
sigma2.public double nlPdf_x(double x)
nlPdf.nlPdf_x in class Continuous.Mpublic double nlLH(Value ss)
stats(ds), of a data-set, ds,
return nlLH(ss), that is the negative log likelihood of ds.public double random_x()
random(). It calls Java's
Random.nextGaussian() which "uses the polar method
of G.E.P.Box, M.E.Muller and G.Marsaglia."random_x in class Continuous.M