Linear Phase Filter
Linear Phase Filter
Linear Phase Filter
2. Why linear-phase?
7. Automatic zeros
1.2
2
1
0.8
0
0.6
0.4
−2
0.2
0 −4
0 0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1
ω/π ω/π
A(ω) θ(ω)
1.2 0
1
−5
0.8
0.6
−10
0.4
0.2
−15
0
−0.2 −20
0 0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1
ω/π ω/π
with
θ(ω) = −M · ω + B.
x1 (n) = cos(ω1 n + φ1 )
or
θ(ω1 )
y1 (n) = A(ω1 ) cos ω1 n + + φ1 .
ω1
The LTI system has the effect of scaling the cosine signal and de-
laying it by −θ(ω1 )/ω1 .
θ(ω)
=⇒ = constant
ω
=⇒ θ(ω) = K ω
The function θ(ω)/ω is called the phase delay. A linear phase filter
therefore has constant phase delay.
1.5
x1(n) (INPUT)
0.5
−0.5
−1
−1.5
−2
20 22 24 26 28 30 32 34 36 38 40
1.5
y1(n) (OUTPUT)
0.5
−0.5
−1
−1.5
−2
20 22 24 26 28 30 32 34 36 38 40
Consider the same system given on the previous slide, but let us
change the frequency of the cosine signal.
1.5
x2(n) (INPUT)
0.5
−0.5
−1
−1.5
−2
20 22 24 26 28 30 32 34 36 38 40
1.5
y2(n) (OUTPUT)
0.5
−0.5
−1
−1.5
−2
20 22 24 26 28 30 32 34 36 38 40
From the previous slides, we see that a filter will delay different
frequency components of a signal by the same amount if the filter
has linear phase (constant phase delay).
0.3 0.3
0.2 0.2
0.1 0.1
0 0
−0.1 −0.1
0 2 4 6 8 10 12 0 2 4 6 8 10 12
0.2 0.2
0.1 0.1
0 0
−0.1 −0.1
−0.2 −0.2
−0.3 −0.3
0 2 4 6 8 10 12 0 2 4 6 8 10 12
(2)
= e−2jω h0 (e2jω + e−2jω ) + h1 (ejω + e−jω ) + h2
(3)
= e−2jω (2h0 cos (2ω) + 2h1 cos (ω) + h2 ) (4)
= A(ω)ejθ(ω) (5)
where
Note that A(ω) is real-valued and can be both positive and negative.
In general, for a Type I FIR filters of length N :
H f (ω) = A(ω)ejθ(ω)
M
X −1
A(ω) = h(M ) + 2 h(n) cos ((M − n)ω).
n=0
θ(ω) = −M ω
N −1
M= .
2
where
3 3
1
θ(ω) = − ω, A(ω) = 2h0 cos 2ω + 2h1 cos 2ω .
2
In general, for a Type II FIR filters of length N :
H f (ω) = A(ω)ejθ(ω)
N
2 −1
X
A(ω) = 2 h(n) cos ((M − n)ω)
n=0
θ(ω) = −M ω
N −1
M= .
2
where
π
θ(ω) = −2ω + , A(ω) = 2h0 sin (2ω) + 2h1 sin (ω).
2
In general, for a Type III FIR filters of length N :
H f (ω) = A(ω)ejθ(ω)
M
X −1
A(ω) = 2 h(n) sin ((M − n)ω)
n=0
π
θ(ω) = −M ω +
2
N −1
M= .
2
where
3 π 3
1
θ(ω) = − ω + , A(ω) = 2h0 sin 2ω + 2h1 sin 2ω .
2 2
In general, for a Type IV FIR filters of length N :
π
θ(ω) = −M ω +
2
N −1
M= .
2
N −1
M=
2
1
0.5
0.8
0.6
0
0.4
0.2
−0.5
0
−0.2 −1
0 0.5 1 1.5 2 0 0.5 1 1.5 2
ω/π ω/π
TYPE III A(ω) TYPE IV A(ω)
1.5 2
1
1.5
0.5
1
0
0.5
−0.5
0
−1
−1.5 −0.5
0 0.5 1 1.5 2 0 0.5 1 1.5 2
ω/π ω/π
It follows that
1. generic zeros of a linear-phase filter exist in sets of 4.
2. zeros on the unit circle (zo = ejωo ) exist in sets of 2. (z0 6= ±1)
Imaginary part
0.5
0 0
−0.5
−0.5
−1
−1.5 −1
−1 0 1 2 −1 −0.5 0 0.5 1
Real part Real part
1 1
0.5 0.5
Imaginary part
Imaginary part
0 0
−0.5 −0.5
−1 −1
−1 −0.5 0 0.5 1 −1 −0.5 0 0.5 1
Real part Real part
1.5
1
Imaginary part
0.5
−0.5
−1
−1.5
−2 −1 0 1
Real part
h(n) = [h0 , h1 , h2 , h2 , h1 , h0 ]
H(z) = h0 + h1 z −1 + h2 z −2 + h2 z −3 + h1 z −4 + h0 z −5
H(−1) = h0 − h1 + h2 − h2 + h1 − h0 = 0
H f (π) = H(ejπ ) = H(−1) = 0
Similarly, we can derive the following rules for Type III and Type IV
FIR filters.
TYPE I TYPE II
2
2
1
Imaginary part
Imaginary part
1
0 0
−1 −1
−2
−2
−1 0 1 2 3 4 5 −5 −4 −3 −2 −1 0 1
Real part Real part
2 2
Imaginary part
Imaginary part
1 1
0 0
−1 −1
−2 −2
−1 0 1 2 3 4 5 −1 0 1 2 3 4 5
Real part Real part