|
fmcs
v0.2.1
|
| 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 \).
| Ts | Types of distributions in the record |
| cache | the empirical distribution over records |
| map_ | the mapping function \(f\) |
| address | the address over which to take the mean |