|
| JStats (const JTitle &title="") |
| Constructor.
|
|
template<class JElement_t , class JAllocator_t > |
| JStats (const JTitle &title, const array_type< JElement_t, JAllocator_t > &buffer, const double w=1.0) |
| Constructor.
|
|
void | reset () |
| Reset.
|
|
JStats & | add (const JStats &Q) |
| Add stats.
|
|
void | put (const double x, const double w=1.0) |
| Put value.
|
|
template<class JElement_t , class JAllocator_t > |
void | put (const array_type< JElement_t, JAllocator_t > &buffer, const double w=1.0) |
| Put data.
|
|
long long int | getCount () const |
| Get total count.
|
|
double | getTotal () const |
| Get total weight.
|
|
double | getXmin () const |
| Get minimum value.
|
|
double | getXmax () const |
| Get maximum value.
|
|
double | getWmin () const |
| Get minimum weight.
|
|
double | getWmax () const |
| Get maximum weight.
|
|
double | getMean () const |
| Get mean value.
|
|
double | getMean (const double value) const |
| Get mean value.
|
|
double | getSTDev () const |
| Get standard deviation.
|
|
double | getSTDev (const double value) const |
| Get standard deviation.
|
|
double | getDeviation (const bool relative=true) const |
| Get maximal deviation from average.
|
|
bool | hasAccuracy (const double precision) const |
| Test relative accuracy.
|
|
std::ostream & | print (std::ostream &out, bool lpr=true) const |
| Print stats.
|
|
const std::string & | getTitle () const |
| Get title.
|
|
void | setTitle (const std::string &title) |
| Set title.
|
|
JFirst_t & | mul (const JSecond_t &object) |
| Multiply with object.
|
|
Auxiliary data structure for running average and standard deviation.
See Knuth TAOCP vol 2, 3rd edition, page 232.
This class acts as a zero-dimensional histogram.
Note that if a weight is used, it should strictly be positive.
Definition at line 41 of file JStats.hh.