Академический Документы
Профессиональный Документы
Культура Документы
h(n)
FIR IIR
Determine
coefficients of With rational transfer No rational transfer
h(n) [or P(z) function function
P( z )
and Q(z)] H ( z)
P( z ) H ( z)
Q( z ) Q( z )
1 c
X ( )
0 c
c
x(n) 1 X ( )e jn d 1 e jn d
2 2
c
1 jn c e jc n e jc n sin c n
x(n) [e ]c x( n)
j 2n j 2n n
W e j We e j e j M / 2
where We e j is a real and even
Ae e j
1
2 H e e
j
W e e j
d
◦ Periodic convolution of real functions
Hossein Sameti, Dept. of Computer Eng.,
Sharif University of Technology 5
The steps in the design of FIR filters using windows are
as follows:
1. Start with the desired frequency response results in the
sinc function in time domain H d ( )
2. Compute IDTFT {H d ()} hd (n)
3. Determine the appropriate window function w(n)
4. Calculate h(n) hd (n)w(n)
A finite-length window
function
j ( )
H d ( ) H m ( )e
1 c c
H m ( )
0 otherwise e j c c
H d ( )
c c 0 otherwise
H d ( )
0 otherwise
0 1 2 3 4 5 6
n
0.3 0.3
M 1 N
Rectangular
Window
function
(Oppenheim and Schaffer, 2009)
Stop-band ripple: 2 s
Transition width: s p
(Oppenheim and Schaffer, 2009)
• What is the ideal situation?
1 e j M 1
e
M
j j n
W e
n 0 1 e j
j M / 2
sin M 1 / 2
e
sin / 2
1 0 n M
w n
0 else
Side lobes
◦ -25 dB
Hamming window
performs better
Simple equation
2n / M 0 n M /2
w n 2 2n / M M /2 n M
0 else
Side lobes
◦ -31 dB
Hamming window
performs better
Same complexity as
Hamming
1 2 n
1 cos 0 n M
w n 2 M
0 else
Hossein Sameti, Dept. of Computer Eng.,
Sharif University of Technology 29
Medium main lobe
◦ 8/M
2 n
0.54 0.46 cos 0nM
w n M
0 else
Complex equation
2 n
0.42 0.5cos M
0nM
w n 4 n
0.08cos
M
0 else
Hanning
Hamming
Blackman
I ([ (1 )] )
0
w(n) 0nM
I 0 ( )
0 otherwise
A8
3. Choose M 2
2.285
4. Choose
s 0.6
p 0.01
s 0.001
s 0.6
p 0.01
s 0.001
0.001 A 20 log10 60
5.563
0.2 M 37 Type II
filter
Use Bessel equation to get w(n)
Hossein Sameti, Dept. of Computer Eng.,
Sharif University of Technology 42
Hossein Sameti, Dept. of Computer Eng.,
Sharif University of Technology 43
Q: Does it satisfy the specs?