Cumulative standard deviation: Difference between revisions

Content added Content deleted
(compute stdev from vector of moments, not directly from accumulator)
Line 594: Line 594:
=={{header|C++}}==
=={{header|C++}}==
No attempt to handle different types -- standard deviation is intrinsically a real number.
No attempt to handle different types -- standard deviation is intrinsically a real number.
<lang cpp#include <assert.h>
<lang cpp>
#include <assert.h>
#include <cmath>
#include <cmath>
#include <vector>
#include <vector>