ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
|
Keep running average and variance. More...
#include <RunningAverage.hpp>
Public Member Functions | |
RunningAverage () | |
void | add_sample (Scalar s) |
void | clear () |
int | n () const |
Scalar | avg () const |
Average of the samples. | |
Scalar | var () const |
Variance of the samples. | |
Scalar | sig () const |
Standard deviation of the samples. | |
Scalar | min () const |
Minimum. | |
Scalar | max () const |
Minimum. | |
Keep running average and variance.
The average should be numerically stable.
Definition at line 36 of file RunningAverage.hpp.
|
inline |
Definition at line 38 of file RunningAverage.hpp.
|
inline |
Definition at line 42 of file RunningAverage.hpp.
Referenced by benchmark_integration_step().
|
inline |
Average of the samples.
Definition at line 64 of file RunningAverage.hpp.
Referenced by benchmark_integration_step(), and check_statistics().
|
inline |
Definition at line 59 of file RunningAverage.hpp.
|
inline |
Minimum.
Definition at line 85 of file RunningAverage.hpp.
|
inline |
Minimum.
Definition at line 82 of file RunningAverage.hpp.
|
inline |
Definition at line 61 of file RunningAverage.hpp.
|
inline |
Standard deviation of the samples.
Definition at line 79 of file RunningAverage.hpp.
References Utils::Statistics::RunningAverage< Scalar >::var().
Referenced by check_statistics().
|
inline |
Variance of the samples.
Definition at line 71 of file RunningAverage.hpp.
Referenced by Utils::Statistics::RunningAverage< Scalar >::sig().