From: Eric Niebler (eric_at_[hidden])
Date: 2007-01-31 13:44:05
John Maddock wrote:
> Matthias Troyer wrote:
>>>> This all leads on to the algorithms used for the mean and variance
>>>> etc: I assume that these are of the "naive" variety? Perfectly
>>>> satisfactory for simple cases, but there are well known
>>>> pathological situations where these fail.
>>> Very naive, yes.
>> Actually tag::variance is the naive implementation while tag::variance
>> (immediate) is a more accurate implementation.
> OK I switched my torture test to use the "immediate" versions of the mean
> and variance, and got all the right answers :-) So with some suitable
> warnings in the documentation about which to use when, I'm happy now.
Whew! :-) Thanks for doing these tests, John.If you send me the latest
and greatest, I'll turn it into a regression test.
-- Eric Niebler Boost Consulting www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk