public class Int1.M extends Discretes.M
Int1.Model.Defaults, Model.TransformValue.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 sp)
msg1 must be zero and sp must be triv.
|
| Modifier and Type | Method and Description |
|---|---|
double |
nlLH(Value ss)
Negative log likelihood of data-set ds[lo,hi) where
ss=stats(ds,lo,hi). |
double |
nlPr_n(int n)
pr(n) = 1/(n(n+1)) so -log pr(n) equals
log(n) + log(n+1).
|
int |
random_n()
Not yet implemented (lazy).
|
nlPr, pr_n, pr, shiftedasEstimator, asUPModel, m1m2sp, msg, msg1, msg1bits, msg2, msg2bits, msgBits, nl2LH, nl2Pr, random, random, randomSeries, statParams, stats, stats, sumNlPr, transform, type, zeroTrivpublic M(double msg1,
double msg2,
Value sp)
public double nlLH(Value ss)
ss=stats(ds,lo,hi).public double nlPr_n(int n)
nlPr_n in class Discretes.Mpublic int random_n()
random_n in class Discretes.M