lppl  v2.0.0

◆ dist()

template<typename O , typename... Ts>
std::vector<std::variant<Ts...> > dist ( FilterValueType< O, Ts... > &  cache,
std::string  address 
)

Computes \(dist(r(a)) \sim D(r)\), where \(dist(r(a))\) is the distribution object associated with the address \(a\) and \(D(r)\) is the empirical unweighted distribution over records.

Template Parameters
TsTypes of distributions in the record
Parameters
cachethe empirical distribution over records
addressthe address over which to take the mean
Returns
std::vector<std::variant<Ts...>>