Boost logo

Boost Users :

Subject: Re: [Boost-users] Remove elements from accumulator
From: Eric Niebler (eric_at_[hidden])
Date: 2009-08-02 11:45:49


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

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