FastLED 3.9.15
Loading...
Searching...
No Matches
fl::detail::MovingAverageImpl< T, N > Class Template Reference

Detailed Description

template<typename T, fl::size N = 0>
class fl::detail::MovingAverageImpl< T, N >

Definition at line 11 of file moving_average_impl.h.

#include <moving_average_impl.h>

+ Inheritance diagram for fl::detail::MovingAverageImpl< T, N >:
+ Collaboration diagram for fl::detail::MovingAverageImpl< T, N >:

Public Member Functions

 MovingAverageImpl () FL_NOEXCEPT
 
 MovingAverageImpl (fl::size capacity)
 
fl::size capacity () const
 
bool full () const
 
void reset ()
 
void resize (fl::size new_capacity)
 
fl::size size () const
 
update (T input)
 
value () const
 

Static Private Member Functions

template<typename U = T>
static fl::enable_if< fl::is_floating_point< U >::value, U >::type divByCount (U sum, fl::size count)
 
template<typename U = T>
static fl::enable_if< fl::is_integral< U >::value, U >::type divByCount (U sum, fl::size count)
 
template<typename U = T>
static fl::enable_if<!fl::is_floating_point< U >::value &&!fl::is_integral< U >::value, U >::type divByCount (U sum, fl::size count)
 

Private Attributes

circular_buffer< T, N > mBuf
 
mSum
 

The documentation for this class was generated from the following file: