#include <moving_average.h>
Public Member Functions | |
virtual void | addElement (T element) |
virtual bool | calcMovingAverage (T &average) const |
MovingAverageSimple (uint16_t size) | |
virtual void | reset () |
Protected Attributes | |
std::deque< T > | s_ |
uint16_t | size_ |
std::deque< double > | weighting_ |
Definition at line 40 of file moving_average.h.
MovingAverageSimple< T >::MovingAverageSimple | ( | uint16_t | size | ) | [inline, explicit] |
Definition at line 43 of file moving_average.h.
virtual void MovingAverageSimple< T >::addElement | ( | T | element | ) | [inline, virtual] |
Implements MovingAverageBase< T >.
Definition at line 55 of file moving_average.h.
virtual bool MovingAverageSimple< T >::calcMovingAverage | ( | T & | average | ) | const [inline, virtual] |
Implements MovingAverageBase< T >.
Definition at line 68 of file moving_average.h.
virtual void MovingAverageSimple< T >::reset | ( | ) | [inline, virtual] |
Implements MovingAverageBase< T >.
Definition at line 50 of file moving_average.h.
std::deque<T> MovingAverageSimple< T >::s_ [protected] |
Definition at line 91 of file moving_average.h.
uint16_t MovingAverageSimple< T >::size_ [protected] |
Definition at line 90 of file moving_average.h.
std::deque<double> MovingAverageSimple< T >::weighting_ [protected] |
Definition at line 92 of file moving_average.h.