Simple average, min, max and std. deviation calculator. More...
#include <average.h>
Public Member Functions | |
void | Update (T const &x) |
Add new sample. | |
void | Reset () |
Reset statistics. | |
Sample statistics | |
uint32_t | Count () const |
Sample size. | |
T | Min () const |
Minimum. | |
T | Max () const |
Maximum. | |
double | Avg () const |
Sample average. | |
double | Mean () const |
Estimate of mean, alias to Avg. | |
double | Var () const |
Unbiased estimate of variance. | |
double | Stddev () const |
Standard deviation. | |
Error of the mean estimates | |
double | Error90 () const |
Margin of error of the mean for 90% confidence level. | |
double | Error95 () const |
Margin of error of the mean for 95% confidence level. | |
double | Error99 () const |
Margin of error of the mean for 99% confidence level. |
Simple average, min, max and std. deviation calculator.