#include <senf/Utils/StatisticAccumulator.hh>

Public Member Functions | |
| StatisticsEWMA (float alpha=0.25f, T const &value=T()) | |
| void | clear (T const &value=T()) |
| Reset accumulated values. More... | |
| void | accumulate (T const &value) |
| Gather value to be accumulated. More... | |
| void | accumulateWithLoss (T const &value, unsigned numLost) |
| Gather value to be accumulated. More... | |
| bool | operator< (StatisticsEWMA< T > const &other) const |
| operator bool () const | |
| Returns true if valid data is present. More... | |
| unsigned | count () const |
| Returns count of accumulated values. More... | |
| T const & | ewma () const |
| float const & | alpha () const |
Definition at line 129 of file StatisticAccumulator.hh.
| senf::StatisticsEWMA< T >::StatisticsEWMA | ( | float | alpha = 0.25f, |
| T const & | value = T() |
||
| ) |
| void senf::StatisticsEWMA< T >::accumulate | ( | T const & | value | ) |
Gather value to be accumulated.
| void senf::StatisticsEWMA< T >::accumulateWithLoss | ( | T const & | value, |
| unsigned | numLost | ||
| ) |
Gather value to be accumulated.
| float const& senf::StatisticsEWMA< T >::alpha | ( | ) | const |
| void senf::StatisticsEWMA< T >::clear | ( | T const & | value = T() | ) |
Reset accumulated values.
This member reset all values.
| unsigned senf::StatisticsEWMA< T >::count | ( | ) | const |
Returns count of accumulated values.
This method returns count of accumulated values of the current accumulation.
| T const& senf::StatisticsEWMA< T >::ewma | ( | ) | const |
|
explicit |
Returns true if valid data is present.
This method indicates if valid data is present
| bool senf::StatisticsEWMA< T >::operator< | ( | StatisticsEWMA< T > const & | other | ) | const |