10template <
typename T, fl::size N = 0>
20 mBuf.push_back(input);
26 fl::size count =
mBuf.size();
48 template <
typename U = T>
51 return sum /
static_cast<U
>(count);
54 template <
typename U = T>
57 return sum /
static_cast<U
>(count);
60 template <
typename U = T>
64 return sum / U(
static_cast<float>(count));
MovingAverageImpl(fl::size capacity)
circular_buffer< T, N > mBuf
static fl::enable_if< fl::is_integral< U >::value, U >::type divByCount(U sum, fl::size count)
MovingAverageImpl() FL_NOEXCEPT
static fl::enable_if< fl::is_floating_point< U >::value, U >::type divByCount(U sum, fl::size count)
fl::size capacity() const
void resize(fl::size new_capacity)
static fl::enable_if<!fl::is_floating_point< U >::value &&!fl::is_integral< U >::value, U >::type divByCount(U sum, fl::size count)
Compile-time linker keep-alive hook for a single fl::Bus.
Base definition for an LED controller.