Go to the documentation of this file.
33 template<
typename VectorT>
45 inline void add(
const VectorT & value,
double dt)
47 integral_ = (1. - rate_ * dt) * integral_ + dt * value;
54 inline const VectorT &
eval()
const {
return integral_; }
59 inline double rate()
const {
return rate_; }
78 inline void reset() { integral_.setZero(); }
LeakyIntegrator()
Definition: LeakyIntegrator.h:36
const VectorT & eval() const
Definition: LeakyIntegrator.h:54
Definition: ExponentialMovingAverage.h:14
double rate() const
Definition: LeakyIntegrator.h:59
void reset()
Definition: LeakyIntegrator.h:78
Definition: LeakyIntegrator.h:34
void rate(double rate)
Definition: LeakyIntegrator.h:66
void clampInPlace(double &value, double lower, double upper)
Definition: clamp.h:38
void add(const VectorT &value, double dt)
Definition: LeakyIntegrator.h:45
void saturation(double s)
Definition: LeakyIntegrator.h:73