2003-09-16Dan Ellis 1 ELEN E4810: Digital Signal Processing Topic 3: Fourier domain 1.The Fourier domain 2.Discrete-Time Fourier Transform (DTFT) 3.Discrete.

Slides:



Advertisements
Similar presentations
Chapter 8: The Discrete Fourier Transform
Advertisements

Lecture 4: Linear Systems and Convolution
Autumn Analog and Digital Communications Autumn
Signals and Systems Discrete Time Fourier Series.
CELLULAR COMMUNICATIONS DSP Intro. Signals: quantization and sampling.
Goals For This Class Quickly review of the main results from last class Convolution and Cross-correlation Discrete Fourier Analysis: Important Considerations.
EE513 Audio Signals and Systems Digital Signal Processing (Systems) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
Copyright © Shi Ping CUC Chapter 3 Discrete Fourier Transform Review Features in common We need a numerically computable transform, that is Discrete.
Discrete-Time and System (A Review)
ELEN 5346/4304 DSP and Filter Design Fall Lecture 4: Frequency domain representation, DTFT, IDTFT, DFT, IDFT Instructor: Dr. Gleb V. Tcheslavski.
1 7.1 Discrete Fourier Transform (DFT) 7.2 DFT Properties 7.3 Cyclic Convolution 7.4 Linear Convolution via DFT Chapter 7 Discrete Fourier Transform Section.
1 Chapter 8 The Discrete Fourier Transform 2 Introduction  In Chapters 2 and 3 we discussed the representation of sequences and LTI systems in terms.
UNIT - 4 ANALYSIS OF DISCRETE TIME SIGNALS. Sampling Frequency Harry Nyquist, working at Bell Labs developed what has become known as the Nyquist Sampling.
Chapter 2 Discrete-Time Signals and Systems
Chapter 2: Discrete time signals and systems
Motivation Music as a combination of sounds at different frequencies
Fourier Series Summary (From Salivahanan et al, 2002)
1 The Fourier Series for Discrete- Time Signals Suppose that we are given a periodic sequence with period N. The Fourier series representation for x[n]
1 Fourier Representation of Signals and LTI Systems. CHAPTER 3 EKT 232.
FOURIER ANALYSIS PART 2: Continuous & Discrete Fourier Transforms
Digital Signal Processing – Chapter 10
Finite-Length Discrete Transform
Discrete Fourier Transform Prof. Siripong Potisuk.
Signal and Systems Prof. H. Sameti Chapter 5: The Discrete Time Fourier Transform Examples of the DT Fourier Transform Properties of the DT Fourier Transform.
Fourier Series. Introduction Decompose a periodic input signal into primitive periodic components. A periodic sequence T2T3T t f(t)f(t)
Dan Ellis 1 ELEN E4810: Digital Signal Processing Topic 4: The Z Transform 1.The Z Transform 2.Inverse Z Transform.
1 Fourier Representations of Signals & Linear Time-Invariant Systems Chapter 3.
The Discrete Fourier Transform 主講人:虞台文. Content Introduction Representation of Periodic Sequences – DFS (Discrete Fourier Series) Properties of DFS The.
EE104: Lecture 5 Outline Review of Last Lecture Introduction to Fourier Transforms Fourier Transform from Fourier Series Fourier Transform Pair and Signal.
Zhongguo Liu_Biomedical Engineering_Shandong Univ. Chapter 8 The Discrete Fourier Transform Zhongguo Liu Biomedical Engineering School of Control.
Hossein Sameti Department of Computer Engineering Sharif University of Technology.
Course Outline (Tentative) Fundamental Concepts of Signals and Systems Signals Systems Linear Time-Invariant (LTI) Systems Convolution integral and sum.
Department of Computer Eng. Sharif University of Technology Discrete-time signal processing Chapter 3: THE Z-TRANSFORM Content and Figures are from Discrete-Time.
Real time DSP Professors: Eng. Julian S. Bruno Eng. Jerónimo F. Atencio Sr. Lucio Martinez Garbino.
Digital Signal Processing Chapter 3 Discrete transforms.
Fourier Analysis of Discrete Time Signals
Digital Signal Processing
Z TRANSFORM AND DFT Z Transform
Copyright ©2010, ©1999, ©1989 by Pearson Education, Inc. All rights reserved. Discrete-Time Signal Processing, Third Edition Alan V. Oppenheim Ronald W.
Chapter 5 Finite-Length Discrete Transform
Fourier Analysis of Signals and Systems
5.0 Discrete-time Fourier Transform 5.1 Discrete-time Fourier Transform Representation for discrete-time signals Chapters 3, 4, 5 Chap 3 Periodic Fourier.
EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department.
Digital Signal Processing
Linear filtering based on the DFT
DTFT continue (c.f. Shenoi, 2006)  We have introduced DTFT and showed some of its properties. We will investigate them in more detail by showing the associated.
Signals and Systems Fall 2003 Lecture #6 23 September CT Fourier series reprise, properties, and examples 2. DT Fourier series 3. DT Fourier series.
Digital Signal Processing Topic 2: Time domain
Oh-Jin Kwon, EE dept., Sejong Univ., Seoul, Korea: 2.3 Fourier Transform: From Fourier Series to Fourier Transforms.
Lecture 2 Outline “Fun” with Fourier Announcements: Poll for discussion section and OHs: please respond First HW posted 5pm tonight Duality Relationships.
The Fourier Transform.
In summary If x[n] is a finite-length sequence (n  0 only when |n|
بسم الله الرحمن الرحيم Digital Signal Processing Lecture 14 FFT-Radix-2 Decimation in Frequency And Radix -4 Algorithm University of Khartoum Department.
بسم الله الرحمن الرحيم Lecture (12) Dr. Iman Abuel Maaly The Discrete Fourier Transform Dr. Iman Abuel Maaly University of Khartoum Department of Electrical.
1 Chapter 8 The Discrete Fourier Transform (cont.)
 Carrier signal is strong and stable sinusoidal signal x(t) = A cos(  c t +  )  Carrier transports information (audio, video, text, ) across.
Digital Image Processing Lecture 8: Fourier Transform Prof. Charlene Tsai.
Lecture 19 Spectrogram: Spectral Analysis via DFT & DTFT
DIGITAL SIGNAL PROCESSING ELECTRONICS
CE Digital Signal Processing Fall Discrete-time Fourier Transform
Spectral Analysis Spectral analysis is concerned with the determination of the energy or power spectrum of a continuous-time signal It is assumed that.
ME2300 DIGITAL SIGNAL PROCESSING [Slide 2] Frequency Domain Analysis BY DREAMCATCHER
UNIT II Analysis of Continuous Time signal
Chapter 8 The Discrete Fourier Transform
Sampling the Fourier Transform
Z TRANSFORM AND DFT Z Transform
Lecture 17 DFT: Discrete Fourier Transform
Chapter 8 The Discrete Fourier Transform
Chapter 8 The Discrete Fourier Transform
CE Digital Signal Processing Fall Discrete Fourier Transform (DFT)
Presentation transcript:

Dan Ellis 1 ELEN E4810: Digital Signal Processing Topic 3: Fourier domain 1.The Fourier domain 2.Discrete-Time Fourier Transform (DTFT) 3.Discrete Fourier Transform (DFT) 4.Convolution with the DFT

Dan Ellis 2 1. The Fourier Transform Basic observation (continuous time): A periodic signal can be decomposed into sinusoids at integer multiples of the fundamental frequency i.e. if we can approach with Harmonics of the fundamental

Dan Ellis 3 Fourier Series For a square wave, i.e.

Dan Ellis 4 Fourier domain x is equivalently described by its Fourier Series parameters: Complex form: k akak 1.0 Negative a k is equivalent to phase of  k kk π

Dan Ellis 5 Fourier analysis How to find {|c k |}, {arg[c k ]} ? Inner product with complex sinusoids:

Dan Ellis 6 Fourier analysis Works if k 1, k 2 are positive integers, 

Dan Ellis 7 sinc = 1 when x = 0 = 0 when x = r· , r ≠ 0, r = ±1, ±2, ±3,... ∆

Dan Ellis 8 Fourier Analysis Thus, because real & imag sinusoids in pick out corresponding sinusoidal components linearly combined in

Dan Ellis 9 Fourier Transform Fourier series for periodic signals extends naturally to Fourier Transform for any (CT) signal (not just periodic): Discrete index k  continuous freq.  Inverse Fourier Transform (IFT) Fourier Transform (FT)

Dan Ellis 10 Fourier Transform Mapping between two continuous functions: 2π ambiguity

Dan Ellis 11 Fourier Transform of a sine Assume Now, since...we know...where  (x) is the Dirac delta function (continuous time) i.e.   f(x)f(x) x x0x0 (x-x0)(x-x0)

Dan Ellis 12 Fourier Transforms TimeFrequency Fourier Series (FS) Continuous periodic x(t) Discrete infinite c k Fourier Transform (FT) Continuous infinite x(t) Continuous infinite X(  ) Discrete-Time FT (DTFT) Discrete infinite x[n] Continuous periodic X(e j  ) Discrete FT (DFT) Discrete finite/pdc x[n] Discrete finite/pdc X[k] ~ ~

Dan Ellis Discrete Time FT (DTFT) FT defined for discrete sequences: Summation (not integral) Discrete (normalized) frequency variable  Argument is e j , not plain  DTFT

Dan Ellis 14 DTFT example e.g. x[n] =  n ·  [n], |  | < 1  n

Dan Ellis 15 Periodicity of X(e j  ) X(e j  ) has periodicity 2  in  Phase ambiguity of e j  makes it implicit

Dan Ellis 16 Inverse DTFT (IDTFT) Same basic form as other IFTs: Note: continuous, periodic X(e j  ) discrete, infinite x[n]... IDTFT is actually forward Fourier Series (except for sign of  ) IDTFT

Dan Ellis 17 IDTFT Verify by substituting in DTFT: = 0 unless n = l

Dan Ellis 18 sinc again Same as  cos imag jsin part cancels 

Dan Ellis 19 x[n] =  [n]  i.e. x[n]X(e j  )  [n]  1 DTFTs of simple sequences (for all  ) n  -- x[n]x[n] X(ej)X(ej)

Dan Ellis 20 DTFTs of simple sequences :  over -  <  <  but X(e j  ) must be periodic in   If  0 = 0 then x[n] = 1  n so IDTFT  

Dan Ellis 21  DTFTs of simple sequences From before:  [n] tricky - not finite ( |  | < 1) DTFT of 1/2 

Dan Ellis 22 DTFT properties Linear: Time shift: Frequency shift: ‘delay’ in frequency

Dan Ellis 23 DTFT example x[n] =  [n] +  n  [n-1]  ? =  [n] +  n-1  [n-1])   x[n] =  n  [n]

Dan Ellis 24 DTFT symmetry If x[n]  X(e j  ) then... x[-n]  X(e -j  ) x * [n]  X * (e -j  ) Re{x[n]}  X CS (e j  ) jIm{x[n]}  X CA (e j  ) x cs [n]  Re{X(e j  )} x ca [n]  jIm{X(e j  )} conjugate symmetry cancels Im parts on IDTFT from summation (e -j  ) * = e j 

Dan Ellis 25 DTFT of real x[n] When x[n] is pure real,  X(e j  ) = X * (e -j  ) x cs [n]  x ev [n] = x ev [-n]  X R (e j  ) = X R (e -j  ) x ca [n]  x od [n] = -x od [-n]  X I (e j  ) = -X I (e -j  ) x[n] real, even  X(e j  ) even, real

Dan Ellis 26 DTFT and convolution Convolution:  Convolution becomes multiplication

Dan Ellis 27 DTFT modulation Modulation: Could solve if g[n] was just sinusoids...  Dual of convolution in time

Dan Ellis 28 Parseval’s relation “Energy” in time and frequency domains are equal: If g = h, then g·g * = |g| 2 = energy...

Dan Ellis 29 Energy density spectrum Energy of sequence By Parseval Define Energy Density Spectrum (EDS)

Dan Ellis 30 EDS and autocorrelation Autocorrelation of g[n]:  If g[n] is real, G(e -j  ) = G * (e j  ), so Mag-sq of spectrum is DTFT of autoco no phase info.

Dan Ellis 31 Convolution with DTFT Since we can calculate a convolution by: finding DTFTs of g, h  G, H multiply them: G · H IDTFT of product is result, g[n]g[n] h[n]h[n] y[n]y[n] DTFT IDTFT

Dan Ellis 32 x[n] =  n ·  [n]  h[n] =  [n] -  [n-1]  y[n] = x[n]  h[n]   y[n] =  [n] i.e.... DTFT convolution example

Dan Ellis Discrete FT (DFT) A finite or periodic sequence has only N unique values, x[n] for 0 ≤ n < N Spectrum is completely defined by N distinct frequency samples Divide 0..2  into N equal steps, {  k } = 2  k/N Discrete FT (DFT) Discrete finite/pdc x[n] Discrete finite/pdc X[k]

Dan Ellis 34 Uniform sampling of DTFT spectrum: DFT: where i.e. 1/ N th of a revolution DFT and IDFT

Dan Ellis 35 IDFT Inverse DFT IDFT Check: Sum of complete set of rotated vectors = 0 if l ≠ n ; = N if l = n re im WNWN WN2WN2

Dan Ellis 36 DFT examples Finite impulse  Periodic sinusoid: (r  I) 

Dan Ellis 37 DFT: Matrix form as a matrix multiply: i.e.

Dan Ellis 38 Matrix IDFT If then i.e. inverse DFT is also just a matrix, =1/NDN*=1/NDN*

Dan Ellis 39 DFT and DTFT DFT ‘samples’ DTFT at discrete freqs: DTFT DFT continuous freq  infinite x[n], -  <n<  discrete freq k=N  finite x[n], 0≤n<N  X(ej)X(ej) X[k]X[k] k=1...

Dan Ellis 40 DFT and MATLAB MATLAB is concerned with sequences not continuous functions like X(e j  ) Instead, we use the DFT to sample X(e j  ) on an (arbitrarily-fine) grid: X = freqz(x,1,w); samples the DTFT of sequence x at angular frequencies in w X = fft(x); calculates the N -point DFT of an N -point sequence x M

Dan Ellis 41 DTFT from DFT N -point DFT completely specifies the continuous DTFT of the finite sequence “periodic sinc” interpolation

Dan Ellis 42 Periodic sinc = N when  k = 0; = (-)N when  k /2 =  = 0 when  k /2 = r·  /N, r = ±1, ± 2,... other values in-between...

Dan Ellis 43 Periodic sinc Periodic sinc interpolation X[k]  X(e j  )

Dan Ellis 44 DFT from overlength DTFT If x[n] has more than N points, can still form IDFT of X[k] will give N point How does relate to x[n] ?

Dan Ellis 45 DFT from overlength DTFT =1 for n-l = rN, r  I = 0 otherwise all values shifted by exact multiples of N pts to lie in 0 ≤ n < N DTFT x[n]x[n] sample X(ej)X(ej) IDFT X[k]X[k] 0 ≤ n < N-A ≤ n < B

Dan Ellis 46 DFT from DTFT example If x[n] = { 8, 5, 4, 3, 2, 2, 1, 1} (8 point) We form X[k] for k = 0, 1, 2, 3 by sampling X(e j  ) at  = 0,  /2, , 3  /2 IDFT of X[k] gives 4 pt Overlap only for r = -1 : (N = 4)

Dan Ellis 47 DFT from DTFT example x[n] x[n+N] (r = -1) is the time aliased or ‘folded down’ version of x[n]. n n n 123

Dan Ellis 48 Properties: Circular time shift DFT properties mirror DTFT, with twists: Time shift must stay within N -pt ‘window’ Modulo- N indexing keeps index between 0 and N-1: 0 ≤ n 0 < N

Dan Ellis 49 Circular time shift Points shifted out to the right don’t disappear – they come in from the left Like a ‘barrel shifter’: 5-pt sequence ‘delay’ by 2 g[n]g[n] 1234 n g[ 5 ] 1234 n

Dan Ellis 50 Circular time reversal Time reversal is tricky in ‘modulo- N ’ indexing - not reversing the sequence: Zero point stays fixed; remainder flips 1234 n pt sequence made periodic Time-reversed periodic sequence 1234 n

Dan Ellis Convolution with the DFT IDTFT of product of DTFTs of two N -pt sequences is their 2N-1 pt convolution IDFT of the product of two N -pt DFTs can only give N points! Equivalent of 2N-1 pt result time aliased: i.e. must be, because G[k]H[k] are exact samples of G(e j  )H(e j  ) This is known as circular convolution

Dan Ellis 52 Circular convolution Can also do entire convolution with modulo- N indexing Hence, Circular Convolution: Written as N

Dan Ellis 53 Circular convolution example 4 pt sequences: g[n]={ } n 123 h[n]={ } n 123  1  2  0  1 n h[ 4 ] 123 n 123 n 123 n 123 n g[n] h[n]={ } check: g[n] h[n] ={ } *

Dan Ellis 54 Duality DFT and IDFT are very similar both map an N -pt vector to an N -pt vector Duality: if then i.e. if you treat DFT sequence as a time sequence, result is almost symmetric Circular time reversal

Dan Ellis 55 DFT properties summary Circular convolution Modulation Duality Parseval

Dan Ellis 56 Linear convolution w/ the DFT DFT  fast circular convolution.. but we need linear convolution Circular conv. is time-aliased linear conv.; can aliasing be avoided? e.g. convolving L -pt g[n] with M -pt h[n] : y[n] = g[n] h[n] has L+M-1 nonzero pts Set DFT size N ≥ L+M-1  no aliasing *

Dan Ellis 57 Linear convolution w/ the DFT Procedure ( N = L + M - 1 ): pad L -pt g[n] with (at least) M-1 zeros  N -pt DFT G[k], k = 0..N-1 pad M -pt h[n] with (at least) L-1 zeros  N -pt DFT H[k], k = 0..N-1 Y[k] = G[k]·H[k], k = 0..N-1 IDFT{ Y[k] } n g[n]g[n] L n h[n]h[n] M n yc[n]yc[n] N

Dan Ellis 58 Overlap-Add convolution Very long g[n]  break up into segments, convolve piecewise, overlap  bound size of DFT, processing delay Make Called Overlap-Add (OLA) convolution... **

Dan Ellis 59 Overlap-Add convolution n g[n]g[n] n g0[n]g0[n] n g1[n]g1[n] n g2[n]g2[n] N2N3N n h[n] g 0 [n] n n h[n]h[n] n  h[n] g 1 [n]  h[n] g 2 [n]  n N2N3N h[n] g[n]  valid OLA sum