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

Detailed Description

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

Definition at line 11 of file weighted_moving_average_impl.h.

#include <weighted_moving_average_impl.h>

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

Public Member Functions

 WeightedMovingAverageImpl () FL_NOEXCEPT
 
 WeightedMovingAverageImpl (fl::size capacity)
 
fl::size capacity () const
 
bool full () const
 
void reset ()
 
void resize (fl::size new_capacity)
 
fl::size size () const
 
update (fl::span< const T > values)
 
update (T input)
 
value () const
 

Private Member Functions

recompute ()
 

Private Attributes

circular_buffer< T, N > mBuf
 
mLastValue
 

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