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| Modifier and Type | Field and Description |
|---|---|
MultiState.M |
presentMdl
The fully parameterised Model of whether a Value is present
(known) or missing (unknown).
|
Model |
valueMdl
The fully parameterised Model all present (known) Values.
|
| Constructor and Description |
|---|
M(double msg1,
double msg2,
Value sp)
Two part message lengths, msg1 and msg2,
and statistical parameter(s) 'sp'.
|
| Modifier and Type | Method and Description |
|---|---|
double |
nlLH(Value ss)
Given sufficient statistics,
ss=stats(ds), of a data-set 'ds',
return the negative log LikeliHood of 'ds'. |
double |
nlPr(Value d)
Return the negative log probability of datum 'd'.
|
Value |
random()
Return a random Value from 'this' Model – provided that
valueMdl can do random(). |
Value.Tuple |
stats(boolean add,
Value ss0,
Value ss1)
Use
presentMdl.stats(...)
and valueMdl.stats(...). |
Value.Tuple |
stats(Vector ds,
int lo,
int hi)
Use
presentMdl.stats(...)
and valueMdl.stats(...) to
calculate the statistics of ds[lo,hi). |
asEstimator, asUPModel, m1m2sp, msg, msg1, msg1bits, msg2, msg2bits, msgBits, nl2LH, nl2Pr, pr, random, randomSeries, statParams, stats, stats, sumNlPr, transform, type, zeroTrivpublic final MultiState.M presentMdl
Missing.presentUPM.public final Model valueMdl
Missing.valueUPM.public M(double msg1,
double msg2,
Value sp)
presentUPM and
one for valueUPM.public double nlPr(Value d)
presentMdl for None, and
both presentMdl and valueMdl
for Just(v).public Value.Tuple stats(Vector ds, int lo, int hi)
presentMdl.stats(...)
and valueMdl.stats(...) to
calculate the statistics of ds[lo,hi).
Note this might be the same as
Missing.stats(la.maths.Vector,int,int), or not!public Value.Tuple stats(boolean add, Value ss0, Value ss1)
presentMdl.stats(...)
and valueMdl.stats(...).
Combine statistics ss0 and ss1, either ss0 "+" ss1, or ss0 "-" ss1,
depending on 'add' being true or false.
Note this might be the same as
Missing.stats(boolean,Value,Value), or not!public double nlLH(Value ss)
ss=stats(ds), of a data-set 'ds',
return the negative log LikeliHood of 'ds'.