
31 Jan
2007
31 Jan
'07
5:21 a.m.
This library looks very interesting. One feature I would like to see but couldn't find in the documentation is the ability to combine accumulators. For example, accumulator_set<double, stats<tag::mean> > acc1, acc2; acc1(1.0); acc2(2.0); acc1(acc2); cout << "Mean of 1.0 and 2.0 is " << mean(acc1) << endl; // Prints 1.5. This would be particularly useful for parallel computing applications. Is this possible? Would it be difficult to add? —Ben