RAPIDO
Repeatable Analysis Programming for Interpretability, Durability, and Organization
|
#include <utilities.h>
Public Member Functions | |
RunningStat () | |
void | push (float value) |
int | size () |
float | sum () |
float | max () |
float | min () |
float | mean () |
float | variance () |
float | stddev () |
Object for computing variance of a data set without having to store every data point for a second pass
Stolen from D. Knuth, Art of Computer Programming, Vol 2, page 232, 3rd edition
Utilities::RunningStat::RunningStat | ( | ) |
RunningStat object constructor
float Utilities::RunningStat::max | ( | ) |
Get max of values pushed
float Utilities::RunningStat::mean | ( | ) |
Get approximate mean of values pushed
float Utilities::RunningStat::min | ( | ) |
Get min of values pushed
void Utilities::RunningStat::push | ( | float | value | ) |
Push a new value and update running statistics
value | new value to push |
int Utilities::RunningStat::size | ( | ) |
Get number of values pushed
float Utilities::RunningStat::stddev | ( | ) |
Get approximate standard deviation of values pushed
float Utilities::RunningStat::sum | ( | ) |
Get sum of values pushed
float Utilities::RunningStat::variance | ( | ) |
Get approximate variance of values pushed