Remove elements from accumulator
2 Aug
2009
2 Aug
'09
12:24 p.m.
I am trying to use accumulator to calculate statistics in "rolling window", traversing the data. I searched accumulators library for a method to remove first N elements from the accumulator and did not find one. Question: is is possible to remove first N values from the accumulator?
2 Aug
2 Aug
3:45 p.m.
Archie14 wrote:
I am trying to use accumulator to calculate statistics in "rolling window", traversing the data. I searched accumulators library for a method to remove first N elements from the accumulator and did not find one.
Question: is is possible to remove first N values from the accumulator?
No, but there are some rolling window statistical accumulators: rolling_sum and rolling_mean. -- Eric Niebler BoostPro Computing http://www.boostpro.com
5596
Age (days ago)
5596
Last active (days ago)
1 comments
2 participants
participants (2)
-
Archie14
-
Eric Niebler