public class Tree.Leaf extends Tree.M
parameterised
Tree FunctionModel consisting
of a single Leaf; it contains a Model
over the output
(dependent) datum, 'od'. mdl is a parameteristaion of
Tree.leafUPM
. Also see Tree.Fork
.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 |
mdl
'mdl', the Model of the output datum, 'od'.
|
Constructor and Description |
---|
Leaf(double msg1,
double msg2,
Value sp)
|
Modifier and Type | Method and Description |
---|---|
Model |
condModel(Value id)
Given input datum 'id', always return
mdl of od. |
double |
nlLH(Value ss)
Assumes
statistics 'ss'
are the data-set itself. |
asUPModel, condNl2Pr, condNlPr, condPr, nlPr, pr, random, random
asEstimator, m1m2sp, msg, msg1, msg1bits, msg2, msg2bits, msgBits, nl2LH, nl2Pr, random, randomSeries, statParams, stats, stats, sumNlPr, transform, type, zeroTriv
public final Model mdl
leafUPM
.apply(sp.fst()).
Note that mdl can be a simple Model
or a
FunctionModel
, say.public Leaf(double msg1, double msg2, Value sp)
public double nlLH(Value ss)
statistics
'ss'
are the data-set itself.public Model condModel(Value id)
mdl
of od.condModel
in class FunctionModel