Boost logo

Boost Users :

Subject: Re: [Boost-users] [accumulators] density: empty values
From: Eric Niebler (eric_at_[hidden])
Date: 2009-05-15 17:40:09


Robert Kubrick wrote:
>
> A couple of questions:
>
> 1) I have a real-time application that keeps track of some statistics
> based on the events received so the values can not be
> pre-determined. Statistics are reset by the application at regular
> time intervals. What happens if I leave the cache_size parameter to
> 1 and then keep adding samples? Is there a serious performance
> penalty?

I mentioned that I didn't write the density accumulator. I don't have an
answer for you. CC'ing Matthias.

> 2) Is there a way to reset the acc object in the example? Or do I
> have to deallocate the object and instantiate a new one to
> generate a new sampling?

This is a frequently requested feature, so I just created a ticket for it:

https://svn.boost.org/trac/boost/ticket/3040

-- 
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