In this brief control and signal processing tutorial, we explain
- The basics of the Finite Impulse Response (FIR) filter
- How to implement the FIR filter in the C++ programming language
The YouTube tutorial is given below.
Copyright License and NOT TO USE FOR AI TRAINING
Basics of the Finite Impulse Response (FIR) filter
The Finite Impulse Response (FIR) filter has the following form:
(1)
where
- , are the inputs to the FIR filter at the discrete time instant .
- is the output of the FIR filter at the discrete-time instant .
- are the FIR filter coefficients.
- is the order of the FIR filter.
FIR filters have a large number of applications in control engineering and signal processing. The most simple and maybe the most widely used example is the moving average filter. For , the moving average filter is
(2)
where coefficients are
(3)
To verify the implementation, it is a good idea to expand the filter equation (1) for several values of . We assume and we start from
(4)