|
numeric
|
#include <Stats.hpp>
Public Member Functions | |
| Stats () | |
| void | update (T const &data, double weight=1.0) |
| void | clear () |
| T | min () const |
| T | max () const |
| T | mean () const |
| SquareType | var () const |
| T | stdev () const |
| double | sumWeights () const |
| size_t | n () const |
| void | setDDof (double new_ddof) |
| template<> | |
| Stats< base::VectorXd >::SquareType | var () const |
| template<> | |
| base::VectorXd | stdev () const |
Small helper class, which performs simple statistics on a stream of values. Internally only commulative data is stored, regardless on how many times you call update()
| numeric::Stats< T >::Stats | ( | ) |
| void numeric::Stats< T >::clear | ( | ) |
| T numeric::Stats< T >::max | ( | ) | const |
| T numeric::Stats< T >::mean | ( | ) | const |
| T numeric::Stats< T >::min | ( | ) | const |
| size_t numeric::Stats< T >::n | ( | ) | const |
|
inline |
Sets the delta for degrees of freedom, that is used to correct variance estimates.
var = 1 / (N-ddof) * sum(x_i - mean)^2
Default value is 0.
| T numeric::Stats< T >::stdev | ( | ) | const |
|
inline |
| double numeric::Stats< T >::sumWeights | ( | ) | const |
| void numeric::Stats< T >::update | ( | T const & | data, |
| double | weight = 1.0 |
||
| ) |
|
inline |
|
inline |
1.8.13