Professional Documents
Culture Documents
Fixed Window Functions Fixed Window Functions
Fixed Window Functions Fixed Window Functions
• Using a tapered window causes the height • Plots of magnitudes of the DTFTs of these
of the sidelobes to diminish, with a windows for M = 25 are shown below:
corresponding increase in the main lobe 0
Rectangular window
0
Hann window
Gain, dB
Gain, dB
-60 -60
• Hann:
w[ n] = 0.5 + 0.5cos( πn ) , − M ≤ n ≤ M
-80 -80
-100 -100
0 0.2 0.4 0.6 0.8 1
M 0 0.2 0.4
ω/π
0.6 0.8 1
ω/π
w[ n] = 0.54 + 0.46cos( π n) , − M ≤ n ≤ M
0 0
-20 -20
M -40 -40
Gain, dB
Gain, dB
• Blackman: -60 -60
M M -100 -100
−M ≤n≤M
0 0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1
1 2 ω/π ω/π
Copyright © 2005, S. K. Mitra Copyright © 2005, S. K. Mitra
1
Fixed Window Functions Fixed Window Functions
• To ensure a fast transition from passband to • In the case of rectangular, Hann, Hamming,
stopband, window should have a very small and Blackman windows, the value of ripple
main lobe width does not depend on filter length or cutoff
• To reduce the passband and stopband ripple frequency ωc , and is essentially constant
δ, the area under the sidelobes should be • In addition,
very small ∆ω ≈ c
M
• Unfortunately, these two requirements are where c is a constant for most practical
contradictory purposes
7 8
Copyright © 2005, S. K. Mitra Copyright © 2005, S. K. Mitra
-50 -50
associated with an increase in the width of
-100 -100 the transition band
0 0.2 0.4
ω/π
0.6 0.8 1 0 0.2 0.4
ω/π
0.6 0.8 1
• A decrease in the sidelobe amplitude results
Lowpass Filter Designed Using Blackman window
0
in an increase in the stopband attenuation
Gain, dB
-50
-100
2
Adjustable Window Functions Adjustable Window Functions
• Dolph-Chebyshev Window - • Dolph-Chebyshev window can be designed
M with any specified relative sidelobe level
w[n] = 1 [1γ + 2 ∑ Tk (β cos k ) cos 2nkπ ],
2M + 1 k =1 2M + 1 2M + 1 while the main lobe width adjusted by
−M ≤n≤M choosing length appropriately
where amplitude of sidelobe
γ= • Filter order is estimated using
main lobe amplitude 2.056α s − 16.4
β = cosh( 1 cosh −1 1γ ) N=
2M 2.85( ∆ω)
and
⎧ cos(l cos −1 x ), x ≤1 where ∆ω is the normalized transition
Tl ( x) = ⎨ −1 bandwidth, e.g, for a lowpass filter
⎩cosh(l cosh x), x > 1 ∆ω = ωs − ω p
13 14
Copyright © 2005, S. K. Mitra Copyright © 2005, S. K. Mitra
-40
smallest main lobe width compared to other
-60 windows resulting in filters with the
-80
0 0.2 0.4 0.6 0.8 1
smallest transition band
ω/π
15 16
Copyright © 2005, S. K. Mitra Copyright © 2005, S. K. Mitra
3
FIR Filter Design Example FIR Filter Design Example
• Specifications: ω p = 0.3π , ωs = 0.5π , sin(0.4π n)
• Hence ht [ n] = πn ⋅ w[n], − 12 ≤ n ≤ 12
α s = 40 dB
where w[n] is the n-th coefficient of a
• Thus ωc = (ω p + ωs ) / 2 = 0.4π
length-25 Kaiser window with β = 3.3953
δ s = 10−α s / 20 = 0.01 Kaiser Window Lowpass filter designed with Kaiser window
32 -20 -20
N= = 22.2886
Gain, dB
Gain, dB
2.285(0.2π)
-40 -40
-60 -60
19 20
Copyright © 2005, S. K. Mitra Copyright © 2005, S. K. Mitra
1 P = 1, N = 40
P = 2, N = 60
0.8
Magnitude
0.6
0.4
0.2
0
0 0.2 0.4 0.6 0.8 1
ω/π
23
Copyright © 2005, S. K. Mitra