Public Member Functions | Protected Attributes | List of all members
MovingAverageSimple< T > Class Template Reference

#include <moving_average.h>

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

Public Member Functions

virtual void addElement (T element)
 
virtual bool calcMovingAverage (T &average) const
 
 MovingAverageSimple (uint16_t size)
 
virtual void reset ()
 
- Public Member Functions inherited from MovingAverageBase< T >
 MovingAverageBase ()
 

Protected Attributes

std::deque< T > s_
 
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)
inlineexplicit

Definition at line 43 of file moving_average.h.

Member Function Documentation

template<typename T >
virtual void MovingAverageSimple< T >::addElement ( element)
inlinevirtual

Implements MovingAverageBase< T >.

Definition at line 55 of file moving_average.h.

template<typename T >
virtual bool MovingAverageSimple< T >::calcMovingAverage ( T &  average) const
inlinevirtual

Implements MovingAverageBase< T >.

Definition at line 68 of file moving_average.h.

template<typename T >
virtual void MovingAverageSimple< T >::reset ( )
inlinevirtual

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 Apr 8 2021 02:40:01