Both FIR and IIR are the two major classifications of digital filters used for signal filtration. The crucial difference between FIR and IIR filter is that the FIR filter provides an impulse response of finite period.
As against IIR is a type of filter that generates impulse response of infinite duration for a dynamic system.
Here we are talking about finite and infinite impulse response. But what is impulse response?
So, basically we know that the response of a system defines the behaviour of the system according to the variation in the external parameters associated with the system.
Thus impulse response of a system is defined as the outcome or response achieved when the system is provided with input signals (generally known as an impulse).
More simply we can say that impulse response provides the reaction of a dynamic system with respect to an independent variable (say time).
In this article, we will discuss the major differentiating factors between FIR and IIR filters.
First, let us see the contents to be discussed here.
Content: FIR Vs IIR Filter
|Basis for Comparison||FIR Filter||IIR Filter|
|Stands for||Finite Impluse Response||Infinite Impulse Response|
|Computational Efficiency||Less||Comparatively more|
|Requirement to generate current output||Present and past samples of input.||Present and past samples of input along with past output.|
|Delay offered||High||Comparatively lower|
|Transfer function||Only zeros are present.||Both poles and zeros are present.|
|Resolution offered at low frequencies||Less||More|
Definition of FIR filter
A type of digital filter that generates a finite impulse response of a dynamic system is known as FIR filters. More simply, we can say, here the impulse response provided by the filter is of finite duration.
In FIR filters the response gets fixed to zero in a finite period of time thus it is named so. In the case of FIR filters, the nth order filter generates n+1 samples before getting fixed to 0.
The figure below represents a discrete form of FIR filter:
In FIR filters, feedback is not present thus these operate on only present and past input values. Hence the output is the summation of a finite quantity of finite samples of input values.
So, these are highly stable. The generalized equation for FIR filter is given as:
N is the length of the filter.
FIR filters are used with systems having 0 response.
Definition of IIR filter
The type of digital filter that is designed to generate infinite impulse response of a dynamic system is known as the IIR filter. As an internal feedback mechanism is present in these filters thus the filter operates for an indefinite period of time.
IIR filters are used by the systems that generate an infinite response.
The filter below represents the structure of the IIR filter:
IIR filter operates in a way that not only the present and past inputs but the past output sample is also taken into consideration.
The equation in general form for IIR filter is given as:
As these filters support the recursive operation. Thus it never allows its response to settle to 0 for the applied impulse.
The memory requirement and computational time enhance the efficiency of the IIR filters. Also, it is quite easy to convert an analog filter into a digital IIR filter.
Key Differences between FIR and IIR Filter
- FIR filter generates an output of a dynamic system using the samples of present and past input values. While an IIR filter uses present and past input values along with the past output value to generate the present output.
- FIR filters do not use feedback circuitry, while IIR filters make use of feedback loop in order to provide previous output in conjunction with current input.
- FIR filters support linear phase filtering, however, IIR filters do not support linear phase filtering.
- As FIR filters have more strength in comparison to IIR filters thus these offer more flexible operation than the IIR filters.
- The transfer function of the system having an FIR filter contains only zeros. While in the case of IIR filters the transfer function contains both poles and zeros.
- FIR filters show non-recursive behaviour. But IIR filters show recursive behaviour.
- Due to the absence of the feedback loop, the implementation of FIR filters in a system is quite easy in comparison to IIR filters in which feedback loop is present.
- The delay in providing a response in case of FIR filters is more than that of IIR filter.
- FIR filters are more stable as here the present output does not hold any relationship with the previous output. But IIR filters are less stable as it makes use of previous output samples as well.
- FIR filters need greater processing power in comparison to IIR filters.
- The way in which a filter operates decides its computational efficiency. The computational efficiency of FIR filters is quite less than IIR filters.
So, from this discussion, we can say that due to the various advantages associated with FIR filters these are more preferred over IIR filters.
FIR filters are mainly used in bandpass and bandstop filtering applications. While low pass and anti-aliasing filtering applications require IIR digital filters.