public abstract class UPSeriesModel.Length.M extends UPSeriesModel.M
lengths
(as opposed to a terminating
Value/symbol). Also see UnParameterised UPSeriesModel.Length
.SeriesModel.Analysis
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 | Method and Description |
---|---|
abstract Model |
lenMdl()
Return the explicit, fully parameterised Model of lengths.
|
Value |
lenStats(Vector seqs,
int lo,
int hi)
Return
lenMdl() .stats(seqs,lo,hi) statistics on
the lengths of seqs, a data-set of Vectors. |
double |
nlPr(Value sv)
The negative log probability of datum Series sv is the
sum of the nlPr of sv's length, and of sv's elements.
|
Vector |
random()
Generate a random Series, that is a Vector of a random
length, with random contents, from the Model.
|
analysis, asUPModel
asEstimator, m1m2sp, msg, msg1, msg1bits, msg2, msg2bits, msgBits, nl2LH, nl2Pr, nlLH, pr, random, randomSeries, statParams, stats, stats, sumNlPr, transform, type, zeroTriv
public M(double msg1, double msg2, Value sp)
public abstract Model lenMdl()
public double nlPr(Value sv)
nlPr
in class SeriesModel
public Value lenStats(Vector seqs, int lo, int hi)
lenMdl()
.stats(seqs,lo,hi) statistics on
the lengths of seqs, a data-set of Vectors.
This is used in stats(seqs)
.
Also see UPSeriesModel.Length.lenStats(la.maths.Vector, int, int)
.public Vector random()
lenMdl()
and SeriesModel.Analysis.eltM()
to implement random().