DSP Part 2 1649252714
DSP Part 2 1649252714
com
EE6403 DISCRETE TIME SYSTEMS & SIGNAL PROCESSING
UNIT-4
Any signal can be decomposed in terms of sinusoidal (or complex exponential) components. Thus
the analysis of signals can be done by transforming time domain signals into frequency domain and
vice-versa. This transformation between time and frequency domain is performed with the help of
Fourier Transform(FT) But still it is not convenient for computation by DSP processors hence Discrete
Fourier Transform(DFT) is used.
Time domain analysis provides some information like amplitude at sampling instant but does not
convey frequency content & power, energy spectrum hence frequency domain analysis is used.
For Discrete time signals x(n) , Fourier Transform is denoted as x(ω) & given by
n=-∞
n=0
IDFT is given as
1 FT x(ω) is the continuous function DFT x(k) is calculated only at discrete values of ω.
of x(n). Thus DFT is discrete in nature.
Tutorial problems:
Q) Prove that FT x(ω) is periodic with period 2∏.
Q) Determine FT of x(n)= an u(n) for -1< a < 1.
Q) Determine FT of x(n)= A for 0 ≤ n ≤ L-1.
For calculation of DFT & IDFT two different methods can be used. First method is using mathematical
equation & second method is 4 or 8 point DFT. If x(n) is the sequence of N samples then consider WN=
e –j2 ∏ / N (twiddle factor)
k=0 W4 0 W4 0 W4 0 W4 0
[WN] = W4 0 W4 1 W4 2 W4 3
k=2 W4 0 W4 2 W4 4 W4 6
k=3 W4 0 W4 3 W4 6 W4 9
1 1 1 1
[WN] = 1 –j -1 j
1 -1 1 -1
1 j -1 -j
SCE www.vidyarthiplus.com
40 DEPT OF EEE
www.vidyarthiplus.com
EE6403 DISCRETE TIME SYSTEMS & SIGNAL PROCESSING
Tutorial problems:
Q) Compute DFT of x(n) = {0,1,2,3} Ans: x4=[6, -2+2j, -2, -2-2j ]
Q) Compute DFT of x(n) = {1,0,0,1} Ans: x4=[2, 1+j, 0, 1-j ]
Q) Compute DFT of x(n) = {1,0,1,0} Ans: x4=[2, 0, 2, 0 ]
Q) Compute IDFT of x(k) = {2, 1+j, 0, 1-j } Ans: x4=[1,0,0,1]
N-1
N-1
x(n) = 1/N ∑ X (k)e j2 ∏ kn / N
n=0 n=0
4 Thus DFT is given by In DFT and IDFT difference is of factor 1/N & sign
X(k)= [WN][xn] of exponent of twiddle factor.
Thus
x(n)= 1/N [ WN]-1[XK]
SCE www.vidyarthiplus.com
41 DEPT OF EEE
www.vidyarthiplus.com
EE6403 DISCRETE TIME SYSTEMS & SIGNAL PROCESSING
PROPERTIES OF DFT
DFT
x(n) x(k)
N
1. Periodicity
Let x(n) and x(k) be the DFT pair then if
x(n+N) = x(n) for all n then
X(k+N) = X(k) for all k
Thus periodic sequence xp(n) can be given as
∞
xp(n) = ∑ x(n-lN)
l=-∞
2. Linearity
The linearity property states that if
DFT
x1(n) X1(k) And
N
DFT
x2(n) X2(k) Then
N
Then DFT
a1 x1(n) + a2 x2(n) a1 X1(k) + a2 X2(k)
N
DFT of linear combination of two or more signals is equal to the same linear combination of DFT of
individual signals.
A) A sequence is said to be circularly even if it is symmetric about the point zero on the circle. Thus
X(N-n) = x(n)
B) A sequence is said to be circularly odd if it is anti symmetric about the point zero on the circle. Thus
X(N-n) = - x(n)
D) Anticlockwise direction gives delayed sequence and clockwise direction gives advance sequence.
Thus delayed or advances sequence x`(n) is related to x(n) by the circular shift.
SCE www.vidyarthiplus.com
42 DEPT OF EEE
www.vidyarthiplus.com
EE6403 DISCRETE TIME SYSTEMS & SIGNAL PROCESSING
This property states that if the sequence is real and even x(n)= x(N-n) then DFT becomes
N-1
n=0
This property states that if the sequence is real and odd x(n)=-x(N-n) then DFT becomes
N-1
n=0
This property states that if the sequence is purely imaginary x(n)=j X I(n) then DFT becomes
N-1
n=0
N-1
n=0
5. Circular Convolution
The Circular Convolution property states that if
DFT
x1(n) X1(k) And
N
DFT
x2(n) X2(k) Then
N
DFT
Then x1(n) x2(n) x1(k) x2(k)
N
It means that circular convolution of x1(n) & x2(n) is equal to multiplication of their DFT‘s.
Thus circular convolution of two periodic discrete signal with period N is given by
SCE www.vidyarthiplus.com
43 DEPT OF EEE
www.vidyarthiplus.com
EE6403 DISCRETE TIME SYSTEMS & SIGNAL PROCESSING
N-1
n=0
Multiplication of two sequences in time domain is called as Linear convolution while Multiplication of
two sequences in frequency domain is called as circular convolution. Results of both are totally different
but are related with each other.
DFT
x(n) x(k) x(k)*h(k) x(n)*h(n)
IDFT
*
DFT h(n) h(k)
There are two different methods are used to calculate circular convolution
1) Graphical representation form
2) Matrix approach
4 Linear Convolution of two signals returns N-1 Circular convolution returns same number of
elements where N is sum of elements in both elements that of two signals.
sequences.
Tutorial problems:
Q) The two sequences x1(n)={2,1,2,1} & x2(n)={1,2,3,4}. Find out the sequence x3(m) which is equal
to circular convolution of two sequences. Ans: X3(m)={14,16,14,16}
SCE www.vidyarthiplus.com
44 DEPT OF EEE
www.vidyarthiplus.com
EE6403 DISCRETE TIME SYSTEMS & SIGNAL PROCESSING
Q) x1(n)={1,1,1,1,-1,-1,-1,-1} & x2(n)={0,1,2,3,4,3,2,1}. Find out the sequence x3(m) which is equal to
circular convolution of two sequences. Ans: X3(m)={-4,-8,-8,-4,4,8,8,4}
Q) Perform Linear Convolution of x(n)={1,2} & h(n)={2,1} using DFT & IDFT.
Q) Perform Linear Convolution of x(n)={1,2,2,1} & h(n)={1,2,3} using 8 Pt DFT & IDFT.
6. Multiplication
The Multiplication property states that if
DFT
X1(n) x1(k) and
N
DFT
X2(n) x2(k) then
N
DFT
Then x1(n) x2(n) 1/N x1(k) x2(k)
N
It means that multiplication of two sequences in time domain results in circular convolution of their
DFT‘s in frequency domain.
DFT
Then x((-n))N = x(N-n) x((-k))N = x(N-k)
N
It means that the sequence is circularly folded its DFT is also circularly folded.
Thus shifting the sequence circularly by ‗l‘ samples is equivalent to multiplying its DFT by
e –j2 ∏ k l / N
SCE www.vidyarthiplus.com
45 DEPT OF EEE
www.vidyarthiplus.com
EE6403 DISCRETE TIME SYSTEMS & SIGNAL PROCESSING
N-1
This means multiplication of DFT of one sequence and conjugate DFT of another sequence is equivalent
to circular cross-correlation of these sequences in time domain.
N-1
SCE www.vidyarthiplus.com
46 DEPT OF EEE
www.vidyarthiplus.com
EE6403 DISCRETE TIME SYSTEMS & SIGNAL PROCESSING
This equation give energy of finite duration sequence in terms of its frequency components.
APPLICATION OF DFT
Consider that input sequence x(n) of Length L & impulse response of same system is h(n) having M
samples. Thus y(n) output of the system contains N samples where N=L+M-1. If DFT of y(n) also
contains N samples then only it uniquely represents y(n) in time domain. Multiplication of two DFT‘s is
equivalent to circular convolution of corresponding time domain sequences. But the length of x(n) &
h(n) is less than N. Hence these sequences are appended with zeros to make their length N called as
―Zero padding‖. The N point circular convolution and linear convolution provide the same sequence.
Thus linear convolution can be obtained by circular convolution. Thus linear filtering is provided by
DFT.
When the input data sequence is long then it requires large time to get the output sequence. Hence other
techniques are used to filter long data sequences. Instead of finding the output of complete input
sequence it is broken into small length sequences. The output due to these small length sequences are
computed fast. The outputs due to these small length sequences are fitted one after another to get the
final output response.
UNIT- 5
Efficient Computation of the DFT: FFT algorithms
The N-point DFT of a sequence x(n) converts the time domain N-point sequence x(n) to a
frequency domain N-point sequence X(k). The direct computation of an N-point DFT requires N
x N complex multiplications and N(N – 1) complex additions. Many methods were developed
for reducing the number of calculations involved. The most popular of these is the Fast Fourier
Transform (FFT), a method developed by Cooley and Turkey. The FFT may be defined as an
algorithm (or a method) for computing the DFT efficiently (with reduced number of
calculations). The computational efficiency is achieved by adopting a divide and conquer
approach. This approach is based on the decomposition of an N-point DFT into successively
smaller DFTs and then combining them to give the total transform. Based on this basic
approach, a family of computational algorithms were developed and they are collectively
known as FFT algorithms. Basically there are two FFT algorithms; Decimation- in-time (DIT) FFT
algorithm and Decimation-in-frequency (DIF) FFT algorithm. In this chapter, we discuss DIT FFT
and DIF FFT algorithms and the computation of DFT by these methods.
Direct Computation of DFT: