Discrete-Time Filter Design by Windowing: Quote of The Day
Discrete-Time Filter Design by Windowing: Quote of The Day
Content and Figures are from Discrete-Time Signal Processing, 2e by Oppenheim, Shafer, and Buck, ©1999-2000 Prentice Hall Inc.
Filter Design by Windowing
• Simplest way of designing FIR filters
• Method is all discrete-time no continuous-time involved
• Start with ideal frequency response
Hd e hd ne
j
n
j n
hd n
1
2
Hd e j
e j n
d
• Choose ideal frequency response as desired response
• Most ideal impulse responses are of infinite length
• The easiest way to obtain a causal FIR filter from ideal is
hd n 0 n M
hn
0 else
• More generally
1 0 n M
hn hd nwn where wn
0 else
• Demo
• Simplest window
possible
1 0nM
wn
0 else
• Side lobs
– -25 dB
• Hamming window
performs better
• Simple equation
2n / M 0 n M/2
wn 2 2n / M M / 2 n M
0 else
• Side lobs
– -31 dB
• Hamming window
performs better
• Same complexity as
Hamming
1 2n
1 cos 0 n M
wn 2 M
0 else
2n
0.54 0.46 cos 0nM
wn M
0 else
• Complex equation
2n 4n
0.42 0.5 cos 0.08 cos 0nM
wn M M
0 else
• Windows Demo
wM n 0 n M
wn
0 else
• So their Fourier transform are of the form
W e j We e j e jM / 2
where We e j is a real and even
• Will keep symmetry properties of the desired impulse response
• Assume symmetric desired response
Hd e j He e j e jM / 2
• With symmetric window
Ae e j
1
2
He e
j
W e
j
d
– Periodic convolution of real functions
2
I0 1 n M / 2
M/2
wn 0nM
I0
0 else
0 A 21
Approximation Error