FastLED 3.9.15
Loading...
Searching...
No Matches

◆ update()

template<typename T, int Stages = 2>
T fl::detail::CascadedEMAImpl< T, Stages >::update ( T input,
T dt_seconds )
inline

Definition at line 18 of file cascaded_ema_impl.h.

18 {
20 T val = input;
21 for (int i = 0; i < Stages; ++i) {
22 mY[i] = val + (mY[i] - val) * decay;
23 val = mY[i];
24 }
25 return val;
26 }
enable_if< is_fixed_point< T >::value, T >::type exp(T x) FL_NOEXCEPT

References fl::exp(), mTau, and mY.

+ Here is the call graph for this function: