|
Momentum Scripting v1
|
#include <Statistic.h>
Public Member Functions | |
| virtual | ~Statistic () |
| virtual double | get () const =0 |
| virtual double | update (double observation)=0 |
Abstract base class for handling smoothing of data points.
|
virtual |
|
pure virtual |
Implemented in v1::ExponentialMovingAverageStatistic, and v1::MedianStatistic.
|
pure virtual |
Updates the statistic given the current observation and returns the current value of this statistic.
| observation | - the current observation |
Implemented in v1::ExponentialMovingAverageStatistic, and v1::MedianStatistic.