Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

DFT discrete Fourier transform, Lecture notes of Digital Signal Processing

Discrete Fourier transform, properties , formulas and concepts

Typology: Lecture notes

2020/2021

Uploaded on 03/06/2021

Harreni
Harreni 🇮🇳

1 document

1 / 20

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Discrete Fourier Transform (DFT)
Recall the DTFT:
X(ω) =
X
n=−∞
x(n)en.
DTFT is not suitable for DSP applications because
In DSP, we are able to compute the spectrum only at specific
discrete values of ω,
Any signal in any DSP application can be measured only in
a finite number of points.
A finite signal measured at Npoints:
x(n) =
0, n < 0,
y(n),0n(N1),
0, n N,
where y(n)are the measurements taken at Npoints.
EE 524, Fall 2004, # 5 1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14

Partial preview of the text

Download DFT discrete Fourier transform and more Lecture notes Digital Signal Processing in PDF only on Docsity!

Discrete Fourier Transform (DFT)

Recall the DTFT:

X(ω) =

∑^ ∞

n=−∞

x(n)e−jωn.

DTFT is not suitable for DSP applications because

  • In DSP, we are able to compute the spectrum only at specific discrete values of ω,
  • Any signal in any DSP application can be measured only in a finite number of points.

A finite signal measured at N points:

x(n) =

0 , n < 0 , y(n), 0 ≤ n ≤ (N − 1), 0 , n ≥ N,

where y(n) are the measurements taken at N points.

Sample the spectrum X(ω) in frequency so that

X(k) = X(k∆ω), ∆ω =

2 π N

X(k) =

N∑ − 1

n=

x(n)e−j^2 π^

knN DFT.

The inverse DFT is given by:

x(n) =

N

N∑ − 1

k=

X(k)ej^2 π^

knN .

x(n) =

N

N∑ − 1

k=

{N − 1

m=

x(m)e−j^2 π^

kmN

ej^2 π^

knN

N∑ − 1

m=

x(m)

N

N∑ − 1

k=

e−j^2 π^

k(m−n) N

δ(m−n)

= x(n).

Periodicity of DFT Spectrum

X(k + N ) =

N∑ − 1

n=

x(n)e−j^2 π^

(k+N )n N

(N − 1

n=

x(n)e−j^2 π^

knN

e−j^2 πn

= X(k)e−j^2 πn^ = X(k) =⇒

the DFT spectrum is periodic with period N (which is expected, since the DTFT spectrum is periodic as well, but with period 2 π).

Example: DFT of a rectangular pulse:

x(n) =

1 , 0 ≤ n ≤ (N − 1), 0 , otherwise.

X(k) =

N∑ − 1

n=

e−j^2 π^

knN = N δ(k) =⇒

the rectangular pulse is “interpreted” by the DFT as a spectral line at frequency ω = 0.

Zero Padding

What happens with the DFT of this rectangular pulse if we increase N by zero padding:

{y(n)} = {x(0),... , x(M − 1), (^0) ︸ , 0 ,... ,︷︷ 0 ︸ N −M positions

where x(0) = · · · = x(M − 1) = 1. Hence, DFT is

Y (k) =

N∑ − 1

n=

y(n)e−j^2 π^

knN

M∑ − 1

n=

y(n)e−j^2 π^

knN

sin(πkMN ) sin(π (^) Nk )

e−jπ^

k(M −1) N (^).

DFT and DTFT of a Rectangular Pulse with

Zero Padding (N = 10, M = 5)

Remarks:

  • Zero padding of analyzed sequence results in “approximating” its DTFT better,
  • Zero padding cannot improve the resolution of spectral components, because the resolution is “proportional” to 1 /M rather than 1 /N ,
  • Zero padding is very important for fast DFT implementation (FFT).

which follows easily by checking WH^ W = WWH^ = N I, where I denotes the identity matrix. Hermitian transpose:

xH^ = (xT^ )∗^ = [x(1)∗, x(2)∗,... , x(N )∗].

Also, “∗” denotes complex conjugation.

Frequency Interval/Resolution: DFT’s frequency resolution

Fres ∼

N T

[Hz]

and covered frequency interval

∆F = N ∆Fres =

T

= Fs [Hz].

Frequency resolution is determined only by the length of the observation interval, whereas the frequency interval is determined by the length of sampling interval. Thus

  • Increase sampling rate =⇒ expand frequency interval,
  • Increase observation time =⇒ improve frequency resolution.

Question: Does zero padding alter the frequency resolution?

Answer: No, because resolution is determined by the length of observation interval, and zero padding does not increase this length.

Example (DFT Resolution): Two complex exponentials with two close frequencies F 1 = 10 Hz and F 2 = 12 Hz sampled with the sampling interval T = 0. 02 seconds. Consider various data lengths N = 10, 15 , 30 , 100 with zero padding to 512 points.

DFT with N = 10 and zero padding to 512 points. Not resolved: F 2 − F 1 = 2 Hz < 1 /(N T ) = 5 Hz.

DFT with N = 100 and zero padding to 512 points. Resolved: F 2 − F 1 = 2 Hz > 1 /(N T ) =

  1. 5 Hz.

DFT Interpretation Using

Discrete Fourier Series

Construct a periodic sequence by periodic repetition of x(n) every N samples:

{x˜(n)} = {... , x ︸ (0),... , x︷︷ (N − 1)︸

{x(n)}

, x ︸ (0),... , x︷︷ (N − 1)︸ {x(n)}

The discrete version of the Fourier Series can be written as

x ˜(n) =

k

Xkej^2 π^

knN

N

k

X^ ˜(k)ej^2 π^ knN^ =^1 N

k

X^ ˜(k)W −kn,

where X˜(k) = N Xk. Note that, for integer values of m, we have

W −kn^ = ej^2 π^

knN = ej^2 π^

(k+mN )n N (^) = W −(k+mN^ )n.

As a result, the summation in the Discrete Fourier Series (DFS) should contain only N terms:

x ˜(n) =

N

N∑ − 1

k=

X^ ˜(k)ej^2 π^ knN^ DFS.

  • DFS and DFT pairs are identical, except that

− DFT is applied to finite sequence x(n), − DFS is applied to periodic sequence x˜(n).

  • Conventional (continuous-time) FS vs. DFS

− CFS represents a continuous periodic signal using an infinite number of complex exponentials, whereas − DFS represents a discrete periodic signal using a finite number of complex exponentials.

DFT: Properties

Linearity

Circular shift of a sequence: if X(k) = DFT {x(n)} then

X(k)e−j^2 π^

kmN = DFT {x((n − m) mod N )}

Also if x(n) = DFT −^1 {X(k)} then

x((n − m) mod N ) = DFT −^1 {X(k)e−j^2 π^

kmN }

where the operation mod N denotes the periodic extension x ˜(n) of the signal x(n):

x ˜(n) = x(n mod N ).

= W km

N∑ − 1

n=

x((n − m)modN )W k(n−m)modN

= W kmX(k),

where we use the facts that W k(lmodN^ )^ = W kl^ and that the order of summation in DFT does not change its result.

Similarly, if X(k) = DFT {x(n)}, then

X((k − m)modN ) = DFT {x(n)ej^2 π^

mnN }.

DFT: Parseval’s Theorem

N∑ − 1

n=

x(n)y∗(n) =

N

N∑ − 1

k=

X(k)Y∗(k)

Using the matrix formulation of the DFT, we obtain

yH^ x =

N

W H^ Y

)H (

N

W H^ Y

N 2

YH^ W W ︸ ︷︷ ︸ H

N I

X =

N

YH^ X.

DFT: Circular Convolution

If X(k) = DFT {x(n)} and Y (k) = DFT {y(n)}, then

X(k)Y (k) = DFT {{x(n)} ~ {y(n)}}

Here, ~ stands for circular convolution defined by

{x(n)} ~ {y(n)} =

N∑ − 1

m=

x(m)y((n − m) mod N ).

DFT {{x(n)} ~ {y(n)}}

N∑ − 1

n=

[∑N − 1

m=0 x(m)y((n^ −^ m) mod^ N^ )

]

{x(n)}~{y(n)}

W kn

N∑ − 1

m=

[∑

N − 1 n=0 y((n^ −^ m) mod^ N^ )W^

kn

]

Y (k)W km

x(m)

= Y (k)

N∑ − 1

m=

x(m)W km ︸ ︷︷ ︸ X(k)

= X(k)Y (k).