Boost logo

Boost Users :

Subject: [Boost-users] [Accumulators] Calling extractors on empty accumulator_set
From: Dylan Klomparens (dylan.klomparens_at_[hidden])
Date: 2011-10-12 14:46:32


Hello all,

I am curious, what mean is obtained from this code snippet?

    boost::accumulators::accumulator_set<int,
boost::accumulators::features<boost::accumulators::tag::mean> > Accumulator;
    int Mean = boost::accumulators::mean(Accumulator);

It appears to be non-zero when I test it. Is there some way I can tell that
the average was taken for an empty data set?

I was looking around in the documentation for the accumulator library, but
was unable to find an answer to this question.

Thanks in advance!

-- Dylan



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