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 clampInPlace(double &value, double lower, double upper)
Definition: clamp.h:38
Definition: ExponentialMovingAverage.h:15
Definition: ExponentialMovingAverage.h:40
Definition: StationaryOffset.h:23
void timeConstant(double T)
Definition: StationaryOffset.h:77
const VectorT & eval() const
Definition: StationaryOffset.h:55
StationaryOffset(double dt, double timeConstant, const VectorT &initValue=VectorT::Zero())
Definition: StationaryOffset.h:34
void reset(const VectorT &initValue)
Definition: StationaryOffset.h:61
double timeConstant() const
Definition: StationaryOffset.h:70
void update(const VectorT &value)
Definition: StationaryOffset.h:45
void saturation(double limit)
Definition: StationaryOffset.h:83