lecture 15 second order iir filters
play

Lecture 15: Second-Order IIR Filters Mark Hasegawa-Johnson ECE 401: - PowerPoint PPT Presentation

Review Second-Order Resonator Damped Bandwidth Speech Summary Lecture 15: Second-Order IIR Filters Mark Hasegawa-Johnson ECE 401: Signal and Image Analysis, Fall 2020 Review Second-Order Resonator Damped Bandwidth Speech Summary


  1. Review Second-Order Resonator Damped Bandwidth Speech Summary Lecture 15: Second-Order IIR Filters Mark Hasegawa-Johnson ECE 401: Signal and Image Analysis, Fall 2020

  2. Review Second-Order Resonator Damped Bandwidth Speech Summary Review: Poles and Zeros 1 Impulse Response of a Second-Order Filter 2 Example: Ideal Resonator 3 Example: Damped Resonator 4 Bandwidth 5 Example: Speech 6 Summary 7

  3. Review Second-Order Resonator Damped Bandwidth Speech Summary Outline Review: Poles and Zeros 1 Impulse Response of a Second-Order Filter 2 Example: Ideal Resonator 3 Example: Damped Resonator 4 Bandwidth 5 Example: Speech 6 Summary 7

  4. Review Second-Order Resonator Damped Bandwidth Speech Summary Review: Poles and Zeros A first-order autoregressive filter, y [ n ] = x [ n ] + bx [ n − 1] + ay [ n − 1] , has the impulse response and transfer function h [ n ] = a n u [ n ] + ba n − 1 u [ n − 1] ↔ H ( z ) = 1 + bz − 1 1 − az − 1 , where a is called the pole of the filter, and − b is called its zero .

  5. Review Second-Order Resonator Damped Bandwidth Speech Summary Review: Poles and Zeros Suppose H ( z ) = 1+ bz − 1 1 − az − 1 . Now let’s evaluate | H ( ω ) | , by evaluating | H ( z ) | at z = e j ω : | H ( ω ) | = | e j ω + b | | e j ω − a | What it means | H ( ω ) | is the ratio of two vector lengths: When the vector length | e j ω + b | is small, then | H ( ω ) | is small. When | e j ω − a | is small, then | H ( ω ) | is LARGE.

  6. Review Second-Order Resonator Damped Bandwidth Speech Summary Review: Parallel Combination Parallel combination of two systems looks like this: H 1 ( z ) x [ n ] y [ n ] H 2 ( z ) Suppose that we know each of the systems separately: 1 1 H 1 ( z ) = 1 − p 1 z − 1 , H 2 ( z ) = 1 − p 2 z − 1 Then, to get H ( z ), we just have to add: 1 1 H ( z ) = 1 − p 1 z − 1 + 1 − p 2 z − 1

  7. Review Second-Order Resonator Damped Bandwidth Speech Summary Review: Parallel Combination Parallel combination of two systems looks like this: H 1 ( z ) x [ n ] y [ n ] H 2 ( z ) 1 1 H ( z ) = 1 − p 1 z − 1 + 1 − p 2 z − 1 1 − p 2 z − 1 1 − p 1 z − 1 = (1 − p 1 z − 1 )(1 − p 2 z − 1 ) + (1 − p 1 z − 1 )(1 − p 2 z − 1 ) 2 − ( p 1 + p 2 ) z − 1 = 1 − ( p 1 + p 2 ) z − 1 + p 1 p 2 z − 2

  8. Review Second-Order Resonator Damped Bandwidth Speech Summary Outline Review: Poles and Zeros 1 Impulse Response of a Second-Order Filter 2 Example: Ideal Resonator 3 Example: Damped Resonator 4 Bandwidth 5 Example: Speech 6 Summary 7

  9. Review Second-Order Resonator Damped Bandwidth Speech Summary A General Second-Order All-Pole Filter Let’s construct a general second-order all-pole filter (leaving out the zeros; they’re easy to add later). 1 1 H ( z ) = 1 z − 1 ) = 1 ) z − 1 + p 1 p ∗ (1 − p 1 z − 1 )(1 − p ∗ 1 − ( p 1 + p ∗ 1 z − 2 The difference equation that implements this filter is 1 ) z − 1 Y ( z ) − p 1 p ∗ 1 z − 2 Y ( z ) Y ( z ) = X ( z ) + ( p 1 + p ∗ Which converts to y [ n ] = x [ n ] + 2 ℜ ( p 1 ) y [ n − 1] − | p 1 | 2 y [ n − 2]

  10. Review Second-Order Resonator Damped Bandwidth Speech Summary Partial Fraction Expansion In order to find the impulse response, we do a partial fraction expansion: C ∗ 1 C 1 1 H ( z ) = 1 z − 1 ) = 1 − p 1 z − 1 + (1 − p 1 z − 1 )(1 − p ∗ 1 − p ∗ 1 z − 1 When we normalize the right-hand side of the equation above, we get the following in the numerator: 1 + 0 × z − 1 = C 1 (1 − p ∗ 1 z − 1 ) + C ∗ 1 (1 − p 1 z − 1 ) and therefore p 1 C 1 = p 1 − p ∗ 1

  11. Review Second-Order Resonator Damped Bandwidth Speech Summary Impulse Response of a Second-Order IIR . . . and so we just inverse transform. h [ n ] = C 1 p n 1 u [ n ] + C ∗ 1 ( p ∗ 1 ) n u [ n ]

  12. Review Second-Order Resonator Damped Bandwidth Speech Summary Understanding the Impulse Response of a Second-Order IIR In order to understand the impulse response, maybe we should invent some more variables. Let’s say that p 1 = e − σ 1 + j ω 1 , p ∗ 1 = e − σ 1 − j ω 1 where σ 1 is the half-bandwidth of the pole, and ω 1 is its center frequency. The partial fraction expansion gave us the constant e j ω 1 p 1 p 1 C 1 = = e − σ 1 ( e j ω 1 − e − j ω 1 ) = p 1 − p ∗ 2 j sin( ω 1 ) 1 whose complex conjugate is e − j ω 1 C ∗ 1 = − 2 j sin( ω 1 )

  13. Review Second-Order Resonator Damped Bandwidth Speech Summary Impulse Response of a Second-Order IIR Plugging in to the impulse response, we get 1 � e j ω 1 e ( − σ 1 + j ω 1 ) n − e − j ω 1 e ( − σ 1 − j ω 1 ) n � h [ n ] = u [ n ] 2 j sin( ω 1 ) 1 2 j sin( ω 1 ) e − σ 1 n � e j ω 1 ( n +1) − e − j ω 1 ( n +1) � = u [ n ] 1 sin( ω 1 ) e − σ 1 n sin( ω 1 ( n + 1)) u [ n ] =

  14. Review Second-Order Resonator Damped Bandwidth Speech Summary Impulse Response of a Second-Order IIR 1 sin( ω 1 ) e − σ 1 n sin( ω 1 ( n + 1)) u [ n ] h [ n ] =

  15. Review Second-Order Resonator Damped Bandwidth Speech Summary Outline Review: Poles and Zeros 1 Impulse Response of a Second-Order Filter 2 Example: Ideal Resonator 3 Example: Damped Resonator 4 Bandwidth 5 Example: Speech 6 Summary 7

  16. Review Second-Order Resonator Damped Bandwidth Speech Summary Example: Ideal Resonator As the first example, let’s suppose we put p 1 right on the unit circle, p 1 = e j ω 1 .

  17. Review Second-Order Resonator Damped Bandwidth Speech Summary Example: Resonator The system function for this filter is H ( z ) = Y ( z ) 1 X ( z ) = 1 − 2 cos( ω 1 ) z − 1 + z − 2 Solving for y [ n ], we get the difference equation: y [ n ] = x [ n ] + 2 cos( ω 1 ) y [ n − 1] − y [ n − 2]

  18. Review Second-Order Resonator Damped Bandwidth Speech Summary Example: Ideal Resonator Just to make it concrete, let’s choose ω 1 = π 4 , so the difference equation is √ y [ n ] = x [ n ] + 2 y [ n − 1] − y [ n − 2] If we plug x [ n ] = δ [ n ] into this equation, we get y [0] = 1 √ y [1] = 2 y [2] = 2 − 1 = 1 √ √ y [3] = 2 − 2 = 0 y [4] = − 1 √ y [5] = − 2 . . .

  19. Review Second-Order Resonator Damped Bandwidth Speech Summary Example: Ideal Resonator Putting p 1 = e j ω 1 into the general form, we find that the impulse response of this filter is 1 h [ n ] = sin( ω 1 ) sin( ω 1 ( n + 1)) u [ n ] This is called an “ideal resonator” because it keeps ringing forever.

  20. Review Second-Order Resonator Damped Bandwidth Speech Summary

  21. Review Second-Order Resonator Damped Bandwidth Speech Summary An Ideal Resonator is Unstable A resonator is unstable. The easiest way to see what this means is by looking at its frequency response: 1 H ( ω ) = H ( z ) | z = e j ω = (1 − e j ( ω 1 − ω ) )(1 − e j ( − ω 1 − ω ) ) 1 H ( ω 1 ) = (1 − 1)(1 − e − 2 j ω 1 ) = ∞ So if x [ n ] = cos( ω 1 n ), then y [ n ] is y [ n ] = | H ( ω 1 ) | cos ( ω 1 n + ∠ H ( ω 1 )) = ∞

  22. Review Second-Order Resonator Damped Bandwidth Speech Summary

  23. Review Second-Order Resonator Damped Bandwidth Speech Summary Instability from the POV of the Impulse Response From the point of view of the impulse response, you can think of instability like this: � y [ n ] = x [ m ] h [ n − m ] m Suppose x [ m ] = cos( ω 1 m ) u [ m ]. Then y [ n ] = x [0] h [ n ] + x [1] h [ n − 1] + x [2] h [ n − 2] + . . . We keep adding extra copies of h [ n − m ], for each m , forever. Since h [ n ] never dies away, the result is that we keep building up y [ n ] toward infinity.

  24. Review Second-Order Resonator Damped Bandwidth Speech Summary

  25. Review Second-Order Resonator Damped Bandwidth Speech Summary Outline Review: Poles and Zeros 1 Impulse Response of a Second-Order Filter 2 Example: Ideal Resonator 3 Example: Damped Resonator 4 Bandwidth 5 Example: Speech 6 Summary 7

  26. Review Second-Order Resonator Damped Bandwidth Speech Summary Example: Stable Resonator Now, let’s suppose we put p 1 inside the unit circle, p 1 = e − σ 1 + j ω 1 .

  27. Review Second-Order Resonator Damped Bandwidth Speech Summary Example: Stable Resonator The system function for this filter is H ( z ) = Y ( z ) 1 X ( z ) = 1 − 2 e − σ 1 cos( ω 1 ) z − 1 + e − 2 σ 1 z − 2 Solving for y [ n ], we get the difference equation: y [ n ] = x [ n ] + 2 e − σ 1 cos( ω 1 ) y [ n − 1] − e − 2 σ 1 y [ n − 2]

  28. Review Second-Order Resonator Damped Bandwidth Speech Summary Example: Stable Resonator 4 , and e − σ 1 = 0 . 9, so Just to make it concrete, let’s choose ω 1 = π the difference equation is √ y [ n ] = x [ n ] + 0 . 9 2 y [ n − 1] − 0 . 81 y [ n − 2] If we plug x [ n ] = δ [ n ] into this equation, we get y [0] = 1 √ y [1] = 0 . 9 2 √ 2) 2 − 0 . 81 = 0 . 81 y [2] = (0 . 9 √ √ y [3] = (0 . 9 2)(0 . 81) − (0 . 81)(0 . 9 2) = 0 y [4] = − (0 . 81) 2 √ 2)(0 . 81) 2 y [5] = − (0 . 9 . . .

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend