#include <running_stats.hh>
Public Member Functions | |
void | addSample (double new_value) |
double | getMean (void) |
double | getStandardDeviation (void) |
double | getVariance (void) |
void | reset (void) |
RunningStats () | |
Private Attributes | |
int | N_ |
double | sum2_ |
double | sum_ |
Definition at line 27 of file running_stats.hh.
RunningStats::RunningStats | ( | ) | [inline] |
Definition at line 29 of file running_stats.hh.
void RunningStats::addSample | ( | double | new_value | ) | [inline] |
Definition at line 35 of file running_stats.hh.
double RunningStats::getMean | ( | void | ) | [inline] |
Definition at line 51 of file running_stats.hh.
double RunningStats::getStandardDeviation | ( | void | ) | [inline] |
Definition at line 67 of file running_stats.hh.
double RunningStats::getVariance | ( | void | ) | [inline] |
Definition at line 57 of file running_stats.hh.
void RunningStats::reset | ( | void | ) | [inline] |
Definition at line 43 of file running_stats.hh.
int RunningStats::N_ [private] |
Definition at line 73 of file running_stats.hh.
double RunningStats::sum2_ [private] |
Definition at line 75 of file running_stats.hh.
double RunningStats::sum_ [private] |
Definition at line 74 of file running_stats.hh.