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

◆ value()

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

Definition at line 25 of file moving_average_impl.h.

25 {
26 fl::size count = mBuf.size();
27 if (count == 0) {
28 return T(0);
29 }
30 return divByCount(mSum, count);
31 }
static fl::enable_if< fl::is_floating_point< U >::value, U >::type divByCount(U sum, fl::size count)

References divByCount(), mBuf, and mSum.

Referenced by update().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: