Fall 2011, EE123 Digital Signal Processing

Similar documents
EE123 Digital Signal Processing

Finite-length Discrete Transforms. Chapter 5, Sections

2D DSP Basics: 2D Systems

Chapter 8. DFT : The Discrete Fourier Transform

Frequency Domain Filtering

A. Basics of Discrete Fourier Transform

Block-by Block Convolution, FFT/IFFT, Digital Spectral Analysis

The Discrete Fourier Transform

Frequency Response of FIR Filters

Linear time invariant systems

Signal Processing in Mechatronics. Lecture 3, Convolution, Fourier Series and Fourier Transform

x[0] x[1] x[2] Figure 2.1 Graphical representation of a discrete-time signal.

Practical Spectral Anaysis (continue) (from Boaz Porat s book) Frequency Measurement

FFTs in Graphics and Vision. The Fast Fourier Transform

The z-transform. 7.1 Introduction. 7.2 The z-transform Derivation of the z-transform: x[n] = z n LTI system, h[n] z = re j

Ch3 Discrete Time Fourier Transform

EE422G Homework #13 (12 points)

Discrete-Time Systems, LTI Systems, and Discrete-Time Convolution

FIR Filter Design: Part II

Filter banks. Separately, the lowpass and highpass filters are not invertible. removes the highest frequency 1/ 2and

Advanced Training Course on FPGA Design and VHDL for Hardware Simulation and Synthesis

Z - Transform. It offers the techniques for digital filter design and frequency analysis of digital signals.

Chapter 7: The z-transform. Chih-Wei Liu

The Discrete Fourier Transform

ELEG3503 Introduction to Digital Signal Processing

ADVANCED DIGITAL SIGNAL PROCESSING

Definition of z-transform.

The Z-Transform. (t-t 0 ) Figure 1: Simplified graph of an impulse function. For an impulse, it can be shown that (1)

EE Midterm Test 1 - Solutions

Lecture 3: Divide and Conquer: Fast Fourier Transform

6.003 Homework #3 Solutions

Computing the output response of LTI Systems.

Solutions. Number of Problems: 4. None. Use only the prepared sheets for your solutions. Additional paper is available from the supervisors.

The Discrete Fourier Transform

EE / EEE SAMPLE STUDY MATERIAL. GATE, IES & PSUs Signal System. Electrical Engineering. Postal Correspondence Course

COMM 602: Digital Signal Processing

MAXIMALLY FLAT FIR FILTERS

Lecture 3. Digital Signal Processing. Chapter 3. z-transforms. Mikael Swartling Nedelko Grbic Bengt Mandersson. rev. 2016

FIR Filter Design: Part I

Exam. Notes: A single A4 sheet of paper (double sided; hand-written or computer typed)

Warped, Chirp Z-Transform: Radar Signal Processing

Chapter 9 Computation of the Discrete. Fourier Transform

M2.The Z-Transform and its Properties

ECEN 644 HOMEWORK #5 SOLUTION SET

Algorithms and Data Structures 2014 Exercises and Solutions Week 13

MAS160: Signals, Systems & Information for Media Technology. Problem Set 5. DUE: November 3, (a) Plot of u[n] (b) Plot of x[n]=(0.

TMA4205 Numerical Linear Algebra. The Poisson problem in R 2 : diagonalization methods

Exponential Moving Average Pieter P

2 Geometric interpretation of complex numbers

Polynomial Multiplication and Fast Fourier Transform

3. Z Transform. Recall that the Fourier transform (FT) of a DT signal xn [ ] is ( ) [ ] = In order for the FT to exist in the finite magnitude sense,

ECE-S352 Introduction to Digital Signal Processing Lecture 3A Direct Solution of Difference Equations

Introduction to Digital Signal Processing

GEORGIA INSTITUTE OF TECHNOLOGY SCHOOL OF ELECTRICAL AND COMPUTER ENGINEERING

Question1 Multiple choices (circle the most appropriate one):

Principle Of Superposition

Chapter 7 z-transform

The z-transform can be used to obtain compact transform-domain representations of signals and systems. It

Signal Processing. Lecture 02: Discrete Time Signals and Systems. Ahmet Taha Koru, Ph. D. Yildiz Technical University.

EECE 301 Signals & Systems

Digital signal processing: Lecture 5. z-transformation - I. Produced by Qiangfu Zhao (Since 1995), All rights reserved

Spring 2014, EE123 Digital Signal Processing

Chapter 3. z-transform

The z transform is the discrete-time counterpart of the Laplace transform. Other description: see page 553, textbook.

FIR Filters. Lecture #7 Chapter 5. BME 310 Biomedical Computing - J.Schesser

Chapter 2 Systems and Signals

Vibratory Motion. Prof. Zheng-yi Feng NCHU SWC. National CHung Hsing University, Department of Soil and Water Conservation

Time-Domain Representations of LTI Systems

CALCULATING FIBONACCI VECTORS

(3) If you replace row i of A by its sum with a multiple of another row, then the determinant is unchanged! Expand across the i th row:

Chimica Inorganica 3

Quantum Computing Lecture 7. Quantum Factoring

Olli Simula T / Chapter 1 3. Olli Simula T / Chapter 1 5

Discrete-time signals and systems See Oppenheim and Schafer, Second Edition pages 8 93, or First Edition pages 8 79.

Assignment 2 Solutions SOLUTION. ϕ 1 Â = 3 ϕ 1 4i ϕ 2. The other case can be dealt with in a similar way. { ϕ 2 Â} χ = { 4i ϕ 1 3 ϕ 2 } χ.

The Discrete-Time Fourier Transform (DTFT)

The picture in figure 1.1 helps us to see that the area represents the distance traveled. Figure 1: Area represents distance travelled

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Electrical Engineering and Computer Science. BACKGROUND EXAM September 30, 2004.

Introduction to Signals and Systems, Part V: Lecture Summary

Signal Processing in Mechatronics

Chapter 2. Simulation Techniques. References:

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science. Fall Problem Set 11 Solutions.

Module 18 Discrete Time Signals and Z-Transforms Objective: Introduction : Description: Discrete Time Signal representation

Notes 20 largely plagiarized by %khc

Written exam Digital Signal Processing for BMT (8E070). Tuesday November 1, 2011, 09:00 12:00.

Discrete-Time Signals and Systems. Signals and Systems. Digital Signals. Discrete-Time Signals. Operations on Sequences: Basic Operations

Solution of EECS 315 Final Examination F09

Fall 2011, EE123 Digital Signal Processing

Wavelet Transform and its relation to multirate filter banks

Spring 2014, EE123 Digital Signal Processing

5.1 Review of Singular Value Decomposition (SVD)

ECE4270 Fundamentals of DSP. Lecture 2 Discrete-Time Signals and Systems & Difference Equations. Overview of Lecture 2. More Discrete-Time Systems

Digital Signal Processing

Let A(x) and B(x) be two polynomials of degree n 1:

Chapter 4 : Laplace Transform

Run-length & Entropy Coding. Redundancy Removal. Sampling. Quantization. Perform inverse operations at the receiver EEE

Inverse Matrix. A meaning that matrix B is an inverse of matrix A.

Spectral Analysis. This week in lab. Next classes: 3/26 and 3/28. Your next experiment Homework is to prepare

T Signal Processing Systems Exercise material for autumn Solutions start from Page 16.

Signals & Systems Chapter3

Transcription:

Lecture 5 Miki Lustig, UCB September 14, 211 Miki Lustig, UCB

Motivatios for Discrete Fourier Trasform Sampled represetatio i time ad frequecy umerical Fourier aalysis requires a Fourier represetatio that is sampled i time ad frequecy Samplig i oe domai correspods to periodicity i the other domai Hece, we wat a represetatio that is discrete ad period i both time ad frequecy This is the discrete-time Fourier series or, equivaletly, the discrete Fourier trasform However, we are ofte dealig with sigals that are ot periodic, but still usig the DFT This requires special cosideratios

Motivatios for Discrete Fourier Trasform Efficiet Implemetios Very efficiet implemetatios of the discrete Fourier trasform exist Direct evaluatio of DFT: O( 2 ) Fast Fourier Trasform (FFT) algorithms: O( log 2 ) FFT algorithms are most straightforward for = 2 m MATLAB commads: X=fft(x) x=ifft(x) Covolutio ca be implemeted efficietly usig the FFT Direct covolutio: O( 2 ) FFT-based covolutio: O( log 2 )

Discrete Fourier Series Defiitio Cosider -periodic sigal: x[ + ] = x[] ad its frequecy-domai represetatio, which is also -periodic: X [k + ] = X [k] k The ~ will idicate a periodic sigal or spectrum

Discrete Fourier Series Defie W = e j2π/ x[] ad X [k] are related by the discrete Fourier series: x[] = 1 X [k] = 1 = 1 k= X [k]w k x[]w k

Discrete Fourier Trasform By covetio, work with oe period of x[] ad X [k]: { x[] 1 x[] X [k] = = otherwise { X [k] k 1 otherwise From these, if desired, we ca recover the periodic represetatios: x[] = x[(()) ] = x[ r] X [k] = X [((k)) ] = where (()) = mod r= r= X [k r]

Discrete Fourier Trasform DFT The discrete Fourier trasform relates x[] ad X [k]: x[] = 1 X [k] = 1 = 1 k= X [k]w k x[]w k Iverse DFT, sythesis DFT, aalysis Although ot stated it explicitly, it is uderstood that x[] = outside 1 X [k] = outside k 1

Alterative trasform ot i the book: Orthoormal DFT x[] = X [k] = 1 1 X [k]w k k= 1 1 x[]w k = Iverse DFT, sythesis DFT, aalysis Why use this or the other?

DFS vs DFT This figure compares the periodic sigal ad its DFS, x[] DFS X [k], to the correspodig oe-period sigal ad its DFT, x[] DFT X [k] x~!" # 1 X ~!" k #1 k x!" X!" k # 1 #1 k

DFT Cotiued Example: Take = 5 X [k] = { 4 = W k 4 k =, 1, 2, 3, 4 otherwise = 5δ[k] What if we take = 1? 5-poit DFT

DFT Cotiued Q: What if we take = 1? A: X [k] = X [k] where x[] is a period-1 sequece Ca show: X [k] = { 9 = W k 9 k =, 1, 2, 3, 4 otherwise 4π j = e 1 k si( π 2 k) si( π 1 k) 1-poit DFT

DFT vs DTFT The DFT ad the DTFT The -poit DFT of x[] is X [k] = 1 = x[]w k The DTFT of x[] is 1 = = x[]e j(2π/)k k 1 X (e jω ) = 1 = x[]e jω < ω < Comparig these two, we see that the DFT X [k] correspods to the DTFT X (e jω ) sampled at equally spaced frequecies betwee ad 2π: X [k] = X (e jω ) ω=k 2π k 1

DFT vs DTFT Back to example: X (e jω ) = 4 = e jω = e j2ω si( 5 2 ω) si( ω 2 )

DFT ad IDFT ote that the DFT ad the iverse DFT are computed i very similar fashio If we write x[] as the iverse DFT of X [k], multiply by ad take the complex cojugate: x [] = = ( 1 k= However, we also kow that 1 1 k= X [k]w k = DFT {X [k]} X [k]w k x [] = ( DFT 1 {X [k]} ) )

DFT ad IDFT Combiig these two expressios DFT {X [k]} = ( DFT 1 {X [k]} ) or DFT 1 {X [k]} = 1 (DFT {X [k]}) We ca evaluate the iverse DFT by Takig the complex cojugate, Takig the DFT, Multiplyig by 1, ad Takig the complex cojugate

DFT as Matrix operator ote that the defiitio of the DFT ad its iverse are equivalet to matrix equatios X [] X [k] X [ 1] = W W W ( 1) W k W k W k( 1) W ( 1) W ( 1) W ( 1)( 1) x[] x[] x[ 1] x[] x[] x[ 1] = 1 W W k W ( 1) W W k W ( 1) W ( 1) W ( 1)k W ( 1)( 1) X [] X [k] X [ 1] This shows that straightforward computatio of the -poit DFT or iverse DFT requires 2 complex multiplies

DFT as Matrix operator We ca write this much more compactly as a matrix equatio, X = W x x = 1 W X W is the DFT coefficiet matrix, ad x ad X are colum vectors cotaiig x[] ad X [k], ad is the cojugate traspose ote that sice the colums ad rows of W are orthogoal, ad W W = W W = I where I is the idetity matrix The as we would expect x = 1 W X = 1 W W x = 1 (I) x = x

Properties of Discrete Fourier Trasform These are iherited from the discrete-time Fourier series (EE12) ad eed ot be proved (1) Liearity α 1 x 1 [] + α 2 x 2 [] α 1 X 1 [k] + α 2 X 2 [k] (2) Circular Time Shift x[(( m)) ] X [k]e j(2π/)km = X [k]w km

Properties of Discrete Fourier Trasform Cot This figure compares a shift of the periodic sequece, x[ m], to a circular shift of the oe-period sequece, x[(( m)) ] x~!" ~ x! # m" # 1 m # 1 x!" x! $ $ # m% % " # 1 m # 1

Properties of Discrete Fourier Trasform Cot (3) Circular Frequecy Shift x[]e j(2π/)l = x[]w l X [((k l)) ] (4) Complex Cojugatio x [] X [(( k)) ] (5) Time Reversal ad Complex Cojugatio x [(( )) ] X [k] (6) Cojugate Symmetry for Real Sigals x[] = x [] X [k] = X [(( k)) ]

Properties of Discrete Fourier Trasform Cot (7) Parseval s Idetity 1 = x[] 2 = 1 1 k= X [k] 2 Proof This is particularly easy usig the matrix otatio ( ) 1 ( ) 1 x x = W X W X = 1 2 X W W X = 1 }{{} X X I

Circular Covolutio Sum Let x 1 [] ad x 2 [] be of legth The circular covolutio betwee x 1 [] ad x 2 [] is defied as: x 1 [] x 2 [] = 1 m= x 1 [m]x 2 [(( m)) ] ote that circular covolutio is commutative: x 2 [] x 1 [] = x 1 [] x 2 []

Circular Covolutio Sum The circular covolutio betwee x 1 [] ad x 2 [] is same as oe period of the periodic covolutio betwee the correspodig periodic sequeces x 1 [] ad x 2 []: { 1 m= x 1 [] x 2 [] = x 1[m] x 2 [ m] 1 otherwise This is illustrated i below: ~! " % ~ x! " x1 2 $ 1 # $ 1 m% 1 2 ~ x! m" ~ x! $ m" $ 1! " x! " x % 1 2 $ 1 x! " x! " 1 O 2 $ 1

Properties of Discrete Fourier Trasform Cot (8) Circular Covolutio Let x 1 [] ad x 2 [] be of legth x 1 [] x 2 [] X 1 [k] X 2 [k] This property is very useful for DFT-based covolutio (9) Multiplicatio Let x 1 [] ad x 2 [] be of legth x 1 [] x 2 [] 1 X 1[k] X 2 [k]

Liear Covolutio usig the DFT We start with two operiodic sequeces: x[] L 1 h[] P 1 We ca thik of x[] as a sigal, ad h[] as a filter ipulse respose We wat to compute the liear covolutio: y[] = x[] h[] = L 1 m= x[m] h[ m] = P 1 m= x[ m]h[m] y[] = x[] h[] is ozero oly for L + P 2, ad is of legth L + P 1 = M

Liear Covolutio usig the DFT We will look at two approaches for computig y[]: (1) Direct Covolutio Evaluate the covolutio sum directly This requires L P multiplicatios (2) Usig Circular Covolutio

Liear Covolutio usig the DFT (2) Usig Circular Covolutio Zero-pad x[] by P 1 zeros: { x[] L 1 x zp [] = L L + P 2 Zero-pad h[] by L 1 zeros: { h[] P 1 h zp [] = P L + P 2 Both zero-padded sequeces x zp [] ad h zp [] are of legth M = L + P 1

Liear Covolutio usig the DFT Both zero-padded sequeces x zp [] ad h zp [] are of legth M = L + P 1 We ca compute the liear covolutio x[] h[] = y[] by computig circular covolutio x zp [] M h zp []: Liear covolutio via circular { x zp [] M h zp [] M 1 y[] = x[] y[] = otherwise

Liear Covolutio usig the DFT Example L = P = 4 M = L + P 1 = 7 1 x 1 2 3 1 h 1 2 3 1 x zp 1 2 3 4 5 6 1 h zp 1 2 3 4 5 6 For 6, x zp [] 7 h zp [] = x[] * h[] 4 3 3 2 2 1 1 1 2 3 4 5 6

Liear Covolutio usig the DFT I practice, the circular covolutio is implemeted usig the DFT circular covolutio property: x[] h[] = x zp [] M h zp [] = DFT 1 {DFT x zp [] DFT {h zp []}} for M 1, M = L + P 1 Advatage: This ca be more efficiet tha direct liear covolutio because the FFT ad iverse FFT are O(M log 2 M) Drawback: We must wait util we have all of the iput data This itroduces a large delay which is icompatible with real-time applicatios like commuicatios

Liear Covolutio usig the DFT I practice, the circular covolutio is implemeted usig the DFT circular covolutio property: x[] h[] = x zp [] M h zp [] = DFT 1 {DFT x zp [] DFT {h zp []}} for M 1, M = L + P 1 Advatage: This ca be more efficiet tha direct liear covolutio because the FFT ad iverse FFT are O(M log 2 M) Drawback: We must wait util we have all of the iput data This itroduces a large delay which is icompatible with real-time applicatios like commuicatios Approach: Break iput ito smaller blocks Combie the results usig 1 overlap ad save or 2 overlap ad add

Block Covolutio Problem A iput sigal x[] has very log legth, which ca be cosidered ifiite A impulse respose h[] has legth P We wat to compute the liear covolutio y[] = x[] h[] usig block legths shorter tha the iput sigal legth

Block Covolutio Example: Impulse Respose, Legth P = 6 5 h[] -5 1 2 3 Iput Sigal, Legth 33 Liear Covolutio, Legth 38 5 5 x[] y[] -5-5 1 2 3 1 2 3

Overlap-Add Method We decompose the iput sigal x[] ito o-overlappig segmets x r [] of legth L: { x[] rl (r + 1)L 1 x r [] = otherwise The iput sigal is the sum of these iput segmets: x[] = x r [] The output sigal is the sum of the output segmets x r [] h[]: r= y[] = x[] h[] = x r [] h[] (1) r= Each of the output segmets x r [] h[] is of legth = L + P 1

Overlap-Add Method We ca compute each output segmet x r [] h[] with liear covolutio DFT-based circular covolutio is usually more efficiet: Zero-pad iput segmet x r [] to obtai x r,zp [], of legth Zero-pad the impulse respose h[] to obtai h zp [], of legth (this eeds to be doe oly oce) Compute each output segmet usig: x r [] h[] = DFT 1 {DFT {x r,zp []} DFT {h zp []}} Sice output segmet x r [] h[] starts offset from its eighbor x r 1 [] h[] by L, eighborig output segmets overlap at P 1 poits Fially, we just add up the output segmets usig (1) to obtai the output

Overlap-Add Method Overlap-Add, Iput Segmets, Legth L = 11 Overlap-Add, Output Segmets, Legth L+P-1 = 16 5 5 x [] y [] -5-5 1 2 3 1 2 3 5 5 x 1 [] y 1 [] -5-5 1 2 3 1 2 3 5 5 x 2 [] y 2 [] -5-5 1 2 3 Overlap-Add, Sum of Iput Segmets 1 2 3 Overlap-Add, Sum of Output Segmets 5 5 x[] y[] -5-5 1 2 3 1 2 3

Overlap-Save Method Basic Idea We split the iput sigal x[] ito overlappig segmets x r [] of legth L + P 1 Perform a circular covolutio of each iput segmet x r [] with the impulse respose h[], which is of legth P usig the DFT Idetify the L-sample portio of each circular covolutio that correspods to a liear covolutio, ad save it This is illustrated below where we have a block of L samples circularly covolved with a P sample filter

Overlap-Save Method Overlap-Save, Iput Segmets, Legth L = 16 Overlap-Save, Output Segmets, Usable Legth L - P + 1 5 5 Usable (y []) Uusable x [] y p [] -5-5 1 2 3 1 2 3 5 5 Usable (y 1 []) Uusable x 1 [] y 1p [] -5-5 1 2 3 1 2 3 5 5 Usable (y 2 []) Uusable x 2 [) y 2p [] -5-5 1 2 3 1 2 3 Overlap-Save, Cocateatio of Usable Output Segmets 5 y[] -5 1 2 3