|
DNDSR 0.1.0.dev1+gcd065ad
Distributed Numeric Data Structure for CFV
|
Running-statistics accumulator using Welford's online algorithm. More...
#include <Profiling.hpp>
Public Member Functions | |
| void | clear () |
| Reset counts and moments to zero. | |
| ScalarStatistics & | update (real v) |
Incorporate a new sample v. | |
| std::tuple< real, real > | get () |
(mean, stddev) pair for the samples so far. | |
| real | getSum () const |
| Total sum of the samples (reconstructed from the running mean). | |
Running-statistics accumulator using Welford's online algorithm.
Updates mean and variance in a single pass without storing the sample history. Numerically stable for long sequences. Used to report residual / CFL / iteration-count statistics during solver runs.
Definition at line 98 of file Profiling.hpp.
|
inline |
Reset counts and moments to zero.
Definition at line 106 of file Profiling.hpp.
(mean, stddev) pair for the samples so far.
Definition at line 123 of file Profiling.hpp.
|
inline |
Total sum of the samples (reconstructed from the running mean).
Definition at line 129 of file Profiling.hpp.
|
inline |
Incorporate a new sample v.
Definition at line 113 of file Profiling.hpp.