public class Sequences.K.M extends Sequences.M
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
Modifier and Type | Field and Description |
---|---|
Model |
eltMdl
The (parameterised) Model to be used as the
Model of every element of the Sequence.
|
lengthMdl
Constructor and Description |
---|
M(double msg1,
double msg2,
Value sp)
sp = ⟨for_
Sequences.M.lengthMdl ,
for_eltMdl ⟩. |
Modifier and Type | Method and Description |
---|---|
double |
nlLH(Value ss)
The negative log likelihood of data-set 'ds' where
ss=
stats(ds) . |
double |
nlPr(Value d)
The negative log probability of Sequence (Vector)
datum 'd'.
|
Vector |
random()
Return a random Sequence (Vector).
|
Value |
stats(boolean add,
Value ss0,
Value ss1)
Return ⟨
lengthStats , eltStats⟩. |
Value |
stats(Vector ds,
int lo,
int hi)
Return ⟨
lengthStats , eltStats⟩. |
lengthStats
asEstimator, asUPModel, m1m2sp, msg, msg1, msg1bits, msg2, msg2bits, msgBits, nl2LH, nl2Pr, pr, random, randomSeries, statParams, stats, stats, sumNlPr, transform, type, zeroTriv
public final Model eltMdl
Sequences.K.eltUPM
.public M(double msg1, double msg2, Value sp)
Sequences.M.lengthMdl
,
for_eltMdl
⟩.public Value stats(Vector ds, int lo, int hi)
lengthStats
, eltStats⟩.
Note, may or may not be the same as
Sequences.K.stats(Vector,int,int)
.public Value stats(boolean add, Value ss0, Value ss1)
lengthStats
, eltStats⟩.
Note, may or may not be the same as
Sequences.K.stats(boolean,Value,Value)
.public double nlPr(Value d)
nlPr
in class Sequences.M