Go to the documentation of this file.
18 #ifndef COB_TWIST_CONTROLLER_UTILS_MOVING_AVERAGE_H
19 #define COB_TWIST_CONTROLLER_UTILS_MOVING_AVERAGE_H
33 virtual void reset() = 0;
59 s_.push_front(element);
64 s_.push_front(element);
74 for (uint16_t i = 0; i <
s_.size(); ++i)
104 for (uint16_t i = 0; i < this->
size_; i++)
119 return static_cast<double>(n)*(
static_cast<double>(n)+1.0)/2.0;
181 #endif // COB_TWIST_CONTROLLER_UTILS_MOVING_AVERAGE_H
MovingAverageExponential< double > MovingAvgExponential_double_t
std::deque< double > weighting_
virtual void addElement(T element)
MovingAverageBase< double > MovingAvgBase_double_t
virtual void addElement(T element)=0
MovingAverageSimple(uint16_t size)
virtual bool calcMovingAverage(T &average) const
MovingAverageWeighted(uint16_t size)
void addElement(T element)
virtual bool calcMovingAverage(T &average) const =0
MovingAverageSimple< double > MovingAvgSimple_double_t
double triangle(uint16_t n)
MovingAverageWeighted< double > MovingAvgWeighted_double_t
bool calcMovingAverage(T &average) const
MovingAverageExponential(double factor)
cob_twist_controller
Author(s): Felix Messmer
, Marco Bezzon , Christoph Mark , Francisco Moreno
autogenerated on Mon May 1 2023 02:44:43