Simple class to gather statistics : min, max, mean, rms.
More...
#include <StatUtils.h>
|
unsigned int | m_n =0 |
|
double | m_sum =0. |
|
double | m_sum2 =0. |
|
double | m_min =std::numeric_limits<double>::max() |
|
double | m_max =-std::numeric_limits<double>::max() |
|
Simple class to gather statistics : min, max, mean, rms.
Definition at line 16 of file StatUtils.h.
◆ add()
void ActsUtils::Stat::add |
( |
double |
val | ) |
|
|
inline |
@bruef Gather a new value will update min, max and the sums to compute mean and rms
Definition at line 20 of file StatUtils.h.
◆ max()
double ActsUtils::Stat::max |
( |
| ) |
const |
|
inline |
◆ mean()
double ActsUtils::Stat::mean |
( |
| ) |
const |
|
inline |
◆ min()
double ActsUtils::Stat::min |
( |
| ) |
const |
|
inline |
◆ n()
unsigned int ActsUtils::Stat::n |
( |
| ) |
const |
|
inline |
◆ operator+=()
@breif Add the statistics gathered in the Stat object b
Definition at line 44 of file StatUtils.h.
◆ reset()
void ActsUtils::Stat::reset |
( |
| ) |
|
|
inline |
Set statistics to zero.
Definition at line 35 of file StatUtils.h.
◆ rms()
double ActsUtils::Stat::rms |
( |
| ) |
const |
|
inline |
◆ rms2()
double ActsUtils::Stat::rms2 |
( |
| ) |
const |
|
inline |
◆ m_max
double ActsUtils::Stat::m_max =-std::numeric_limits<double>::max() |
◆ m_min
double ActsUtils::Stat::m_min =std::numeric_limits<double>::max() |
◆ m_n
unsigned int ActsUtils::Stat::m_n =0 |
◆ m_sum
double ActsUtils::Stat::m_sum =0. |
◆ m_sum2
double ActsUtils::Stat::m_sum2 =0. |
The documentation for this class was generated from the following file: