lppl  v2.0.0

◆ loglikelihood() [1/3]

template<typename... Ts>
double loglikelihood ( record_t< DTypes< Ts... >> &  record)

Computes the cumulative log-likelihood of the record, \( \sum_{a\ observed} \log p(r(a)) \).

Template Parameters
TsThe types of the distributions in the program
Parameters
recordthe record for which to compute the log likelihood
Returns
double