Simple moving average statistic.
More...
#include <Statistic.h>
Simple moving average statistic.
Definition at line 286 of file Statistic.h.
◆ MovingAverageStatistic()
| agxUtil::MovingAverageStatistic::MovingAverageStatistic |
( |
size_t |
maxHistorySize | ) |
|
|
inline |
- Parameters
-
| maxHistorySize | - The number of observations to keep in the history. |
Definition at line 292 of file Statistic.h.
◆ ~MovingAverageStatistic()
| virtual agxUtil::MovingAverageStatistic::~MovingAverageStatistic |
( |
| ) |
|
|
inlinevirtual |
◆ get()
| virtual agx::Real agxUtil::MovingAverageStatistic::get |
( |
| ) |
const |
|
inlinevirtual |
◆ make_statistic()
| static StatisticHandleRef agxUtil::MovingAverageStatistic::make_statistic |
( |
size_t |
maxHistorySize | ) |
|
|
inlinestatic |
◆ update()
Updates the statistic given the current observation and returns the current value of this statistic.
- Parameters
-
| observation | - the current observation |
- Returns
- the current value of this statistic
Implements agxUtil::Statistic.
Definition at line 295 of file Statistic.h.
◆ m_maxHistorySize
| size_t agxUtil::MovingAverageStatistic::m_maxHistorySize |
|
protected |
◆ m_values
The documentation for this class was generated from the following file: