Boost Users :
From: Eric Niebler (eric_at_[hidden])
Date: 2006-01-10 15:36:42
Eric Niebler wrote:
> I have been working on a statistical library based on an incremental
> calculation model. The syntax is like this:
> // define an accumulator set for calculating mean and max
> // of a sequence of doubles
> accumulator_set<double, stats<tag::mean, tag::max> > acc;
> // push some data into the accumulator
> // fetch some intermediate results
> std::cout << mean(acc) << std::endl;
> /* push more data, etc. */
> Some statistics may depend on the results of other statistics, in which
> case they are calculated automatically and in the correct order.
> The set of statistical accumulators is extensible, of course.
> I hope to have a version available online Real Soon Now.
I've now put what I have in the Boost File Vault. You can find it under
the name stats.tar.gz at the following location:
No docs, yet -- working on that right now. But the tests might give some
inkling of how to use it.
-- Eric Niebler Boost Consulting www.boost-consulting.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