lppl  v2.0.0

◆ loglikelihood() [2/3]

template<typename... Ts>
double loglikelihood ( record_t< DTypes< Ts... >> &  record,
std::function< double(double)> &&  scale 
)

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

Template Parameters
TsThe types of the distributions in the program
Parameters
recordthe record for which to compute the log likelihood
scale\( \beta:\ double \rightarrow double \) scales the likelihood values
Returns
double