fbpx
Wikipedia

Infinite impulse response

Infinite impulse response (IIR) is a property applying to many linear time-invariant systems that are distinguished by having an impulse response that does not become exactly zero past a certain point but continues indefinitely. This is in contrast to a finite impulse response (FIR) system, in which the impulse response does become exactly zero at times for some finite , thus being of finite duration. Common examples of linear time-invariant systems are most electronic and digital filters. Systems with this property are known as IIR systems or IIR filters.

In practice, the impulse response, even of IIR systems, usually approaches zero and can be neglected past a certain point. However the physical systems which give rise to IIR or FIR responses are dissimilar, and therein lies the importance of the distinction. For instance, analog electronic filters composed of resistors, capacitors, and/or inductors (and perhaps linear amplifiers) are generally IIR filters. On the other hand, discrete-time filters (usually digital filters) based on a tapped delay line employing no feedback are necessarily FIR filters. The capacitors (or inductors) in the analog filter have a "memory" and their internal state never completely relaxes following an impulse (assuming the classical model of capacitors and inductors where quantum effects are ignored). But in the latter case, after an impulse has reached the end of the tapped delay line, the system has no further memory of that impulse and has returned to its initial state; its impulse response beyond that point is exactly zero.

Implementation and design edit

Although almost all analog electronic filters are IIR, digital filters may be either IIR or FIR. The presence of feedback in the topology of a discrete-time filter (such as the block diagram shown below) generally creates an IIR response. The z domain transfer function of an IIR filter contains a non-trivial denominator, describing those feedback terms. The transfer function of an FIR filter, on the other hand, has only a numerator as expressed in the general form derived below. All of the   coefficients with   (feedback terms) are zero and the filter has no finite poles.

The transfer functions pertaining to IIR analog electronic filters have been extensively studied and optimized for their amplitude and phase characteristics. These continuous-time filter functions are described in the Laplace domain. Desired solutions can be transferred to the case of discrete-time filters whose transfer functions are expressed in the z domain, through the use of certain mathematical techniques such as the bilinear transform, impulse invariance, or pole–zero matching method. Thus digital IIR filters can be based on well-known solutions for analog filters such as the Chebyshev filter, Butterworth filter, and elliptic filter, inheriting the characteristics of those solutions.

Transfer function derivation edit

Digital filters are often described and implemented in terms of the difference equation that defines how the output signal is related to the input signal:

 

where:

  •   is the feedforward filter order
  •   are the feedforward filter coefficients
  •   is the feedback filter order
  •   are the feedback filter coefficients
  •   is the input signal
  •   is the output signal.

A more condensed form of the difference equation is:

 

which, when rearranged, becomes:

 

To find the transfer function of the filter, we first take the Z-transform of each side of the above equation, where we use the time-shift property to obtain:

 

We define the transfer function to be:

 

Considering that in most IIR filter designs coefficient  is 1, the IIR filter transfer function takes the more traditional form:

 
 
An example of a block diagram of an IIR filter. The   block is a unit delay.

Stability edit

The transfer function allows one to judge whether or not a system is bounded-input, bounded-output (BIBO) stable. To be specific, the BIBO stability criterion requires that the ROC of the system includes the unit circle. For example, for a causal system, all poles of the transfer function have to have an absolute value smaller than one. In other words, all poles must be located within a unit circle in the  -plane.

The poles are defined as the values of   which make the denominator of   equal to 0:

 

Clearly, if   then the poles are not located at the origin of the  -plane. This is in contrast to the FIR filter where all poles are located at the origin, and is therefore always stable.

IIR filters are sometimes preferred over FIR filters because an IIR filter can achieve a much sharper transition region roll-off than an FIR filter of the same order.

Example edit

Let the transfer function   of a discrete-time filter be given by:

 

governed by the parameter  , a real number with  .   is stable and causal with a pole at  . The time-domain impulse response can be shown to be given by:

 

where   is the unit step function. It can be seen that   is non-zero for all  , thus an impulse response which continues infinitely.

 
IIR filter example

Advantages and disadvantages edit

The main advantage digital IIR filters have over FIR filters is their efficiency in implementation, in order to meet a specification in terms of passband, stopband, ripple, and/or roll-off. Such a set of specifications can be accomplished with a lower order (Q in the above formulae) IIR filter than would be required for an FIR filter meeting the same requirements. If implemented in a signal processor, this implies a correspondingly fewer number of calculations per time step; the computational savings is often of a rather large factor.

On the other hand, FIR filters can be easier to design, for instance, to match a particular frequency response requirement. This is particularly true when the requirement is not one of the usual cases (high-pass, low-pass, notch, etc.) which have been studied and optimized for analog filters. Also FIR filters can be easily made to be linear phase (constant group delay vs frequency)—a property that is not easily met using IIR filters and then only as an approximation (for instance with the Bessel filter). Another issue regarding digital IIR filters is the potential for limit cycle behavior when idle, due to the feedback system in conjunction with quantization.

Design Methods edit

Impulse Invariance edit

Impulse invariance is a technique for designing discrete-time infinite-impulse-response (IIR) filters from continuous-time filters in which the impulse response of the continuous-time system is sampled to produce the impulse response of the discrete-time system. Impulse invariance is one of the commonly used methods to meet the two basic requirements of the mapping from the s-plane to the z-plane. This is obtained by solving the T(z) that has the same output value at the same sampling time as the analog filter, and it is only applicable when the inputs are in a pulse.
Note that all inputs of the digital filter generated by this method are approximate values, except for pulse inputs that are very accurate. This is the simplest IIR filter design method. It is the most accurate at low frequencies, so it is usually used in low-pass filters.

For Laplace transform or z-transform, the output after the transformation is just the input multiplied by the corresponding transformation function, T(s) or T(z). Y(s) and Y(z) are the converted output of input X(s) and input X(z), respectively.

 
 

When applying the Laplace transform or z-transform on the unit impulse, the result is 1. Hence, the output results after the conversion are

 
 

Now the output of the analog filter is just the inverse Laplace transform in the time domain.

 

If we use nT instead of t, we can get the output y(nT) derived from the pulse at the sampling time. It can also be expressed as y(n)

 

This discrete time signal can be applied z-transform to get T(z)

 
 
 

The last equation mathematically describes that a digital IIR filter is to perform z-transform on the analog signal that has been sampled and converted to T(s) by Laplace, which is usually simplified to

 

Pay attention to the fact that there is a multiplier T appearing in the formula. This is because even if the Laplace transform and z-transform for the unit pulse are 1, the pulse itself is not necessarily the same. For analog signals, the pulse has an infinite value but the area is 1 at t=0, but it is 1 at the discrete-time pulse t=0, so the existence of a multiplier T is required.

Step Invariance edit

Step invariance is a better design method than impulse invariant. The digital filter has several segments of input with different constants when sampling, which is composed of discrete steps. The step invariant IIR filter is less accurate than the same input step signal to the ADC. However, it is a better approximation for any input than the impulse invariant.
Step invariant solves the problem of the same sample values when T(z) and T(s) are both step inputs. The input to the digital filter is u(n), and the input to the analog filter is u(t). Apply z-transform and Laplace transform on these two inputs to obtain the converted output signal.
Perform z-transform on step input  
Converted output after z-transform  
Perform Laplace transform on step input  
Converted output after Laplace transform  
The output of the analog filter is y(t), which is the inverse Laplace transform of Y(s). If sampled every T seconds, it is y(n), which is the inverse conversion of Y(z).These signals are used to solve for the digital filter and the analog filter and have the same output at the sampling time.
The following equation points out the solution of T(z), which is the approximate formula for the analog filter.

 
 
 
 

Bilinear Transform edit

The bilinear transform is a special case of a conformal mapping, often used to convert a transfer function   of a linear, time-invariant (LTI) filter in the continuous-time domain (often called an analog filter) to a transfer function   of a linear, shift-invariant filter in the discrete-time domain. The bilinear transform is a first-order approximation of the natural logarithm function that is an exact mapping of the z-plane to the s-plane. When the Laplace transform is performed on a discrete-time signal (with each element of the discrete-time sequence attached to a correspondingly delayed unit impulse), the result is precisely the Z transform of the discrete-time sequence with the substitution of

 

where   is the numerical integration step size of the trapezoidal rule used in the bilinear transform derivation; or, in other words, the sampling period. The above bilinear approximation can be solved for   or a similar approximation for   can be performed.

The inverse of this mapping (and its first-order bilinear approximation) is

 

This relationship is used in the Laplace transfer function of any analog filter or the digital infinite impulse response (IIR) filter T(z) of the analog filter.
The bilinear transform essentially uses this first order approximation and substitutes into the continuous-time transfer function,  

 

That is

 

which is used to calculate the IIR digital filter, starting from the Laplace transfer function of the analog filter.

See also edit

External links edit

  • ] at the Wayback Machine (archived July 2, 2016)
  • at the Wayback Machine (archived February 13, 2010)
  • IIR Digital Filter design tool - produces coefficients, graphs, poles, zeros, and C code
  • EngineerJS Online IIR Design Tool - does not require Java

infinite, impulse, response, this, article, does, cite, sources, please, help, improve, this, article, adding, citations, reliable, sources, unsourced, material, challenged, removed, find, sources, news, newspapers, books, scholar, jstor, april, 2015, learn, w. This article does not cite any sources Please help improve this article by adding citations to reliable sources Unsourced material may be challenged and removed Find sources Infinite impulse response news newspapers books scholar JSTOR April 2015 Learn how and when to remove this message Infinite impulse response IIR is a property applying to many linear time invariant systems that are distinguished by having an impulse response h t displaystyle h t that does not become exactly zero past a certain point but continues indefinitely This is in contrast to a finite impulse response FIR system in which the impulse response does become exactly zero at times t gt T displaystyle t gt T for some finite T displaystyle T thus being of finite duration Common examples of linear time invariant systems are most electronic and digital filters Systems with this property are known as IIR systems or IIR filters In practice the impulse response even of IIR systems usually approaches zero and can be neglected past a certain point However the physical systems which give rise to IIR or FIR responses are dissimilar and therein lies the importance of the distinction For instance analog electronic filters composed of resistors capacitors and or inductors and perhaps linear amplifiers are generally IIR filters On the other hand discrete time filters usually digital filters based on a tapped delay line employing no feedback are necessarily FIR filters The capacitors or inductors in the analog filter have a memory and their internal state never completely relaxes following an impulse assuming the classical model of capacitors and inductors where quantum effects are ignored But in the latter case after an impulse has reached the end of the tapped delay line the system has no further memory of that impulse and has returned to its initial state its impulse response beyond that point is exactly zero Contents 1 Implementation and design 2 Transfer function derivation 3 Stability 4 Example 5 Advantages and disadvantages 6 Design Methods 6 1 Impulse Invariance 6 2 Step Invariance 6 3 Bilinear Transform 7 See also 8 External linksImplementation and design editAlthough almost all analog electronic filters are IIR digital filters may be either IIR or FIR The presence of feedback in the topology of a discrete time filter such as the block diagram shown below generally creates an IIR response The z domain transfer function of an IIR filter contains a non trivial denominator describing those feedback terms The transfer function of an FIR filter on the other hand has only a numerator as expressed in the general form derived below All of the a i displaystyle a i nbsp coefficients with i gt 0 displaystyle i gt 0 nbsp feedback terms are zero and the filter has no finite poles The transfer functions pertaining to IIR analog electronic filters have been extensively studied and optimized for their amplitude and phase characteristics These continuous time filter functions are described in the Laplace domain Desired solutions can be transferred to the case of discrete time filters whose transfer functions are expressed in the z domain through the use of certain mathematical techniques such as the bilinear transform impulse invariance or pole zero matching method Thus digital IIR filters can be based on well known solutions for analog filters such as the Chebyshev filter Butterworth filter and elliptic filter inheriting the characteristics of those solutions Transfer function derivation editDigital filters are often described and implemented in terms of the difference equation that defines how the output signal is related to the input signal y n 1 a 0 b 0 x n b 1 x n 1 b P x n P a 1 y n 1 a 2 y n 2 a Q y n Q displaystyle begin aligned y n amp frac 1 a 0 b 0 x n b 1 x n 1 cdots b P x n P amp a 1 y n 1 a 2 y n 2 cdots a Q y n Q end aligned nbsp where P displaystyle P nbsp is the feedforward filter order b i displaystyle b i nbsp are the feedforward filter coefficients Q displaystyle Q nbsp is the feedback filter order a i displaystyle a i nbsp are the feedback filter coefficients x n displaystyle x n nbsp is the input signal y n displaystyle y n nbsp is the output signal A more condensed form of the difference equation is y n 1 a 0 i 0 P b i x n i j 1 Q a j y n j displaystyle y n frac 1 a 0 left sum i 0 P b i x n i sum j 1 Q a j y n j right nbsp which when rearranged becomes j 0 Q a j y n j i 0 P b i x n i displaystyle sum j 0 Q a j y n j sum i 0 P b i x n i nbsp To find the transfer function of the filter we first take the Z transform of each side of the above equation where we use the time shift property to obtain j 0 Q a j z j Y z i 0 P b i z i X z displaystyle sum j 0 Q a j z j Y z sum i 0 P b i z i X z nbsp We define the transfer function to be H z Y z X z i 0 P b i z i j 0 Q a j z j displaystyle begin aligned H z amp frac Y z X z amp frac sum i 0 P b i z i sum j 0 Q a j z j end aligned nbsp Considering that in most IIR filter designs coefficient a 0 displaystyle a 0 nbsp is 1 the IIR filter transfer function takes the more traditional form H z i 0 P b i z i 1 j 1 Q a j z j displaystyle H z frac sum i 0 P b i z i 1 sum j 1 Q a j z j nbsp nbsp An example of a block diagram of an IIR filter The z 1 displaystyle z 1 nbsp block is a unit delay Stability editThe transfer function allows one to judge whether or not a system is bounded input bounded output BIBO stable To be specific the BIBO stability criterion requires that the ROC of the system includes the unit circle For example for a causal system all poles of the transfer function have to have an absolute value smaller than one In other words all poles must be located within a unit circle in the z displaystyle z nbsp plane The poles are defined as the values of z displaystyle z nbsp which make the denominator of H z displaystyle H z nbsp equal to 0 0 j 0 Q a j z j displaystyle 0 sum j 0 Q a j z j nbsp Clearly if a j 0 displaystyle a j neq 0 nbsp then the poles are not located at the origin of the z displaystyle z nbsp plane This is in contrast to the FIR filter where all poles are located at the origin and is therefore always stable IIR filters are sometimes preferred over FIR filters because an IIR filter can achieve a much sharper transition region roll off than an FIR filter of the same order Example editLet the transfer function H z displaystyle H z nbsp of a discrete time filter be given by H z B z A z 1 1 a z 1 displaystyle H z frac B z A z frac 1 1 az 1 nbsp governed by the parameter a displaystyle a nbsp a real number with 0 lt a lt 1 displaystyle 0 lt a lt 1 nbsp H z displaystyle H z nbsp is stable and causal with a pole at a displaystyle a nbsp The time domain impulse response can be shown to be given by h n a n u n displaystyle h n a n u n nbsp where u n displaystyle u n nbsp is the unit step function It can be seen that h n displaystyle h n nbsp is non zero for all n 0 displaystyle n geq 0 nbsp thus an impulse response which continues infinitely nbsp IIR filter exampleAdvantages and disadvantages editThe main advantage digital IIR filters have over FIR filters is their efficiency in implementation in order to meet a specification in terms of passband stopband ripple and or roll off Such a set of specifications can be accomplished with a lower order Q in the above formulae IIR filter than would be required for an FIR filter meeting the same requirements If implemented in a signal processor this implies a correspondingly fewer number of calculations per time step the computational savings is often of a rather large factor On the other hand FIR filters can be easier to design for instance to match a particular frequency response requirement This is particularly true when the requirement is not one of the usual cases high pass low pass notch etc which have been studied and optimized for analog filters Also FIR filters can be easily made to be linear phase constant group delay vs frequency a property that is not easily met using IIR filters and then only as an approximation for instance with the Bessel filter Another issue regarding digital IIR filters is the potential for limit cycle behavior when idle due to the feedback system in conjunction with quantization Design Methods editImpulse Invariance edit Impulse invariance is a technique for designing discrete time infinite impulse response IIR filters from continuous time filters in which the impulse response of the continuous time system is sampled to produce the impulse response of the discrete time system Impulse invariance is one of the commonly used methods to meet the two basic requirements of the mapping from the s plane to the z plane This is obtained by solving the T z that has the same output value at the same sampling time as the analog filter and it is only applicable when the inputs are in a pulse Note that all inputs of the digital filter generated by this method are approximate values except for pulse inputs that are very accurate This is the simplest IIR filter design method It is the most accurate at low frequencies so it is usually used in low pass filters For Laplace transform or z transform the output after the transformation is just the input multiplied by the corresponding transformation function T s or T z Y s and Y z are the converted output of input X s and input X z respectively Y s T s X s displaystyle Y s T s X s nbsp Y z T z X z displaystyle Y z T z X z nbsp When applying the Laplace transform or z transform on the unit impulse the result is 1 Hence the output results after the conversion are Y s T s displaystyle Y s T s nbsp Y z T z displaystyle Y z T z nbsp Now the output of the analog filter is just the inverse Laplace transform in the time domain y t L 1 Y s L 1 T s displaystyle y t L 1 Y s L 1 T s nbsp If we use nT instead of t we can get the output y nT derived from the pulse at the sampling time It can also be expressed as y n y n y n T y t t s T displaystyle y n y nT y t t sT nbsp This discrete time signal can be applied z transform to get T z T z Y z Z y n displaystyle T z Y z Z y n nbsp T z Z y n Z y n T displaystyle T z Z y n Z y nT nbsp T z Z L 1 T s t n T displaystyle T z Z left L 1 T s t nT right nbsp The last equation mathematically describes that a digital IIR filter is to perform z transform on the analog signal that has been sampled and converted to T s by Laplace which is usually simplified to T z Z T s T displaystyle T z Z T s T nbsp Pay attention to the fact that there is a multiplier T appearing in the formula This is because even if the Laplace transform and z transform for the unit pulse are 1 the pulse itself is not necessarily the same For analog signals the pulse has an infinite value but the area is 1 at t 0 but it is 1 at the discrete time pulse t 0 so the existence of a multiplier T is required Step Invariance edit Step invariance is a better design method than impulse invariant The digital filter has several segments of input with different constants when sampling which is composed of discrete steps The step invariant IIR filter is less accurate than the same input step signal to the ADC However it is a better approximation for any input than the impulse invariant Step invariant solves the problem of the same sample values when T z and T s are both step inputs The input to the digital filter is u n and the input to the analog filter is u t Apply z transform and Laplace transform on these two inputs to obtain the converted output signal Perform z transform on step input Z u n z z 1 displaystyle Z u n dfrac z z 1 nbsp Converted output after z transform Y z T z U z T z z z 1 displaystyle Y z T z U z T z dfrac z z 1 nbsp Perform Laplace transform on step input L u t 1 s displaystyle L u t dfrac 1 s nbsp Converted output after Laplace transform Y s T s U s T s s displaystyle Y s T s U s dfrac T s s nbsp The output of the analog filter is y t which is the inverse Laplace transform of Y s If sampled every T seconds it is y n which is the inverse conversion of Y z These signals are used to solve for the digital filter and the analog filter and have the same output at the sampling time The following equation points out the solution of T z which is the approximate formula for the analog filter T z z 1 z Y z displaystyle T z dfrac z 1 z Y z nbsp T z z 1 z Z y n displaystyle T z dfrac z 1 z Z y n nbsp T z z 1 z Z Y s displaystyle T z dfrac z 1 z Z Y s nbsp T z z 1 z Z T s s displaystyle T z dfrac z 1 z Z dfrac T s s nbsp Bilinear Transform edit The bilinear transform is a special case of a conformal mapping often used to convert a transfer function H a s displaystyle H a s nbsp of a linear time invariant LTI filter in the continuous time domain often called an analog filter to a transfer function H d z displaystyle H d z nbsp of a linear shift invariant filter in the discrete time domain The bilinear transform is a first order approximation of the natural logarithm function that is an exact mapping of the z plane to the s plane When the Laplace transform is performed on a discrete time signal with each element of the discrete time sequence attached to a correspondingly delayed unit impulse the result is precisely the Z transform of the discrete time sequence with the substitution of z e s T e s T 2 e s T 2 1 s T 2 1 s T 2 displaystyle begin aligned z amp e sT amp frac e sT 2 e sT 2 amp approx frac 1 sT 2 1 sT 2 end aligned nbsp where T displaystyle T nbsp is the numerical integration step size of the trapezoidal rule used in the bilinear transform derivation or in other words the sampling period The above bilinear approximation can be solved for s displaystyle s nbsp or a similar approximation for s 1 T ln z displaystyle s 1 T ln z nbsp can be performed The inverse of this mapping and its first order bilinear approximation is s 1 T ln z 2 T z 1 z 1 1 3 z 1 z 1 3 1 5 z 1 z 1 5 1 7 z 1 z 1 7 2 T z 1 z 1 2 T 1 z 1 1 z 1 displaystyle begin aligned s amp frac 1 T ln z amp frac 2 T left frac z 1 z 1 frac 1 3 left frac z 1 z 1 right 3 frac 1 5 left frac z 1 z 1 right 5 frac 1 7 left frac z 1 z 1 right 7 cdots right amp approx frac 2 T frac z 1 z 1 amp frac 2 T frac 1 z 1 1 z 1 end aligned nbsp This relationship is used in the Laplace transfer function of any analog filter or the digital infinite impulse response IIR filter T z of the analog filter The bilinear transform essentially uses this first order approximation and substitutes into the continuous time transfer function H a s displaystyle H a s nbsp s 2 T z 1 z 1 displaystyle s leftarrow frac 2 T frac z 1 z 1 nbsp That is H d z H a s s 2 T z 1 z 1 H a 2 T z 1 z 1 displaystyle H d z H a s bigg s frac 2 T frac z 1 z 1 H a left frac 2 T frac z 1 z 1 right nbsp which is used to calculate the IIR digital filter starting from the Laplace transfer function of the analog filter See also editAutoregressive model Electronic filter Finite impulse response Recurrence relation mathematical formalization System analysisExternal links editThe fifth module of the BORES Signal Processing DSP course Introduction to DSP at the Wayback Machine archived July 2 2016 IIR Digital Filter Design Applet at the Wayback Machine archived February 13 2010 IIR Digital Filter design tool produces coefficients graphs poles zeros and C code EngineerJS Online IIR Design Tool does not require Java Retrieved from https en wikipedia org w index php title Infinite impulse response amp oldid 1190868390, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.