Docsity

Lecture Notes on Discrete Fourier Transform | ECE 161C, Study notes of Digital Signal Processing

Partial preview of the text

Download Lecture Notes on Discrete Fourier Transform | ECE 161C and more Study notes Digital Signal Processing in PDF only on Docsity!

Discrete Fourier Transform

Nuno Vasconcelos

UCSD

Fourier Transforms^ •

we started by considering the Discrete-Space FourierTransform (DSFT)

-^

the DSFT is the 2D extension of the Discrete-Time Fourier Transform

-^

note that this is a continuous function of frequency^ – inconvenient to evaluate numerically in DSP hardware^ – we need a discrete version^ – this is the 2D Discrete Fourier Transform (2D-DFT)

2 2

1 1

2 2

1 1

1

2

) , (

) (^2) (

1

] , [

] , [ ) , (

ω ω ω ω π ω ω

ω

ω

ω

ω

d d e e X n n x

e e n n x X

n j n j

n j

n j

n^

n

∫∫

∑

∑

= =

2D-DFS •^

it is the natural representation for a periodic sequence

-^

a sequence x

[n

,n 1

] is periodic of period N 2

xN 1

if

-^

note that

-^

makes no sense for a periodic signal^ – the sum will be infinite for any pair r

,r 1

  • neither the 2D DSFT or the Z-transform will work here

[^

]^

[^

]

[^

]^

2 1

2

2 1

2 1

1

2 1

,

,

,

,

,

n n N n n x

n N n x n n x

∀

=

=^ ∑ ∑

=

1

2

2

1

] , [

) , (^

n^
n
jn
jn^

r r n n x r r X

2D-DFS •^

the 2D-DFS solves this problem

•^

note that X

[k

,k 1

] is also periodic outside 2

•^

like the DSFT,^ – properties of the 2D-DFS are identical to those of the 1D-DFS^ – with the straightforward extension of separability

(^

)^

[^

]

[^

]^

[^

]^

2 2 2

(^11) 1

(^11)

(^22)

2 2 2

(^11) 1

(^11)

(^22)

n

k

j N

nk

j N

N k

N k

n

k

j N

nk

j N

N n

N n

e e k k X N N n n x

e e n n x k k X

π

π

π

π

2

2

1

1

N

k

N

k

Periodic convolution •^

to deal with this, we introduce the idea of periodicconvolution

-^

instead of the regular definition

-^

which, from now on, we refer to as linear convolution

-^

periodic convolution only considers one period of our sequences

-^

the only difference is in the summation limits

] , [ ] , [

*^

2

k n k n h k k x y

x^

k^

k

−

−

=^

∑

∑ ∞ −∞=

]

,

[ ] , [^

(^11)

(^22)

k n k n h k k x h x

N k

N k

−

−

=^

∑ ∑

o

Periodic convolution

-^

note that the sequence which results from theconvolution is also periodic

-^

it is important to remember the following– we work with a single period (the

fundamental period) to make things manageable

  • but remember that we have periodic sequences– it is like if we were peeking through a window– if we shift, or flip the sequence we need to remember that– the sequence does not simply move out of the window, but the

next period walks in!!!

  • note, that this

can make thefundamentalperiod changeconsiderably

k^1

k^2

k^1

k^2

shiftby(1,1)

Discrete Fourier Transform •^

comparing this with the DFS

[^

]^

[^

]

[^

]^

[^

]

⎧ ⎪ ⎨ ⎪⎩

<

≤

< ≤

=

⎧ ⎪ ⎨ ⎪⎩

< ≤

< ≤

=

∑ ∑

∑ ∑

otherwise

N

n

N n e e k k X N N n n x

otherwise

N

k

N k e e n n x k k X

nk j N nk j N

N k

N k

nk j N nk j N

N n

N n

0

0 0

,

1

,

0

0 0 ,

,

,

(^22) 2 (^11) 1

(^11)

(^22)

(^22) 2

(^11) 1

(^11)

(^22)

[^

]^

[^

]

[^

]^

[^

]^

(^22) 2 (^11) 1

(^11)

(^22)

(^22) 2

(^11) 1

(^11)

(^22)

,

1

,

,

,

nk j N nk j N

N k

N k

nk j N nk j N

N n

N n

e e k k X N N n n x

e e n n x k k X

π

π

π

π

∑ ∑

∑ ∑

= =

Discrete Fourier Transform •^

we see that inside the boxes the two transforms are exactly the same

-^

if we define the indicator function of the box

-^

we can write

0 0

N

k

N k

<

≤

< ≤

0 0

N

n

N n

<

≤

< ≤

[^

]^

⎧⎪ ⎨ ⎪⎩

<

≤

< ≤

=

×

otherwise

N

n

N n

n n

R

N
N

0

0 0 , 1

,^

[^

]^

[^

]^

[^

] 2 1

,

,

,^

2 1

n n R n n x n n

x^

N
N^
×

=^

[^

]^

[^

]^

[^

] 2 1

,

,

,^

2 1

k k R k k X k k X

N N^

×

=

Discrete Fourier Transform •^

this trick can be used to derive all the DFT properties

-^

e.g. what is the inverse transform of a phase shift?^ – let’s follow the steps^ – 1) periodicize: this causes the same phase shift in the DFS

[^

]^

[^

]^

[^

]^

[^

] 2 1 2 1 2 1 2 1 ,

,

,

,^

k k X k k X n n x n n x

truncate

e

periodiciz

DFS

e

periodiciz truncate

→ ←

↔

→ ← [^

]^

[^

]^

2 2 2

(^11) 1

,

,^

mk j N mk j N

e e k k X k k Y

π^

=

[^

]^

[^

]^

2 2 2

(^11) 1

,

,^

mk j N mk j N

e e k k X k k Y

π^

=

Discrete Fourier Transform

[^

]^

[^

]^

[^

]^

[^

] 2 1 2 1 2 1 2 1 ,

,

,

,^

k k X k k X n n x n n x

truncate

e

periodiciz

DFS

e

periodiciz truncate

→ ←

↔

→ ←

    1. compute the inverse DFS: it follows from the properties of the

DFS (page 142 on Lim) that we get a shift in space

    1. truncate: the inverse DFT is equal to one period of the shifted

periodic extension of the sequence

  • in summary, the new sequence is obtained by making the

original periodic, shifting, and taking the fundamental period

[^

]^

[^

] 2

2 1

1

,

,^

m n m n x n n

y^

−

−

=

[^

]^

[^

]^

[^

] 2 1 2 2 1 1 2 1 ,

,

,^

2 1

n n R m n m n x n n

y^

N
N^
×

−

−

=

Example •^

for this reason it is called a circular shift

-^

note that this is way more complicated than in 1D

-^

to get it right we really have to think in terms of theperiodic extension of the sequence

-^

it shows up in most properties of the DFT,

-^

e.g. what is the inverse DFT of the product of two DFTs?

n^1

n^2

n^1

n^2

circular shift

by (1,1)

Discrete Fourier Transform •^

we use our trick again^ – 1) periodicize:^ – 2) compute the inverse DFS: this is just the periodic convolution

[^

]^

[^

]^

[^

]^

[^

] 2 1 2 1 2 1 2 1 ,

,

,

,^

k k X k k X n n x n n x

truncate

e

periodiciz

DFS

e

periodiciz truncate

→ ←

↔

→ ←^ [^

]^

[^

]^

[^

] 2 1

2 1

,

,

,^

k k H k k X k k

Y^

=

[^

]^

[^

]^

[^

] 2 1

2 1

,

,

,^

k k H k k X k k

Y^

=

[^

]^

[^

]^

[^

] 2

1

,

,

,^

n n y n n x n n

y^

o

=

Discrete Fourier Transform •^

we therefore have the property that^ – the product of two DFTs is the^ – DFT of the circular convolution of the two sequences

-^

note that circular convolution = one period of periodicconvolution

-^

hence, there is really not much that is new^ – periodicize the sequences, and apply what we learned for the

convolution of DFSs

  • e.g.

n^2

n^1

n^2

(1)^

(2)

] , [^

n n x

(3)^

(4)

] , [^

n n h

n^1

⊗

Circular convolution •^

step 1):

express sequences in terms of

(k

, k 1

we next proceed exactly as for periodic convolution

k^1

k^2

k^1

k^2

(1)^

(2) (3)^

(4)

] , [^

k k x^

] , [^

k k h

[^

]^

[^

]^

[^

]^

[^

]

(^

)^

[^

] 2

1 2 1 2 1 2 1 2 1 ,

,

,

,

,^

2 1

n n R n n h n n x n n h n n

x^

N
N^
×

=

⊗

o