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

◆ update()

template<typename T, fl::size N = 0>
T fl::detail::MovingAverageImpl< T, N >::update ( T input)
inline

Definition at line 16 of file moving_average_impl.h.

16 {
17 if (mBuf.full()) {
18 mSum = mSum - mBuf.front();
19 }
20 mBuf.push_back(input);
21 mSum = mSum + input;
22 return value();
23 }

References mBuf, mSum, and value().

+ Here is the call graph for this function: