Boost logo

Boost Users :

Subject: Re: [Boost-users] accumulator operations
From: killogre (yaron.berman_at_[hidden])
Date: 2012-05-16 02:04:00


Olaf Peter wrote
>
>
> accumulator_set<..> acc1;
> accumulator_set<..> acc2;
> ...
> accumulator_set<..> acc_all;
> ...
> acc1(42);
> ...
> acc_all += acc1;
> ...
> acc_all += acc2;
>
>

I understand that it's not possible to += all types of accumulated
statistics, but I will find it extremely useful to be able to do it for a
lot of stats that support this (count, sum, moment, covariance, more...).
Is there any way of using the accumulator_set interface to achieve the
equivalent of acc1 += acc2 ?

--
View this message in context: http://boost.2283326.n4.nabble.com/accumulator-operations-tp3637631p4630153.html
Sent from the Boost - Users mailing list archive at Nabble.com.

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net