Uploaded by vrp1462002

5.1 DFT as a filtering tool

advertisement
Digital Signal Processing (EE313):
DFT as a filtering tool
Krishnan C.M.C
Assistant Professor, E&E,
NITK Surathkal
2
Significance of Linear Convolution
Filter
π‘₯(𝑛)
β„Ž(𝑛)
𝑦(𝑛)
Linear Filtering
𝑦 𝑛 = π‘₯ 𝑛 ∗β„Ž 𝑛
𝑦 𝑛 = ෍ π‘₯ π‘š β„Ž(𝑛 − π‘š)
π‘š
DTFT
π‘₯(𝑛)
𝑋(πœ”)
𝐻(πœ”)
I DTFT
×
EE313, Dept. of E & E, NITK Surathkal
π‘Œ(πœ”)
𝑦(𝑛)
3
Linear Convolution with DFT
DTFT
𝑋(πœ”)
π‘₯(𝑛)
𝐻(πœ”)
I DTFT
×
𝑦(𝑛) = ෍ π‘₯ π‘š β„Ž(𝑛 − π‘š)
π‘Œ(πœ”)
π‘š
DFT
π‘₯(𝑛)
𝑋(π‘˜)
𝐻(π‘˜)
I DFT
×
π‘Œ(π‘˜)
EE313, Dept. of E & E, NITK Surathkal
=
෍
π‘š=0→𝑁−1
π‘₯ π‘š β„Ž 𝑛−π‘š
𝑁
4
Linear Convolution
Linear convolution of two sequencesβ„Ž 𝑛 = 1↑ , −1,2 (impulse response),
π‘₯ 𝑛 = 0↑ , 1,2,3,4,5 (ramp input) demonstrated graphically
π‘₯(π‘š)
0
1
2
πŸ‘
4
5
𝑦 𝑛 = ෍ π‘₯ π‘š β„Ž(𝑛 − π‘š)
(𝑛 = 0)
π‘š
β„Ž(−π‘š) 2 −1
(𝑛 = 1)
β„Ž(1 − π‘š) 2
1
𝑦(0) = 0 × 1 = 𝟎
−1
𝑦 1 = 0 × −1 + 1 × 1 = 𝟏
1
(𝑛 = 6)
2
β„Ž(6 − π‘š)
−1 1
𝑦 6 = 4 × 2 + 5 × −1 = πŸ‘
2
𝑦 7 = 5 × 2 = 𝟏𝟎
(𝑛 = 7)
β„Ž(7 − π‘š)
π‘₯(𝑛)
𝑦(𝑛)
0
1
2
πŸ‘
4
5
0
1
1
πŸ‘
5
7
EE313, Dept. of E & E, NITK Surathkal
−1 1
3
10
Total length (6+3-1=8 samples)
Tail (3-1=2 samples)
5
Linear convolution using circular convolution
β„Ž 𝑛 = 1↑ , −1,2
π‘₯ 𝑛 = 0↑ , 1,2,3,4,5
𝑋(π‘˜)
6 − point
×
β„Ž(𝑛) DFT
𝐻(π‘˜)
π‘₯(𝑛)
π‘₯(𝑛)
0
1
2
πŸ‘
4
5
𝑦(𝑛)
0
1
1
πŸ‘
5
7
6 − point
I DFT
π‘Œ(π‘˜)
3
10
𝑦1 (𝑛)
0 1 1 πŸ‘ 5 7 3 10
6 samples
0 1 1 πŸ‘ 5 7 3 10
3 11 1 πŸ‘ 5 7
EE313, Dept. of E & E, NITK Surathkal
0 1 1 πŸ‘ 5 7
6
Linear convolution using circular convolution
β„Ž 𝑛 = 1↑ , −1,2
π‘₯ 𝑛 = 0↑ , 1,2,3,4,5
π‘₯(𝑛)
0
1
2
πŸ‘
4
5
𝑦(𝑛)
0
1
1
πŸ‘
5
7
πŸ‘ 𝟏𝟏 1
πŸ‘
5
7
3
10
(8-point)
π‘¦π‘Žπ‘™π‘–π‘Žπ‘  (𝑛)
Points to note:
(6-point)
Option-1 • For a circular convolution (DFT multiplication) to mimic linear
convolution (DTFT multiplication)
 Increase the N of the N-point DFT to 𝑁 = 𝐿 + 𝑀 − 1 (here 6 + 3 − 1 = 8)
 By giving “space” (i.e., 𝑁 ≥ 𝐿 + 𝑀 − 1) you avoid time domain alias.
Option-2 • If you want to keep 𝑁 = 𝐿, the output will have Time domain alias.
 First M-1 samples of output 𝑦 𝑛 will be wrong
 The contribution of the last M-1 samples of input π‘₯ 𝑛 will be forgotten.
EE313, Dept. of E & E, NITK Surathkal
Download