public class MultiState.M extends Discretes.Bounded.M
MultiState
Model.
The statistical parameters
is a Vector of
probabilities, which must be (L1-) normalised. This is checked!Model.Defaults, Model.Transform
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
Constructor and Description |
---|
M(double msg1,
double msg2,
Value prs)
The statistical parameters, prs, are the probabilities.
|
Modifier and Type | Method and Description |
---|---|
double |
nlLH(Value ss)
Given sufficient statistics,
stats(ds) , |
double |
nlPr_n(int dn)
Return
nlPrs [dn-lwb_n()]. |
double |
pr_n(int dn)
Return
prs [dn-lwb_n()]. |
asUPModel, bounds, lwb_n, lwb, random_n, random, random, randomSeries, type, upb_n, upb
nlPr, pr, shifted
asEstimator, m1m2sp, msg, msg1, msg1bits, msg2, msg2bits, msgBits, nl2LH, nl2Pr, statParams, stats, stats, sumNlPr, transform, zeroTriv
public M(double msg1, double msg2, Value prs)
public double pr_n(int dn)
prs
[dn-lwb_n()].pr_n
in class Discretes.M
public double nlPr_n(int dn)
nlPrs
[dn-lwb_n()].nlPr_n
in class Discretes.M