public class GammaUPM.M extends Continuous.M
Continuous.M.Transform
Model.Defaults
Value.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 |
k
Shape parameter 'k', and scale parameter θ (theta).
|
double |
theta
Shape parameter 'k', and scale parameter θ (theta).
|
Modifier and Type | Method and Description |
---|---|
double |
nlLH(Value ss)
Assumes that
statistics
are the data-set itself. |
double |
nlPdf_x(double x)
|
double |
random_x()
See Marsaglia & Tsang,
A simple method for generating Gamma variables,
ACM Trans on Math Software, 26(3), 363-372, 2000.
|
asEstimator, asUPModel, m1m2sp, msg, msg1, msg1bits, msg2, msg2bits, msgBits, nl2LH, nl2Pr, pr, random, randomSeries, statParams, stats, stats, sumNlPr, transform, type, zeroTriv
public final double k
public final double theta
public M(double msg1, double msg2, Value sp)
public double nlPdf_x(double x)
nlPdf_x
in class Continuous.M
public double nlLH(Value ss)
statistics
are the data-set itself.public double random_x()
random_x
in class Continuous.M