Simple class to gather statistics : min, max, mean, rms.
More...
#include <StatUtils.h>
|
| void | add (double val) |
| | @bruef Gather a new value will update min, max and the sums to compute mean and rms
|
| unsigned int | n () const |
| double | min () const |
| double | max () const |
| double | mean () const |
| double | rms2 () const |
| double | rms () const |
| void | reset () |
| | Set statistics to zero.
|
| Stat & | operator+= (const Stat &b) |
| | @breif Add the statistics gathered in the Stat object b
|
Simple class to gather statistics : min, max, mean, rms.
Definition at line 17 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 21 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+=()
| Stat & ActsUtils::Stat::operator+= |
( |
const Stat & | b | ) |
|
|
inline |
@breif Add the statistics gathered in the Stat object b
Definition at line 45 of file StatUtils.h.
45 {
51 return *this;
52 }
◆ reset()
| void ActsUtils::Stat::reset |
( |
| ) |
|
|
inline |
Set statistics to zero.
Definition at line 36 of file StatUtils.h.
36 {
40 m_min=std::numeric_limits<double>::max();
41 m_max=-std::numeric_limits<double>::max();
42 }
◆ 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: