Professional Documents
Culture Documents
h[n] = ht [n − M ] – c 0 c
• The causal FIR filter h[n] has the same • Ideal highpass filter -
magnitude response as ht [n] and its phase HHP (e j )
⎧ 1 − ωc , n=0
response has a linear phase shift of ωM ⎪ π
radians with respect to that of ht [n]
1
hHP [n] = ⎨
sin(ω n)
⎪− πnc , n ≠ 0
5 6
– c 0 c
⎩
Copyright © 2005, S. K. Mitra Copyright © 2005, S. K. Mitra
1
Impulse Responses of Ideal
Impulse Responses of Ideal
Filters
Filters
• Ideal bandstop filter -
• Ideal bandpass filter - HBS (e j )
HBP (e j )
1
–1
– c2 – c1 c1 c2
– c2 – c1 c1 c2
⎧ j, − π < ω < 0
H HT (e jω ) = ⎨
A5
A1
A4
ωk −1 ≤ ω ≤ ωk , ⎩− j , 0 < ω < π
A2
A3
0 1 2 3 4 k = 1, 2,K, L
⎧ 0, for n even
L sin(ω n) hHT [n] = ⎨
hML [n] = ∑ ( Al − Al +1) ⋅ πnL ⎩2/π n, for n odd
l =1
9 10
Copyright © 2005, S. K. Mitra Copyright © 2005, S. K. Mitra
⎧⎪ 0, n=0 1
N = 60
Magnitude
hDIF [ n] = ⎨cos π n
⎪⎩ n , n ≠ 0 0.5
0
0 0.2 0.4 0.6 0.8 1
11 12 ω/π
Copyright © 2005, S. K. Mitra Copyright © 2005, S. K. Mitra
2
Gibbs Phenomenon Gibbs Phenomenon
• As can be seen, as the length of the lowpass • Gibbs phenomenon can be explained by
filter is increased, the number of ripples in treating the truncation operation as an
both passband and stopband increases, with windowing operation:
a corresponding decrease in the ripple ht [n] = hd [n] ⋅ w[ n]
widths • In the frequency domain
• Height of the largest ripples remain the π
H t ( e jω ) = jϕ j ( ω− ϕ)
1
same independent of length 2π ∫ H d (e ) Ψ ( e ) dϕ
−π
• where H t (e jω ) and Ψ (e jω ) are the DTFTs
• Similar oscillatory behavior observed in the
magnitude responses of the truncated
of ht [n] and w[n] , respectively
13 versions of other types of ideal filters 14
Copyright © 2005, S. K. Mitra Copyright © 2005, S. K. Mitra
Gibbs Phenomenon
Gibbs Phenomenon
• Thus H t (e jω ) is obtained by a periodic
continuous convolution of H d (e jω ) with • If Ψ (e jω ) is a very narrow pulse centered at
Ψ (e jω ) ω = 0 (ideally a delta function) compared to
variations in H d (e jω ), then H t (e jω ) will
approximate H d (e jω ) very closely
• Length 2M+1 of w[n] should be very large
• On the other hand, length 2M+1 of ht [n]
should be as small as possible to reduce
computational complexity
15 16
Copyright © 2005, S. K. Mitra Copyright © 2005, S. K. Mitra
wR [n] = ⎨
30
⎩0, otherwise 20
M = 10 main lobe
Amplitude
3
Gibbs Phenomenon Gibbs Phenomenon
• Main lobe of ΨR (e jω ) characterized by its • Rectangular window has an abrupt transition
width 4π /( 2 M + 1) defined by first zero to zero outside the range − M ≤ n ≤ M , which
crossings on both sides of ω = 0
results in Gibbs phenomenon in H t (e jω )
• As M increases, width of main lobe
decreases as desired • Gibbs phenomenon can be reduced either:
• Area under each lobe remains constant (1) Using a window that tapers smoothly to
while width of each lobe decreases with an zero at each end, or
increase in M (2) Providing a smooth transition from
• Ripples in H t (e jω ) around the point of passband to stopband in the magnitude
discontinuity occur more closely but with specifications
no decrease in amplitude as M increases
19 20
Copyright © 2005, S. K. Mitra Copyright © 2005, S. K. Mitra