Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Where ℎ(𝑛) is the impulse response of the filter. The frequency response [Fourier
transform of ℎ(𝑛)] is given by
𝑁−1
i.e., ∑𝑁−1
𝑛=0 ℎ(𝑛)[𝑐𝑜𝑠𝜔𝑛 − 𝑗𝑠𝑖𝑛𝜔𝑛] = ± |𝐻(𝜔)|[𝑐𝑜𝑠𝜃(𝜔) + 𝑗𝑠𝑖𝑛𝜃(𝜔)]
This gives us
𝑁−1
∑ ℎ(𝑛)𝑐𝑜𝑠𝜔𝑛 = ±|𝐻(𝜔)|𝑐𝑜𝑠𝜃(𝜔)
𝑛=0
And
𝑁−1
− ∑ ℎ(𝑛)𝑠𝑖𝑛𝜔𝑛 = ±|𝐻(𝜔)|𝑠𝑖𝑛𝜃(𝜔)
𝑛=0
Therefore,
∑𝑁−1
𝑛=0 ℎ(𝑛)𝑠𝑖𝑛𝜔𝑛 𝑠𝑖𝑛𝜃(𝜔) 𝑠𝑖𝑛𝛼𝜔
= =
∑𝑁−1
𝑛=0 ℎ(𝑛)𝑐𝑜𝑠𝜔𝑛 𝑐𝑜𝑠𝜃(𝜔) 𝑐𝑜𝑠𝛼𝜔
i.e.,
𝑁−1
∑ ℎ(𝑛)[𝑠𝑖𝑛𝜔𝑛𝑐𝑜𝑠𝛼𝜔 − 𝑐𝑜𝑠𝜔𝑛𝑠𝑖𝑛𝛼𝜔] = 0
𝑛=0
For FIR filter with linear phase, we can define 𝜃(𝜔) = −𝛼𝜔, −𝜋 ≤𝜔 ≤𝜋
Where 𝛼 is constant phase delay in samples.
𝑑𝜃(𝜔) 𝑑
𝜏𝑔 = − =− (−𝛼𝜔) = 𝛼
𝑑𝜔 𝑑𝜔
𝜃(𝜔) 𝛼𝜔
𝑎𝑛𝑑 𝜏𝑝 = − = =𝛼
𝜔 𝜔
𝜏𝑔 = 𝜏𝑝 = 𝛼 which means that 𝛼 is independent of frequency. (Showed)
****Shows that FIR filters will have constant phase and group delays when the
𝑵−𝟏
impulse response is symmetrical about 𝜶 = .
𝟐
We have
𝑁−1
i.e., ∑𝑁−1
𝑛=0 ℎ(𝑛)[𝑐𝑜𝑠𝜔𝑛 − 𝑗𝑠𝑖𝑛𝜔𝑛] = ± |𝐻(𝜔)|[𝑐𝑜𝑠𝜃(𝜔) + 𝑗𝑠𝑖𝑛𝜃(𝜔)]
This gives us
𝑁−1
∑ ℎ(𝑛)𝑐𝑜𝑠𝜔𝑛 = ±|𝐻(𝜔)|𝑐𝑜𝑠𝜃(𝜔)
𝑛=0
And
𝑁−1
− ∑ ℎ(𝑛)𝑠𝑖𝑛𝜔𝑛 = ±|𝐻(𝜔)|𝑠𝑖𝑛𝜃(𝜔)
𝑛=0
Therefore,
∑𝑁−1
𝑛=0 ℎ(𝑛)𝑠𝑖𝑛𝜔𝑛 𝑠𝑖𝑛𝜃(𝜔) 𝑠𝑖𝑛𝛼𝜔
= =
∑𝑁−1
𝑛=0 ℎ(𝑛)𝑐𝑜𝑠𝜔𝑛 𝑐𝑜𝑠𝜃(𝜔) 𝑐𝑜𝑠𝛼𝜔
i.e.,
𝑁−1
∑ ℎ(𝑛)[𝑠𝑖𝑛𝜔𝑛𝑐𝑜𝑠𝛼𝜔 − 𝑐𝑜𝑠𝜔𝑛𝑠𝑖𝑛𝛼𝜔] = 0
𝑛=0
i.e.,
𝑁−1
∑ ℎ(𝑛) sin(𝛼 − 𝑛) 𝜔 = 0
𝑛=0
This shows that FIR filters will have constant phase and group delays when the impulse
𝑁−1
response is symmetrical about 𝛼 = . (Showed)
2
𝑯(𝒛) = ∑ 𝒉(𝒏)𝒛−𝒏
𝒏=𝟎
Solution:
The transfer function of the filter is given by
N−1
H(z) = ∑ h(n)z −n
n=0
For symmetrical impulse response with even number of samples, the center of
symmetry lies between 𝑛 = (𝑁/2) − 1 and 𝑛 = 𝑁/2. Hence 𝐻(𝜔) is expressed as:
(𝑁/2)−1 𝑁−1
−𝑗𝜔𝑛
𝐻(𝜔) = ∑ ℎ(𝑛)𝑒 + ∑ ℎ(𝑛)𝑒 −𝑗𝜔𝑛
𝑛=0 𝑛=𝑁/2
Let 𝑚 = 𝑁 − 1 − 𝑛 ∴𝑛 =𝑁−1−𝑚
When 𝑛 = 𝑁/2 𝑚 = 𝑁 − 1 − 𝑁/2 = 𝑁/2 − 1
When 𝑛 = 𝑁 − 1 𝑚 = 𝑁 − 1 − (𝑁 − 1) = 0
Therefore, the above equation for 𝐻(𝜔) can be written as:
(𝑁/2)−1 (𝑁/2)−1
Replacing m by n, we get
(𝑁/2)−1 (𝑁/2)−1
(𝑁/2)−1
𝑁−1 𝑁−1 𝑁−1
= 𝑒 −𝑗𝜔 2 { ∑ ℎ(𝑛)[𝑒 𝑗𝜔( 2
−𝑛)+ −𝑗𝜔(
𝑒 2
−𝑛)
]
𝑛=0
(𝑁/2)−1
𝑁−1 𝑁−1
= 𝑒 −𝑗𝜔 2 { ∑ ℎ(𝑛)2cos(𝜔 ( − 𝑛))]
2
𝑛=0
𝑁
Let 𝑘 = 𝑁/2 − 𝑛 ∴𝑛= −𝑘
2
When 𝑛 = 0 𝑘 = 𝑁/2
When 𝑛 = 𝑁/2 − 1 𝑘 = 𝑁/2 − (𝑁/2 − 1) = 1
Therefore, the above expression for 𝐻(𝜔) becomes
(𝑁/2)
𝑁−1 𝑁 1
𝐻(𝜔) = 𝑒 −𝑗𝜔 2 { ∑ 2ℎ ( − 𝑘) cos 𝜔(𝑘 − )
2 2
𝑘=1
On replacing k by n, we get
(𝑁/2)
−𝑗𝜔
𝑁−1 𝑁 1
𝐻(𝜔) = 𝑒 2 { ∑ 2ℎ ( − 𝑛) cos 𝜔(𝑛 − )
2 2
𝑛=1
This is the expression for frequency response of linear phase FIR filter when impulse
response is symmetrical and N is even. (Showed)
The magnitude function of 𝐻(𝜔) is given by
(𝑁/2)
𝑁 1
|𝐻(𝜔)| = ∑ 2ℎ ( − 𝑛) cos 𝜔(𝑛 − )
2 2
𝑛=1
𝑁−3
2 𝑁−1
Let 𝑚 = 𝑁 − 1 − 𝑚 𝑛=𝑁−1−𝑚
When 𝑛 = (𝑁 + 1)/2 𝑚 = 𝑁 − 1 − (𝑁 + 1/2) = (𝑁 − 3)/2
When 𝑛 = 𝑁 − 1 𝑚 = 𝑁 − 1 − (𝑁 − 1) = 0
(𝑁−3)
2 (𝑁−3)/2
On replacing m by n, we get
(𝑁−3)
2 (𝑁−3)/2
𝑁
2
𝜋 𝑁−1 𝑁 1
𝑗( −𝜔( ))
∴ 𝐻 (𝜔 ) = 𝑒 2 2 ∑ 2ℎ ( − 𝑘) 𝑠𝑖𝑛 (𝜔(𝑘 − ))
2 2
𝑘=1
({ )
Replacing k by n, we get
𝑁
2
𝜋 𝑁−1 𝑁 1
𝑗( −𝜔( ))
𝐻 (𝜔 ) = 𝑒 2 2 ∑ 2ℎ ( − 𝑛) 𝑠𝑖𝑛 (𝜔(𝑛 − ))
2 2
𝑛=1
({ )
This is the equation for the frequency response of linear phase FIR filter
when impulse response is antisymmetric and N is even. (Showed)