lppl  v2.0.0

◆ mean()

template<typename O , typename... Ts>
double mean ( FilterValueType< O, Ts... > &  cache,
std::function< double(double &&)> &&  map_,
std::string  address 
)

Computes \(E_{r(a):\ r \sim D(r)}[f(r(a))]\), where \(D(r)\) is the empirical distribution over records and \( f: double -> double \).

Template Parameters
TsTypes of distributions in the record
Parameters
cachethe empirical distribution over records
map_the mapping function \(f\)
addressthe address over which to take the mean
Returns
double