Hi, I like to collects some stats. There are several data slices where I can partially/separated collect them (each of them). Finaly I like to combine these stats to a single one to get summarized informations. How to? May this work: accumulator_set<..> acc1; accumulator_set<..> acc2; ... accumulator_set<..> acc_all; ... acc1(42); ... acc_all += acc1; ... acc_all += acc2; Because did not found informations about. The same problem woulde be probably for a threaded implementation too. Thanks, Olaf
On 7/1/11 2:59 AM, Olaf Peter wrote:
Because did not found informations about. The same problem woulde be probably for a threaded implementation too.
It seems you wish to merge two accumulators. I have not seen it and, in any case, it would be restricted to a narrow subset of statistics. I think it would not work, say, for a quantile.
Thanks, Olaf
Because did not found informations about. The same problem woulde be probably for a threaded implementation too.
It seems you wish to merge two accumulators. I have not seen it and, in
yes,
any case, it would be restricted to a narrow subset of statistics. I think it would not work, say, for a quantile.
OK, this make sense, I did had only counting acc. in mind ... Thanks, Olaf
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.... Sent from the Boost - Users mailing list archive at Nabble.com.
On 5/15/2012 11:04 PM, killogre wrote:
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 ?
This is an oft-requested feature. See: https://svn.boost.org/trac/boost/ticket/2215 I recall that this was discussed during the early design phases of the library and was left out for just the reason you state -- it can't be implemented consistently. Maybe some enterprising person will figure it out and submit a patch. <nudge> -- Eric Niebler BoostPro Computing http://www.boostpro.com
participants (4)
-
er
-
Eric Niebler
-
killogre
-
Olaf Peter