|
numerics 0.1.0
|
Welford updates for mean and variance. More...
#include <stats.hpp>
Public Member Functions | |
| void | update (real x) |
| real | variance () const |
| real | std_dev () const |
| real | stderr_mean () const |
| void | reset () |
Public Attributes | |
| real | mean = 0.0 |
| real | M2 = 0.0 |
| idx | count = 0 |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| idx num::RunningStats::count = 0 |
Definition at line 15 of file stats.hpp.
Referenced by reset(), stderr_mean(), update(), and variance().
| real num::RunningStats::M2 = 0.0 |
Definition at line 14 of file stats.hpp.
Referenced by reset(), update(), and variance().
| real num::RunningStats::mean = 0.0 |