ELEN%20E4810:%20Digital%20Signal%20Processing%20Topic%203:%20Fourier%20domain - PowerPoint PPT Presentation

About This Presentation
Title:

ELEN%20E4810:%20Digital%20Signal%20Processing%20Topic%203:%20Fourier%20domain

Description:

ELEN E4810: Digital Signal Processing Topic 3: Fourier domain The Fourier domain Discrete-Time Fourier Transform (DTFT) Discrete Fourier Transform (DFT) – PowerPoint PPT presentation

Number of Views:188
Avg rating:3.0/5.0
Slides: 60
Provided by: DanE133
Category:

less

Transcript and Presenter's Notes

Title: ELEN%20E4810:%20Digital%20Signal%20Processing%20Topic%203:%20Fourier%20domain


1
ELEN E4810 Digital Signal ProcessingTopic 3
Fourier domain
  1. The Fourier domain
  2. Discrete-Time Fourier Transform (DTFT)
  3. Discrete Fourier Transform (DFT)
  4. Convolution with the DFT

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
3
Fourier Series
  • For a square wave,
  • i.e.

4
Fourier domain
  • x is equivalently described by its Fourier
    Series parameters
  • Complex form

Negative ak is equivalent to phase of p
5
Fourier analysis
  • How to find ck, argck?Inner product with
    complex sinusoids

6
Fourier analysis
  • Works if k1, k2 are positive integers,

?
7
sinc
  • 1 when x 0 0 when x rp, r ? 0, r 1,
    2, 3,...

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

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. W

FourierTransform (FT)
Inverse FourierTransform (IFT)
10
Fourier Transform
  • Mapping between two continuous functions

2p ambiguity
11
Fourier Transform of a sine
  • Assume
  • Now, since
  • ...we know
  • ...where d(x) is the Dirac delta function
    (continuous time) i.e.
  • ? ?

12
Fourier Transforms
Time Frequency
Fourier Series (FS) Continuous periodic x(t) Discrete infinite ck
Fourier Transform (FT) Continuous infinite x(t) Continuous infinite X(W)
Discrete-Time FT (DTFT) Discrete infinite xn Continuous periodic X(ejw)
Discrete FT (DFT) Discrete finite/pdc xn Discrete finite/pdc Xk


13
2. Discrete Time FT (DTFT)
  • FT defined for discrete sequences
  • Summation (not integral)
  • Discrete (normalized) frequency variable w
  • Argument is ejw, not plain w

DTFT
14
DTFT example
  • e.g. xn anmn, a lt 1
  • ?

15
Periodicity of X(ejw)
  • X(ejw) has periodicity 2p in w
  • Phase ambiguity of ejw makes it implicit

16
Inverse DTFT (IDTFT)
  • Same basic form as other IFTs
  • Note continuous, periodic X(ejw) discrete,
    infinite xn ...
  • IDTFT is actually forward Fourier Series (except
    for sign of w)

IDTFT
17
IDTFT
  • Verify by substituting in DTFT

0 unlessn l
18
sinc again
  • Same as ?cos imag jsin part cancels

?
19
DTFTs of simple sequences
  • xn dn ?
  • i.e. xn X(ejw)
  • dn ? 1

(for all w)
xn
X(ejw)
20
DTFTs of simple sequences
IDTFT
  • ? over -p lt w lt p
  • but X(ejw) must be periodic in w ?
  • If w0 0 then xn 1 ? n
  • so

21
DTFTs of simple sequences
  • From before
  • mn tricky - not finite

( a lt 1)
DTFT of 1/2
22
DTFT properties
  • Linear
  • Time shift
  • Frequency shift

delayin frequency
23
DTFT example
  • xn dn anmn-1 ? ?
  • dn a(an-1mn-1)
  • ?

? xn anmn
24
DTFT symmetry
  • If xn ? X(ejw) then...
  • x-n ? X(e-jw)
  • xn ? X(e-jw)
  • Rexn ? XCS(ejw)
  • jImxn ? XCA(ejw)
  • xcsn ? ReX(ejw)
  • xcan ? jImX(ejw)

from summation
(e-jw) ejw
conjugate symmetry cancels Im parts on IDTFT
25
DTFT of real xn
  • When xn is pure real, ? X(ejw) X(e-jw)
  • xcsn ? xevn xev-n ? XR(ejw)
    XR(e-jw)
  • xcan ? xodn -xod-n ? XI(ejw)
    -XI(e-jw)

xn real, even ? X(ejw) even, real
26
DTFT and convolution
  • Convolution
  • ?

Convolution becomesmultiplication

27
DTFT modulation
  • ModulationCould solve if gn was just
    sinusoids...

?
Dual of convolution in time
28
Parsevals relation
  • Energy in time and frequency domains are equal
  • If g h, then gg g2 energy...

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

30
EDS and autocorrelation
  • Autocorrelation of gn
  • ?
  • If gn is real, G(e-jw) G(ejw), so
  • Mag-sq of spectrum is DTFT of autoco

no phaseinfo.
31
Convolution with DTFT
  • Since
  • we can calculate a convolution by
  • finding DTFTs of g, h ? G, H
  • multiply them GH
  • IDTFT of product is result,


gn
DTFT
yn
IDTFT
hn
DTFT
32
DTFT convolution example
  • xn anmn ?
  • hn dn - adn-1
  • ?
  • yn xn hn
  • ?
  • ? yn dn i.e. ...


33
3. Discrete FT (DFT)
Discrete FT (DFT) Discrete finite/pdc xn Discrete finite/pdc Xk
  • A finite or periodic sequence has only N unique
    values, xn for 0 n lt N
  • Spectrum is completely defined by N distinct
    frequency samples
  • Divide 0..2p into N equal steps, wk 2pk/N

34
DFT and IDFT
  • Uniform sampling of DTFT spectrum
  • DFT
  • where i.e. 1/Nth of a revolution

35
IDFT
  • Inverse DFT IDFT
  • Check

Sum of complete setof rotated vectors 0 if l ?
n N if l n
36
DFT examples
  • Finite impulse
  • ?
  • Periodic sinusoid (r ? I)
  • ?

37
DFT Matrix form
  • as a matrix multiply
  • i.e.

38
Matrix IDFT
  • If
  • then
  • i.e. inverse DFT is also just a matrix,

1/NDN
39
DFT and DTFT
continuous freq w infinite xn, -?ltnlt?
DTFT
discrete freq kNw/2p finite xn, 0nltN
DFT
  • DFT samples DTFT at discrete freqs

40
DFT and MATLAB
  • MATLAB is concerned with sequences not continuous
    functions like X(ejw)
  • Instead, we use the DFT to sample X(ejw) 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
41
DTFT from DFT
  • N-point DFT completely specifies the continuous
    DTFT of the finite sequence

periodicsinc
interpolation
42
Periodic sinc
  • N when Dwk 0 (-)N when Dwk/2 p 0
    when Dwk/2 rp/N, r 1, 2, ...other values
    in-between...

43
Periodic sinc
Periodicsincinterpolation Xk?X(ejw)
44
DFT from overlength DTFT
  • If xn has more than N points, can still
    form
  • IDFT of Xk will give N point
  • How does relate to xn ?

45
DFT from overlength DTFT
1 for n-l rN, r?I 0 otherwise
all values shifted by exact multiples of N
ptsto lie in 0 n lt N
46
DFT from DTFT example
  • If xn 8, 5, 4, 3, 2, 2, 1, 1 (8 point)
  • We form Xk for k 0, 1, 2, 3by sampling
    X(ejw) at w 0, p/2, p, 3p/2
  • IDFT of Xk gives 4 pt
  • Overlap only for r -1

(N 4)
47
DFT from DTFT example
  • xn
  • xnN (r -1)
  • is the time aliased or folded down
    version of xn.

n
-1
1
2
3
4
5
6
7
8
n
-1
-2
-3
-4
-5
1
2
3
4
5
n
1
2
3
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 n0 lt N
49
Circular time shift
  • Points shifted out to the right dont disappear
    they come in from the left
  • Like a barrel shifter

delay by 2
5-pt sequence
50
Circular time reversal
  • Time reversal is tricky in modulo-N indexing -
    not reversing the sequence
  • Zero point stays fixed remainder flips

5-pt sequence made periodic
Time-reversedperiodic sequence
51
4. 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 GkHk are exact samples of
    G(ejw)H(ejw)
  • This is known as circular convolution

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

53
Circular convolution example
  • 4 pt sequences

? 1
? 2
n
? 0
? 1
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

Circulartime reversal
55
DFT properties summary
  • Circular convolution
  • Modulation
  • Duality
  • Parseval

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 gn with M-pt hnyn
    gn hn has LM-1 nonzero pts
  • Set DFT size N LM-1 ? no aliasing


57
Linear convolution w/ the DFT
  • Procedure (N L M - 1)
  • pad L-pt gn with (at least) M-1 zeros? N-pt
    DFT Gk, k 0..N-1
  • pad M-pt hn with (at least) L-1 zeros? N-pt
    DFT Hk, k 0..N-1
  • Yk GkHk, k 0..N-1
  • IDFTYk

58
Overlap-Add convolution
  • Very long gn ? break up into segments, convolve
    piecewise, overlap
  • ? bound size of DFT, processing delay
  • Make
  • Called Overlap-Add (OLA) convolution...

59
Overlap-Add convolution
hn g0n

n
hn g1n

n
hn g2n

n
valid OLA sum
hn gn

n
N
2N
3N
Write a Comment
User Comments (0)
About PowerShow.com