modm API documentation
|
A finit impulse response (FIR) filter implementation. More...
#include <modm/math/filter/fir.hpp>
Public Member Functions | |
Fir (const float (&coeff)[N]) | |
void | setCoefficients (const float (&coeff)[N]) |
void | reset () |
Resets the tap buffer. | |
void | append (const T &input) |
Appends new tap. | |
void | update () |
Calculates g[0]. | |
const T & | getValue () const |
Returns g[0]. | |
A finit impulse response (FIR) filter implementation.
g[n] = SUM(h[k]x[n-k])
modm::filter::Fir< T, N, BLOCK_SIZE, ScaleFactor >::Fir | ( | const float (&) | coeff[N] | ) |
coeff | array containing the coefficients |
void modm::filter::Fir< T, N, BLOCK_SIZE, ScaleFactor >::setCoefficients | ( | const float (&) | coeff[N] | ) |
Reset the coefficients.
coeff | array containing the coefficients |