lecture 7 frequency response
play

Lecture 7: Frequency Response Mark Hasegawa-Johnson ECE 401: Signal - PowerPoint PPT Presentation

Review Frequency Response Example Superposition Example Linearity Summary Lecture 7: Frequency Response Mark Hasegawa-Johnson ECE 401: Signal and Image Analysis, Fall 2020 Review Frequency Response Example Superposition Example


  1. Review Frequency Response Example Superposition Example Linearity Summary Lecture 7: Frequency Response Mark Hasegawa-Johnson ECE 401: Signal and Image Analysis, Fall 2020

  2. Review Frequency Response Example Superposition Example Linearity Summary Review: Convolution and Fourier Series 1 Frequency Response 2 Example: First Difference 3 Superposition and the Frequency Response 4 Example: First Difference 5 Linearity 6 Summary 7

  3. Review Frequency Response Example Superposition Example Linearity Summary Outline Review: Convolution and Fourier Series 1 Frequency Response 2 Example: First Difference 3 Superposition and the Frequency Response 4 Example: First Difference 5 Linearity 6 Summary 7

  4. Review Frequency Response Example Superposition Example Linearity Summary What is Signal Processing, Really? When we process a signal, usually, we’re trying to enhance the meaningful part, and reduce the noise. Spectrum helps us to understand which part is meaningful, and which part is noise. Convolution (a.k.a. filtering) is the tool we use to perform the enhancement. Frequency Response of a filter tells us exactly which frequencies it will enhance, and which it will reduce.

  5. Review Frequency Response Example Superposition Example Linearity Summary Review: Convolution A convolution is exactly the same thing as a weighted local average . We give it a special name, because we will use it very often. It’s defined as: � � y [ n ] = g [ m ] f [ n − m ] = g [ n − m ] f [ m ] m m We use the symbol ∗ to mean “convolution:” � � y [ n ] = g [ n ] ∗ f [ n ] = g [ m ] f [ n − m ] = g [ n − m ] f [ m ] m m

  6. Review Frequency Response Example Superposition Example Linearity Summary Review: Spectrum The spectrum of x ( t ) is the set of frequencies, and their associated phasors, Spectrum ( x ( t )) = { ( f − N , a − N ) , . . . , ( f 0 , a 0 ) , . . . , ( f N , a N ) } such that N � a k e j 2 π f k t x ( t ) = k = − N

  7. Review Frequency Response Example Superposition Example Linearity Summary Review: Fourier Series One reason the spectrum is useful is that any periodic signal can be written as a sum of cosines. Fourier’s theorem says that any x ( t ) that is periodic, i.e., x ( t + T 0 ) = x ( t ) can be written as ∞ � X k e j 2 π kF 0 t x ( t ) = k = −∞ which is a special case of the spectrum for periodic signals: f k = kF 0 , and a k = X k , and F 0 = 1 T 0

  8. Review Frequency Response Example Superposition Example Linearity Summary Fourier Series Analysis (finding the spectrum, given the waveform): � T 0 X k = 1 x ( t ) e − j 2 π kt / T 0 dt T 0 0 Fourier Series Synthesis (finding the waveform, given the spectrum): ∞ � X k e j 2 π kt / T 0 x ( t ) = k = −∞ DFT Analysis (finding the spectrum, given the waveform): N − 1 � x [ n ] e − j 2 π kn / N X [ k ] = n =0 DFT Synthesis (finding the waveform, given the spectrum): N − 1 x [ n ] = 1 � X [ k ] e j 2 π kn / N N k =0

  9. Review Frequency Response Example Superposition Example Linearity Summary Outline Review: Convolution and Fourier Series 1 Frequency Response 2 Example: First Difference 3 Superposition and the Frequency Response 4 Example: First Difference 5 Linearity 6 Summary 7

  10. Review Frequency Response Example Superposition Example Linearity Summary Frequency Response The frequency response , G ( ω ), of a filter g [ n ], is its output in response to a pure tone, expressed as a function of the frequency of the tone.

  11. Review Frequency Response Example Superposition Example Linearity Summary Calculating the Frequency Response Output of the filter: y [ n ] = g [ n ] ∗ x [ n ] � = g [ m ] x [ n − m ] m in response to a pure tone: x [ n ] = e j ω n

  12. Review Frequency Response Example Superposition Example Linearity Summary Calculating the Frequency Response Output of the filter in response to a pure tone: � y [ n ] = g [ m ] x [ n − m ] m � g [ m ] e j ω ( n − m ) = m �� � = e j ω n g [ m ] e − j ω m m Notice that the part inside the parentheses is not a function of n . It is not a function of m , because the m gets summed over. It is only a function of ω . It is called the frequency response of the filter, G ( ω ).

  13. Review Frequency Response Example Superposition Example Linearity Summary Frequency Response When the input to a filter is a pure tone, x [ n ] = e j ω n , then its output is the same pure tone, scaled and phase shifted by a complex number called the frequency response G ( ω ): y [ n ] = G ( ω ) e j ω n The frequency response is related to the impulse response as � g [ m ] e − j ω m G ( ω ) = m

  14. Review Frequency Response Example Superposition Example Linearity Summary Outline Review: Convolution and Fourier Series 1 Frequency Response 2 Example: First Difference 3 Superposition and the Frequency Response 4 Example: First Difference 5 Linearity 6 Summary 7

  15. Review Frequency Response Example Superposition Example Linearity Summary Example: First Difference Remember that taking the difference between samples can be written as a convolution: y [ n ] = x [ n ] − x [ n − 1] = g [ n ] ∗ x [ n ] , where  1 n = 0   g [ n ] = − 1 n = 1  0 otherwise 

  16. Review Frequency Response Example Superposition Example Linearity Summary Example: First Difference Suppose that the input is a pure tone: x [ n ] = e j ω n Then the output will be y [ n ] = x [ n ] − x [ n − 1] = e j ω n − e j ω ( n − 1) = G ( ω ) e j ω n , where G ( ω ) = 1 − e − j ω

  17. Review Frequency Response Example Superposition Example Linearity Summary First Difference Filter at ω = 0 G ( ω ) = 1 − e − j ω Frequency ω = 0 means the input is a constant value: x [ n ] = e j ω n | ω =0 = 1 At frequency ω = 0, the frequency response is zero! G (0) = 1 − e 0 = 0 . . . which totally makes sense, because if x [ n ] = 1, then y [ n ] = x [ n ] − x [ n − 1] = 1 − 1 = 0

  18. Review Frequency Response Example Superposition Example Linearity Summary First Difference Filter at ω = π Frequency ω = π means the input is ( − 1) n : � 1 n is even x [ n ] = e j π n = ( − 1) n = − 1 n is odd At frequency ω = π , the frequency response is two! G ( π ) = 1 − e j π = 1 − ( − 1) = 2 . . . which totally makes sense, because if x [ n ] = ( − 1) n , then � 1 − ( − 1) = 2 n is even y [ n ] = x [ n ] − x [ n − 1] = ( − 1) − 1 = − 2 n is odd

  19. Review Frequency Response Example Superposition Example Linearity Summary First Difference Filter at ω = π 2 Frequency ω = π 2 means the input is j n :  1 n ∈ { 0 , 4 , 8 , 12 , . . . }     j n ∈ { 1 , 5 , 9 , 13 , . . . } 2 = j n =  x [ n ] = e j π n − 1 n ∈ { 2 , 6 , 10 , 14 , . . . }     − j n ∈ { 3 , 7 , 11 , 15 , . . . }  The frequency response is: � π � = 1 − e j π 2 = 1 − j , G 2 so y [ n ] is  (1 − j ) n ∈ { 0 , 4 , 8 , 12 , . . . }     ( j + 1) n ∈ { 1 , 5 , 9 , 13 , . . . }  y [ n ] = (1 − j ) e j π n 2 = (1 − j ) j n = ( − 1 + j ) n ∈ { 2 , 6 , 10 , 14 , . . . }     ( − j − 1) n ∈ { 3 , 7 , 11 , 15 , . . . } 

  20. Review Frequency Response Example Superposition Example Linearity Summary Outline Review: Convolution and Fourier Series 1 Frequency Response 2 Example: First Difference 3 Superposition and the Frequency Response 4 Example: First Difference 5 Linearity 6 Summary 7

  21. Review Frequency Response Example Superposition Example Linearity Summary Superposition and the Frequency Response The frequency response obeys the principle of superposition , meaning that if the input is the sum of two pure tones: x [ n ] = e j ω 1 n + e j ω 2 n , then the output is the sum of the same two tones, each scaled by the corresponding frequency response: y [ n ] = G ( ω 1 ) e j ω 1 n + G ( ω 2 ) e j ω 2 n

  22. Review Frequency Response Example Superposition Example Linearity Summary Response to a Cosine There are no complex exponentials in the real world. Instead, we’d like to know the output in response to a cosine input. Fortunately, a cosine is the sum of two complex exponentials: x [ n ] = cos( ω n ) = 1 2 e j ω n + 1 2 e − j ω n , therefore, y [ n ] = G ( ω ) e j ω n + G ( − ω ) e − j ω n 2 2

  23. Review Frequency Response Example Superposition Example Linearity Summary Response to a Cosine What is G ( − ω )? Remember the definition: � g [ m ] e − j ω m G ( ω ) = m Replacing every ω with a − ω gives: � g [ m ] e j ω m . G ( − ω ) = m Notice that g [ m ] is real-valued, so the only complex number on the RHS is e j ω m . But e j ω m = e − j ω m � ∗ � so G ( − ω ) = G ∗ ( ω )

  24. Review Frequency Response Example Superposition Example Linearity Summary Response to a Cosine y [ n ] = G ( ω ) e j ω n + G ∗ ( ω ) e − j ω n 2 2 = | G ( ω ) | e j ∠ G ( ω ) e j ω n + | G ( ω ) | e − j ∠ G ( ω ) e − j ω n 2 2 = | G ( ω ) | e j ( ω n + ∠ G ( ω )) + | G ( ω ) | e − j ( ω n + ∠ G ( ω )) 2 2 = | G ( ω ) | cos ( ω n + ∠ G ( ω )) Magnitude and Phase Responses The Magnitude Response | G ( ω ) | tells you by how much a pure tone at ω will be scaled. The Phase Response ∠ G ( ω ) tells you by how much a pure tone at ω will be advanced in phase.

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