17template <u
int8_t N,
class T =
float>
33 for (uint8_t i = 0; i < 2 * N - 1; ++i)
34 this->coefficients[i] =
coefficients[(2 * N - 1 - i) % N];
54 for (uint8_t i = 0; i < N; i++)
55 acc +=
x[i] * coeff_shift[i];
67 AH::Array<T, N>
x = {};
Finite Impulse Response filter implementation.
AH::Array< T, 2 *N - 1 > coefficients
T operator()(T input)
Update the internal state with the new input and return the new output .
FIRFilter(const AH::Array< T, N > &coefficients)
Construct a new FIR Filter object.