Public Member Functions | Protected Attributes
MovingAverageSimple< T > Class Template Reference

#include <moving_average.h>

Inheritance diagram for MovingAverageSimple< T >:
Inheritance graph
[legend]

List of all members.

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< Ts_
uint16_t size_
std::deque< double > weighting_

Detailed Description

template<typename T>
class MovingAverageSimple< T >

Definition at line 40 of file moving_average.h.


Constructor & Destructor Documentation

template<typename T >
MovingAverageSimple< T >::MovingAverageSimple ( uint16_t  size) [inline, explicit]

Definition at line 43 of file moving_average.h.


Member Function Documentation

template<typename T >
virtual void MovingAverageSimple< T >::addElement ( T  element) [inline, virtual]

Implements MovingAverageBase< T >.

Definition at line 55 of file moving_average.h.

template<typename T >
virtual bool MovingAverageSimple< T >::calcMovingAverage ( T average) const [inline, virtual]

Implements MovingAverageBase< T >.

Definition at line 68 of file moving_average.h.

template<typename T >
virtual void MovingAverageSimple< T >::reset ( ) [inline, virtual]

Implements MovingAverageBase< T >.

Definition at line 50 of file moving_average.h.


Member Data Documentation

template<typename T >
std::deque<T> MovingAverageSimple< T >::s_ [protected]

Definition at line 91 of file moving_average.h.

template<typename T >
uint16_t MovingAverageSimple< T >::size_ [protected]

Definition at line 90 of file moving_average.h.

template<typename T >
std::deque<double> MovingAverageSimple< T >::weighting_ [protected]

Definition at line 92 of file moving_average.h.


The documentation for this class was generated from the following file:


cob_twist_controller
Author(s): Felix Messmer , Marco Bezzon , Christoph Mark , Francisco Moreno
autogenerated on Thu Jun 6 2019 21:19:26