std::tr1::array<double, 10> alpha;
std::iota(alpha.begin(), alpha.end(), 0);
using namespace boost::accumulators;
size_t const SIZE = 1000000;
accumulator_set<double, stats<tag::mean, tag::lazy_variance > > acc;
std::for_each(alpha.begin(), alpha.end(), [&](double const VALUE){ acc(VALUE);});
How could I clear the contents of the acc if I want to evaluate a new mean and variance?
Thank you very much.