public class Dependent.M extends Multivariate.M
Dependent
Model of
data pairs, 〈id, od〉, made from a Model, im,
of the input (independent) datum, id, and from a FunctionModel
,
fm, of the ouput (dependent) datum, od, conditional upon id.
Note that id and/or od may be multivariate.
Also see Independent.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 |
---|---|
UPFunctionModel.M |
fm
'fm', the fully parameterised
FunctionModel
of the output datum, od, conditional upon the input datum, id. |
Model |
im
'im', the fully parameterised input
Model
of the input datum, id. |
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 iod)
The negative log probability of datum
iod = (id, od).
|
Value.Tuple |
random()
|
Value.Tuple |
stats(boolean add,
Value ss0,
Value ss1)
|
Value.Tuple |
stats(Vector ds,
int lo,
int hi)
|
functionModel, width
asEstimator, asUPModel, m1m2sp, msg, msg1, msg1bits, msg2, msg2bits, msgBits, nl2LH, nl2Pr, pr, random, randomSeries, statParams, stats, stats, sumNlPr, transform, type, zeroTriv
public final UPFunctionModel.M fm
FunctionModel
of the output datum, od, conditional upon the input datum, id.public M(double msg1, double msg2, Value sps)
public double nlPr(Value iod)
public Value.Tuple stats(Vector ds, int lo, int hi)
im
's, fm
's〉.
ss is a pair. "im's" is the stats from im.stats(.) etc..
Note that im's depends on only the first column of ds, but fm's,
being for an UnParameterised FunctionModel, depends on both columns.
May or may not equal Dependent.stats(Vector,int,int)
.
More on stats here
.public Value.Tuple stats(boolean add, Value ss0, Value ss1)
public double nlLH(Value ss)
stats(ds)
of
a data-set, ds, return the negative log likelihood of ds.public Value.Tuple random()