Go to the documentation of this file.
21 template<
typename VectorT>
37 this->
reset(initValue);
47 average_.append(value);
48 filteredValue_ = value - average_.eval();
55 const VectorT &
eval()
const {
return filteredValue_; }
61 void reset(
const VectorT & initValue)
63 average_.reset(initValue);
64 filteredValue_ = initValue;
86 VectorT filteredValue_ = VectorT::Zero();
88 double saturation_ = -1;
void saturation(double limit)
Definition: StationaryOffset.h:83
void reset(const VectorT &initValue)
Definition: StationaryOffset.h:61
Definition: ExponentialMovingAverage.h:14
void timeConstant(double T)
Definition: StationaryOffset.h:77
const VectorT & eval() const
Definition: StationaryOffset.h:55
void update(const VectorT &value)
Definition: StationaryOffset.h:45
StationaryOffset(double dt, double timeConstant, const VectorT &initValue=VectorT::Zero())
Definition: StationaryOffset.h:34
void clampInPlace(double &value, double lower, double upper)
Definition: clamp.h:38
double timeConstant() const
Definition: StationaryOffset.h:70
Definition: ExponentialMovingAverage.h:39
Definition: StationaryOffset.h:22