#include <include/EST_simplestats.h>
Public Member Functions | |
EST_SuffStats () | |
EST_SuffStats (double in, double isum, double isumx) | |
EST_SuffStats (const EST_SuffStats &s) | |
void | copy (const EST_SuffStats &s) |
void | reset (void) |
reset internal values More... | |
void | set (double in, double isum, double isumx) |
double | samples (void) |
number of samples in set More... | |
double | sum () |
sum of values More... | |
double | sumx () |
sum of squared values More... | |
double | mean (void) const |
mean of currently cummulated values More... | |
double | variance (void) const |
variance of currently cummulated values More... | |
double | stddev (void) const |
standard deviation of currently cummulated values More... | |
void | cumulate (double a, double count=1.0) |
EST_SuffStats & | operator+= (double a) |
Used to cummulate new values. More... | |
EST_SuffStats & | operator+ (double a) |
Used to cummulate new values. More... | |
EST_SuffStats & | operator= (const EST_SuffStats &a) |
A class for cummulating ``sufficient statistics'' for a set of numbers: sum, count, sum squared.
This collects the number, sum and sum squared for a set of number. Offering mean, variance and standard deviation derived from the cummulated values.
Definition at line 136 of file EST_simplestats.h.
|
inline |
Definition at line 143 of file EST_simplestats.h.
|
inline |
Definition at line 145 of file EST_simplestats.h.
|
inline |
Definition at line 148 of file EST_simplestats.h.
|
inline |
Definition at line 150 of file EST_simplestats.h.
|
inline |
reset internal values
Definition at line 153 of file EST_simplestats.h.
|
inline |
Definition at line 154 of file EST_simplestats.h.
|
inline |
number of samples in set
Definition at line 157 of file EST_simplestats.h.
|
inline |
sum of values
Definition at line 159 of file EST_simplestats.h.
|
inline |
sum of squared values
Definition at line 161 of file EST_simplestats.h.
|
inline |
mean of currently cummulated values
Definition at line 163 of file EST_simplestats.h.
|
inline |
variance of currently cummulated values
Definition at line 165 of file EST_simplestats.h.
|
inline |
standard deviation of currently cummulated values
Definition at line 168 of file EST_simplestats.h.
|
inline |
Definition at line 170 of file EST_simplestats.h.
|
inline |
Used to cummulate new values.
Definition at line 174 of file EST_simplestats.h.
|
inline |
Used to cummulate new values.
Definition at line 177 of file EST_simplestats.h.
|
inline |
Definition at line 180 of file EST_simplestats.h.