#include <moving_average.h>
Public Member Functions | |
void | addElement (T element) |
bool | calcMovingAverage (T &average) const |
MovingAverageExponential (double factor) | |
virtual void | reset () |
Private Attributes | |
T | average_ |
bool | empty_ |
double | factor_ |
Definition at line 126 of file moving_average.h.
MovingAverageExponential< T >::MovingAverageExponential | ( | double | factor | ) | [inline, explicit] |
Definition at line 129 of file moving_average.h.
void MovingAverageExponential< T >::addElement | ( | T | element | ) | [inline, virtual] |
Implements MovingAverageBase< T >.
Definition at line 142 of file moving_average.h.
bool MovingAverageExponential< T >::calcMovingAverage | ( | T & | average | ) | const [inline, virtual] |
Implements MovingAverageBase< T >.
Definition at line 155 of file moving_average.h.
virtual void MovingAverageExponential< T >::reset | ( | ) | [inline, virtual] |
Implements MovingAverageBase< T >.
Definition at line 136 of file moving_average.h.
T MovingAverageExponential< T >::average_ [private] |
Definition at line 172 of file moving_average.h.
bool MovingAverageExponential< T >::empty_ [private] |
Definition at line 170 of file moving_average.h.
double MovingAverageExponential< T >::factor_ [private] |
Definition at line 171 of file moving_average.h.