Multi Rate
Multi Rate
Recall (O&S Problem 5.51) if 2α is an integer, we might have impulse response symmetry about α.
Since
H(e jω ) = A(e jω )[cos(β − ωα) + j sin(β − ωα)]
and
∞ ∞
H(e jω ) = ∑ h[n] cos(ωn) − j ∑ h[n] sin(ωn)
n=−∞ n=−∞
we have
sin(β − ωα) ∑∞ h[n] sin(ωn)
tan(β − ωα) = = − ∞n=−∞
cos(β − ωα) ∑n=−∞ h[n] cos(ωn)
Therefore
∞
∑ h[n] sin[ω(n − α) + β] = 0 ∀ω (15.2)
n=−∞
That is constant group delay implies Equation 15.2, so Equation 15.2 is a necessary condition for generalized linear
phase. However Equation 15.2 is not a sufficient condition for generalized linear phase.
As examples, two types of generalized linear phase systems are given below:
β = 0 or π
2α = M = an integer
h[2α − n] = h[n]
It is easy to show
∞
∑ h[n] sin[ω(n − α)] = 0
n=−∞
(We will show why such a system has generalized linear phase later.)
15-1
15-2
It is easy to show
∞
∑ h[n] cos[ω(n − α)] = 0
n=−∞
(We will show why such a system has generalized linear phase later.)
Note there are other types of systems that are different from the above two systems but also have generalized linear
phases.
We can show Type I FIR’s have linear-phase by checking its Fourier Transform.
M
H(e jω ) = ∑ h[n]e− jωn
n=0
M/2−1 M
= ∑ h[n]e− jωn + h[M/2]e− jωM/2 + ∑ h[n]e− jωn
n=0 n=M/2+1
M/2−1 M
= ∑ h[n]e− jωn + h[M/2]e− jωM/2 + ∑ h[M − k]e− jω(M−k) (k = M − n)
n=0 k=M/2+1
M/2−1 M
= ∑ h[n]e− jωn + h[M/2]e− jωM/2 + ∑ h[k]e− jω(M−k) (h[k] = h[M − k])
n=0 k=M/2+1
M/2−1
= ∑ h[n](e− jωn + e− jω(M−n) ) + h[M/2]e− jωM/2
n=0
" #
M/2−1
M
=e − jωM/2
∑ h[n]2 cos(n − )ω + h[M/2]
2
n=0
The first term e− jωM/2 gives a phase of −ωM/2 to H(e jω ). Since h[n] is real, the second term in the product above
contribute a phase of 0 or π to H(e jω ). So the overall phase of H(e jω ) is
M M
−ω or −ω +π
2 2
We can show Type II FIR’s have linear-phase by checking its Fourier Transform.
M
H(e jω ) = ∑ h[n]e− jωn
n=0
(M−1)/2 M
= ∑ h[n]e− jωn + ∑ h[n]e− jωn
n=0 n=(M+1)/2
(M−1)/2 M
= ∑ h[n]e− jωn + ∑ h[M − k]e− jω(M−k) (k = M − n)
n=0 k=(M+1)/2
(M−1)/2 M
= ∑ h[n]e− jωn + ∑ h[k]e− jω(M−k) (h[k] = h[M − k])
n=0 k=(M+1)/2
(M−1)/2
= ∑ h[n](e− jωn + e− jω(M−n) )
n=0
" #
(M−1)/2
M
=e − jωM/2
∑ h[n]2 cos(n − )ω
2
n=0
The first term e− jωM/2 gives a phase of −ωM/2 to H(e jω ). Since h[n] is real, the second term in the product above
contributes a phase of 0 or π to H(e jω ). So the overall phase of H(e jω ) is
M M
−ω or −ω +π
2 2
We can show Type III FIR’s have linear-phase by checking its Fourier Transform.
M
H(e jω ) = ∑ h[n]e− jωn
n=0
M/2−1 M
= ∑ h[n]e− jωn + h[M/2]e− jωM/2 + ∑ h[n]e− jωn
n=0 n=M/2+1
M/2−1 M
= ∑ h[n]e− jωn + ∑ h[M − k]e− jω(M−k) (h[M/2] = 0, k = M − n)
n=0 k=M/2+1
M/2−1 M
= ∑ h[n]e− jωn − ∑ h[k]e− jω(M−k) (h[k] = −h[M − k])
n=0 k=M/2+1
M/2−1
= ∑ h[n](e− jωn − e− jω(M−n) )
n=0
" #
M/2−1
M
=e − jωM/2
(− j) ∑ h[n]2 sin(n − )ω
2
n=0
The first term e− jωM/2 gives a phase of −ωM/2 to H(e jω ). Since h[n] is real, the second term in the product above
contribute a phase of π2 or 3π jω jω
2 to H(e ). So the overall phase of H(e ) is
M π M 3π
−ω + or −ω +
2 2 2 2
We can show Type IV FIR’s have linear-phase by checking its Fourier Transform.
M
H(e jω ) = ∑ h[n]e− jωn
n=0
(M−1)/2 M
= ∑ h[n]e− jωn + ∑ h[n]e− jωn
n=0 n=(M+1)/2
(M−1)/2 M
= ∑ h[n]e− jωn + ∑ h[M − k]e− jω(M−k) (k = M − n)
n=0 k=(M+1)/2
(M−1)/2 M
= ∑ h[n]e− jωn − ∑ h[k]e− jω(M−k) (h[k] = −h[M − k])
n=0 k=(M+1)/2
(M−1)/2
= ∑ h[n](e− jωn − e− jω(M−n) )
n=0
" #
(M−1)/2
M
=e − jωM/2
(− j) ∑ h[n]2 sin(n − )ω
2
n=0
The first term e− jωM/2 gives a phase of −ωM/2 to H(e jω ). Since h[n] is real, the second term in the product above
contributes a phase of π2 or 3π jω jω
2 to H(e ). So the overall phase of H(e ) is
M π M 3π
−ω + or −ω +
2 2 2 2
M π 3π
α= , β= or
2 2 2
The four types of FIR filters all have linear-phase, which is a desirable characteristic in many situations since we can
concentrate on the magnitude response when designing filters. What is the difference among the different types?
Low Pass Filters – Anti-symmetric FIR’s are NOT good choice. Why?
For anti-symmetric h[n], after the input is convolved with it, the output is mostly difference between samples. Larger
difference corresponds to higher frequency components of the input signal.
High Pass Filters – Symmetric FIR’s are NOT good choice. Why?
For symmetric h[n], after the input is convolved with it, the output is towards summation of the samples. Summation
tends to keep lower frequency components and attenuates higher frequency components of the input.
Ex: Linear Regression Slope Filter
We want to fit a line through x[n − M1], · · · , x[n], · · · , ..., x[n + M1 ]. Using least squares criterion, we find the slope s[n]
is
M1
∑k=−M 1
kx[n − k]
s[n] = M1
∑k=−M1 k2
which is essentially a band pass filter, because for very low frequency components, slopes are close to zero and on the
other hand for very high frequency components also the fitted line also tends to be flat with close to zero slope.
The impulse response is ( n
M1 , −M1 ≤ n ≤ M1
h[n] = ∑k=−M k2
1
0, otherwise
15-7
Since
h[n] = h[M − n], 0≤n≤M
we have
M M
H(z) = ∑ h[M − n]z−n = ∑ z−(M−k) = z−M H(z−1 )
n=0 k=0
If H(z0 ) = 0, then
z−M −1
0 H(z0 ) = H(z0 ) = 0
that is
H(z−1
0 )=0
H(1/z∗0 ) = 0
h[n] = −h[M − n] 0 ≤ n ≤ M
we have
M M
H(z) = ∑ −h[M − n]z−n = − ∑ z−(M−k) = −z−M H(z−1 )
n=0 k=0
15-8
If H(z0 ) = 0, then
z−M −1
0 H(z0 ) = −H(z0 ) = 0
that is
H(z−1
0 )=0
H(1/z∗0 ) = 0
• It is impossible for Type II FIR’s to be a high pass filter because it has a zero at z = −1 (ω = π).
• It is impossible for Type III and Type IV FIR’s to be low pass filters because they have zero at z = 1 (ω = 0)
• It is impossible for Type III FIR’s to be a high pass filter because it has zero at z = −1 (ω = π).