Boost logo

Boost :

From: John Maddock (john_at_[hidden])
Date: 2007-01-31 04:33:34

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.



Boost list run by bdawes at, gregod at, cpdaniel at, john at