lppl  v2.0.0

◆ score()

template<typename O , typename... Ts>
double score ( FilterValueType< O, Ts... > &  cache)

Computes the score \( E_{r \sim D(r)}[\sum_{a: a\ observed} p(r(a))]\), where \(D(r)\) is the empirical unweighted distribution over records.

Template Parameters
TsTypes of distributions in the record
Parameters
cachethe empirical distribution over records
Returns
double