public class Multinomial.M.Trials.TM extends UPModel.M
'k'
frequencies that sum to 'n'
.
Note that 'Trials.TM' is only a partially implemented model
– just enough for the purposes of Multinomial.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
Constructor and Description |
---|
TM(double msg1,
double msg2,
Value sp)
Note, 'sp' is 'triv', '( )'.
|
Modifier and Type | Method and Description |
---|---|
double |
nlLH(Value ss)
Not implemented, throw an
RTE ! |
double |
nlPr(Value f)
Negative log probability of 'f', frequencies of
'k' categories in 'n' trials.pr(f) = (n! / (∏ f[i]!)) (∏ pr[i]^f[i]) The 'pr[i]' , actually the nlPrs[i] ,
come from the Multinomial.M . |
asEstimator, asUPModel, m1m2sp, msg, msg1, msg1bits, msg2, msg2bits, msgBits, nl2LH, nl2Pr, pr, random, random, randomSeries, statParams, stats, stats, sumNlPr, transform, type, zeroTriv
public TM(double msg1, double msg2, Value sp)
public double nlPr(Value f)
'k'
categories in 'n'
trials.nlPrs[i]
,
come from the Multinomial.M
.
Note, 'f' must be a Vector of
'k' integers (frequencies) that sum to 'n';
nlPr(f) throws an error
if not.