Linear Phase Filters
Linear Phase Filters
Linear Phase Filters
Delay functions
The frequency response is defined as
𝑗𝜔 𝑗𝜔 𝑗∠𝐻 𝑒 𝑗𝜔
𝐻 𝑒 = 𝐻 𝑒 𝑒 = 𝐻 𝑒 𝑗𝜔 𝑒 𝑗𝜃 𝜔
𝑁−1
centre of symmetry at 𝑛 =
2
9−1
𝑛= =4
2
ℎ 𝑛 = ℎ(𝑁 − 1 − 𝑛) ;
𝑁−1
where 𝑛=0,1,2…… for 𝑵 odd
2
𝒏 = 0,1,2,3,4
𝒉 𝟎 = ℎ 9 − 1 − 0 = 𝒉(𝟖)
𝒉 𝟏 = ℎ 9 − 1 − 1 = 𝒉(𝟕)
𝒉 𝟐 = ℎ 9 − 1 − 2 = 𝒉(𝟔)
𝒉 𝟑 = ℎ 9 − 1 − 3 = 𝒉(𝟓)
𝒉 𝟒 = ℎ 9 − 1 − 4 = 𝒉(𝟒)
𝑁 = even and symmetric impulse response
𝑁=8
𝑁−1
centre of symmetry at 𝑛 =
2
8−1
𝑛= = 3.5
2
ℎ 𝑛 = ℎ(𝑁 − 1 − 𝑛) ;
𝑁
where 𝑛=0,1,2…… − 1 for 𝑵 even
2
𝒏 = 0,1,2,3
𝒉 𝟎 = ℎ 8 − 1 − 0 = 𝒉(𝟕)
𝒉 𝟏 = ℎ 8 − 1 − 1 = 𝒉(𝟔)
𝒉 𝟐 = ℎ 8 − 1 − 2 = 𝒉(𝟓)
𝒉 𝟑 = ℎ 8 − 1 − 3 = 𝒉(𝟒)
If a filter satisfies the condition given in 𝐸𝑞(2) it will have a constant
group delay only
For condition in 𝐸𝑞(2) to be satisfied
− the impulse response of the filter must have negative symmetry (anti-
𝑵−𝟏
symmetry) with centre of symmetry at 𝒏 =
𝟐
𝑁−1
ℎ 𝑛 = −ℎ(𝑁 − 1 − 𝑛) ; where 𝑛=0,1,2…… for 𝑁 odd
2
𝑁
and 𝑛=0,1,2…… − 1 for 𝑁 even
2
ℎ 𝑛 = −ℎ(𝑁 − 1 − 𝑛) ;
𝑁−1
where 𝑛=0,1,2…… for 𝑵 odd
2
𝒏 = 0,1,2,3,4
𝒉 𝟎 = −ℎ 9 − 1 − 0 = −𝒉(𝟖)
𝒉 𝟏 = −ℎ 9 − 1 − 1 = −𝒉(𝟕)
𝒉 𝟐 = −ℎ 9 − 1 − 2 = −𝒉(𝟔)
𝒉 𝟑 = −ℎ 9 − 1 − 3 = −𝒉(𝟓)
𝑁−1
𝒉 𝟒 = −ℎ 9 − 1 − 4 = −𝒉 𝟒 = 𝟎 becoz 𝑛=0 ℎ 𝑛 =0
𝑁−1
Note that 𝑛=0 ℎ 𝑛 = 0 for filters with antisymetric impulse response
𝑁 = even and antisymmetric impulse response
𝑁=8
𝑁−1
centre of symmetry at 𝑛 =
2
8−1
𝑛= = 3.5
2
ℎ 𝑛 = −ℎ(𝑁 − 1 − 𝑛) ;
𝑁
where 𝑛=0,1,2…… − 1 for 𝑵 even
2
𝒏 = 0,1,2,3
𝒉 𝟎 = −ℎ 8 − 1 − 0 = −𝒉(𝟕)
𝒉 𝟏 = −ℎ 8 − 1 − 1 = −𝒉(𝟔)
𝒉 𝟐 = −ℎ 8 − 1 − 2 = −𝒉(𝟓)
𝒉 𝟑 = −ℎ 8 − 1 − 3 = −𝒉(𝟒)
𝑁−1
Note that 𝑛=0 ℎ 𝑛 = 0 for filters with antisymetric impulse response
Linear phase and symmetric impulse response
For FIR filters with linear phase
𝜃 𝜔 = −𝛼𝜔; −𝜋 ≤ 𝜔 ≤ 𝜋 … … … … … … . 𝐸𝑞(3)
From the definition of phase delay and group delay
−𝜃 𝜔
𝜏𝑝 = =𝛼
𝜔
− ⅆ𝜃 𝜔
𝜏𝑔 = =𝛼
ⅆ𝜔
𝑁−1
𝐻 𝑒 𝑗𝜔 = 𝑛=0 ℎ(𝑛)𝑒 −𝑗𝜔𝑛 = ±𝐻(𝑒 𝑗𝜔 )𝑒 𝑗𝜃 𝜔 = ±𝐻(𝑒 𝑗𝜔 )𝑒 −𝑗𝛼𝜔
𝑁−1
Cross multiplying →
𝑁−1 𝑁−1
sin 𝛼𝜔 𝑛=0 ℎ 𝑛 𝑐𝑜𝑠𝜔𝑛 − 𝑐𝑜𝑠𝛼𝜔 𝑛=0 ℎ 𝑛 𝑠𝑖𝑛𝜔𝑛 = 0
𝑁−1
ℎ 𝑛 sin 𝛼 − 𝑛 𝜔 = 0 … … … … … … … 𝐸𝑞(6)
𝑛=0
ℎ 𝑛 = ℎ(𝑁 − 1 − 𝑛) for 0 ≤ 𝑛 ≤ 𝑁 − 1
Proof
𝑁−1
ℎ 𝑛 sin 𝛼 − 𝑛 𝜔
𝑛=0
𝑁−1
𝑁−1
= ℎ 𝑛 sin −𝑛 𝜔
2
𝑛=0
𝑁−1
𝑁−1−𝑛−𝑛
= ℎ 𝑛 sin 𝜔
2
𝑛=0
ℎ 𝑛 = ℎ(𝑁 − 1 − 𝑛) → 𝑁 − 1 − 𝑛 = 𝑛
𝑁−1
𝑛−𝑛
= ℎ 𝑛 sin 𝜔
2
𝑛=0
𝑁−1
= ℎ 𝑛 sin 0
𝑛=0
=0
Linear phase and antisymmetric impulse response
For FIR filters with linear phase
𝜃 𝜔 = −𝛼𝜔 + 𝛽; −𝜋 ≤ 𝜔 ≤ 𝜋 … … … … … … . 𝐸𝑞(7)
From the definition of phase delay and group delay
−𝜃 𝜔 𝛽
𝜏𝑝 = =𝛼−
𝜔 𝜔
− ⅆ𝜃 𝜔
𝜏𝑔 = =𝛼
ⅆ𝜔
𝑁−1
𝐻 𝑒 𝑗𝜔 = 𝑛=0 ℎ(𝑛)𝑒 −𝑗𝜔𝑛
= ±𝐻(𝑒 𝑗𝜔 )𝑒 𝑗𝜃 𝜔
= ±𝐻(𝑒 𝑗𝜔 )𝑒 𝑗(−𝛼𝜔+𝛽)
𝑁−1
Cross multiplying →
𝑁−1 𝑁−1
ℎ(𝑛)𝑠𝑖𝑛 𝛽 − (𝛼 − 𝑛)𝜔 = 0
𝑛=0
𝑁−1
𝜋
𝛽= → ℎ 𝑛 𝑐𝑜𝑠 (𝛼 − 𝑛)𝜔 = 0 … … . . 𝐸𝑞(10)
2
𝑛=0
𝐸𝑞(10) is satisified when
𝑁−1
𝛼= and
2
ℎ 𝑛 = −ℎ(𝑁 − 1 − 𝑛) for 0 ≤ 𝑛 ≤ 𝑁 − 1
Proof
ℎ 𝑛 = −ℎ 𝑁 − 1 − 𝑛 → 𝑛 = 𝑁 − 1 − 𝑛
𝑁−1
𝑁−1
𝐹𝑟𝑜𝑚 𝐸𝑞(10) ℎ 𝑛 𝑐𝑜𝑠 ( − 𝑛)𝜔
2
𝑛=0
𝑁−1 𝑁−1
𝑁−1−𝑛−𝑛 𝑛−𝑛
= ℎ 𝑛 𝑐𝑜𝑠 𝜔= ℎ 𝑛 𝑐𝑜𝑠 𝜔
2 2
𝑛=0 𝑛=0
𝑁−1 𝑁−1
𝑁−3
2 𝑁−1
𝑁−1 𝑁−1
−𝑗𝜔 2
= ℎ(𝑛)𝑒 −𝑗𝜔𝑛 + ℎ 𝑒 + ℎ(𝑛)𝑒 −𝑗𝜔𝑛
2
𝑛=0 𝑁+1
𝑛= 2
Let 𝑚 = 𝑁 − 1 − 𝑛 → 𝑛 = 𝑁 − 1 − 𝑚
𝑁+1 𝑁+1 𝑁−3
𝑛= →𝑚 =𝑁−1− =
2 2 2
𝑛 =𝑁−1→𝑚 =𝑁−1− 𝑁−1 =0
𝑁−3 𝑁−3
2 2
𝑗𝜔 −𝑗𝜔𝑛
𝑁 − 1 −𝑗𝜔 𝑁−1
𝐻 𝑒 = ℎ(𝑛)𝑒 +ℎ 𝑒 2 + ℎ(𝑁 − 1 − 𝑚) 𝑒 −𝑗𝜔(𝑁−1−𝑚)
2
𝑛=0 𝑚=0
𝑁−2
2 𝑁−1
Amplitude response is
Antisymmetric with 𝜔 = 𝜋
Non zero at 𝜔 = 0
Zero at 𝜔 = 𝜋
Case iii: Antisymmetric impulse response, N odd
𝑁=9
𝑁−3
2 𝑁−1
Let 𝑚 = 𝑁 − 1 − 𝑛 → 𝑛 = 𝑁 − 1 − 𝑚
𝑁+1 𝑁+1 𝑁−3
𝑛= →𝑚 =𝑁−1− =
2 2 2
𝑛 =𝑁−1→𝑚 =𝑁−1− 𝑁−1 =0
𝑁−3 𝑁−3
2 2
𝐻 𝑒 𝑗𝜔 = ℎ(𝑛)𝑒 −𝑗𝜔𝑛 + ℎ(𝑁 − 1 − 𝑚) 𝑒 −𝑗𝜔(𝑁−1−𝑚)
𝑛=0 𝑚=0
Amplitude response is
Symmetric with 𝜔 = 𝜋
Zero at 𝜔 = 0
Non zero at 𝜔 = 𝜋
Frequency response of digital filters