lhood_canonical( +MODst, +MODi, -LLst, +LLi, -Ratio ). | |
and model_llhood( +Model, -Llhood ) |
Figs 6, 14 and 17
in the tutorial provide examples of definitions of these predicates. Variables prefixed by stand for `input' variables which are
instantiated at the time of the call, while those prefixed by
are
`output' variables which are not instantiated until exit time.
is the proposed model,
is the current model,
is
the log-likelihood of
,
is the log-likelihood of
and
is the likelihood ratio of
over
.
For model_likelihood/2, is a model, and
is
its log-likelihood. This predicate should always be defined but if it
is not called from lhood_canonical/5 then it can instantiate
to any odd non-numeric value, e.g. model_llhood( _,
dont_know_it ).