Professional Documents
Culture Documents
2018BSZ8601
1 / 48
Overview
1 Introduction
2 Methodology
Transfer function for the comb filter
Fixed comb filter design
Design of Stable Fixed Comb Filter
Design of Variable comb filter
Design of stable Variable Comb Filter
Weighted Least Square (WLS) Method to Design FIR VFD Filter
3 Implementation and Result Analysis
Fixed Comb Filter
Variable Comb Filter
4 Conclusion
5 References
2 / 48
Introduction
The realization of comb filter can be done using IIR and FIR.
3 / 48
Transfer function for the comb filter
Figure: Narrow band pass filter using a notch filter in the feedback
4 / 48
Transfer function for the comb filter
Similarly, the multi-band pass filter can be designed using comb filter
in feedback and the transfer function can be written as:
1
Hm (Z ) =
1 + αHcomb (Z )
Hcomb (Z ) = 1 − Z −D
5 / 48
Transfer function for the comb filter
7 / 48
Fixed comb filter design
8 / 48
Fixed comb filter design
H(e jw ) = hT e(w )
where
h(n) = [h(0) h(1) h(2) .... h(N)]T
9 / 48
Fixed comb filter design
The error function J(h) can be written in quadratic form as given here
J(h) = ht Qh − 2ht P + c
where
Z 0.9π
Q=2 Re[e(w )e H (w )]dw
0
Z o.9π
P=2 Re[Fd (w )e ∗ (w )]dw
0
Z 0.9π
c=2 |Fd (w )|2 dw = 2απ
0
To design the comb filter, we must have the constraint as
H(kw0 ) = e −jDkw0
for k=0, 1, 2,. . .,M-1 and M = π/w0 .
10 / 48
Fixed comb filter design
Ch = f
11 / 48
Fixed comb filter design
Q1−1 r1
h=−
2
12 / 48
Fixed comb filter design
where "Z #
wp
r1 = −2Re Re[e(w )e H (w )]dw
0
Z wp
Q1 = e(w )e H (w )dw
−wp
where wp = 0.9π, by observation we can write vector r1 and the
matrix Q1 can be written as:
4wp ; i =D
r (i) = sin((D−i)wp )
−4 D−i ; 0 ≤ i ≥ N,
i 6= D
2wp ;
i =l
Q1 (i, l) =
sin((i−l)wp )
2 i−l ; 0 ≤ i ≤ N, i 6= l 13 / 48
Fixed comb filter design
14 / 48
Design of Stable Fixed Comb Filter
PN
1− n=0 h[n]Z −n
Hcomb (Z ) = 1+α N −n
P
α − n=0 h[n]Z
For the stable comb filter, the real part of denominator must grater
than zero as given in [].
N
X 1+α
h[n]cos(nw ) ≤ −δ
α
n=0
min hT Q1 h + r1T h + s1
h
1+α
s.t. crT1 h ≤ −δ
α
This is a standard form of linear programming optimization objective
function. Given below
1 T
min x Hx + f T x + C
x 2
s.t. Ax ≤ b
16 / 48
Design of Variable Comb Filter
N
X
H(z, q) = hn (q)z −n , −0.5 ≤ q ≤ 0.5
n=0
Here q is variable and depend on delay d as given:
d − 0.5(Dmax + Dmin )
q=
Dmax − Dmin
as above we have obsrve that that the variation hn (q) with respect to
’d’ is similar to sinc function. So, we can write as
sin((d − n)π)
H(z, q) = ĥn (q) = sinc(d − n)ĥn (q)
(d − n)π
17 / 48
Design of Variable Comb Filter
Now, the least square error between the desired frequency response
and designed WR-VFD FIR filter can written as
J(h) = s2 + r2T h + hT Q2 h
where
Z 0.5 Z wp
s2 = dwdq
0.5 −wp
"Z #
0.5 Z wp
r2 = −2Re e jwd c(w , p)dwdq
0.5 −wp
18 / 48
Design of Variable Comb Filter
Z 0.5 Z wp
Q2 = c(w , p)c H (w , p)dwdq
0.5 −wp
and
19 / 48
Design of Variable Comb Filter
Now, after minimizing least square error the optimum FIR filter
coefficient h(n, m) obtained as
1
h = − Q2−1 r2
2
20 / 48
Unified structure of Variable Comb Filter
(a)
(b)
Figure: Structure of a WR-VFD FIR filter: (a)The over all structure, (b)
Coefficient generator
21 / 48
Design of stable Variable Comb Filter
Similar to stability condition for the fixed comb filter, we can get the
following condition for stability VC filter:
1+α
crT2 h ≤ −δ
α
where cr 2 = Real[c(w , q)].
Finally, we have objective function to optimize.
min hT Q2 h + r2T h + s2
h
1+α
s.t. crT2 h ≤ −δ
α
This objective function can solved with standard quadratic linear
programming
22 / 48
Weighted Least Square (WLS) Method to Design FIR VFD
Filter
Similar to earlier methods the delay element Z −D is designed using
FIR filter
N
X
H(z, d) = hn (d)z −n , −0.5 ≤ d ≤ 0.5
n=−N
where
d = D − D̂ = 2π/w0 − Rou[2π/w0 ]
and
M
X
hn (d) = h(n, m)d m , −N ≤ n ≤ N
m=0
where w0 , ’N’ and M are harmonic frequency, half order of filter and
number notch frequency of VC filtr respectively.
23 / 48
Weighted Least Square (WLS) Method to Design FIR VFD
Filter
For the minimum value of WLS error the coefficient matrix ’H’ is
obtained as
24 / 48
Weighted Least Square (WLS) Method to Design FIR VFD
Filter
where
H = [h(n, m), −N ≤ n ≤ N, 0 ≤ m ≤ M]
25 / 48
Fixed Comb Filter
(a)
26 / 48
Fixed Comb Filter
(b)
Figure: Magnitude response of comb filter transfer function in equation (12)
with w0 = 0.17 ∗ π, D = 2 ∗ π/w0 and N=64 for: (a) with fixed multiplier
and (b) with dependent multiplier
27 / 48
Fixed Comb Filter
(a)
28 / 48
Fixed Comb Filter
(b)
Figure: Magnitude response of comb filter transfer function in equation (12)
with w0 = 0.17 ∗ π, D = 2 ∗ π/w0 and N=64 for: (a) with fixed multiplier
and (b) with dependent multiplier
29 / 48
Fixed Comb Filter
(a)
Figure: Magnitude response of stable comb filter with w0 = 0.17 ∗ π,
D = 2 ∗ π/w0 and N=64
31 / 48
Implementation and Result of Stable Fixed Comb Filter
32 / 48
Implementation and Result of Stable Fixed Comb Filter
33 / 48
Implementation and Result of variable Comb Filter
I have implemented variable comb filter with the filter of order N=64
using wp = 0.9π. Dmin = 2π/(0.33π) and Dmax = 2π/(0.0625π).
34 / 48
Implementation and Result of variable Comb Filter
35 / 48
Implementation and Result of variable Comb Filter
36 / 48
Implementation and Result of variable Comb Filter
I have implemented variable comb filter with the filter of order N=110
using wp = 0.9π. Dmin = 2π/(0.33π) and Dmax = 2π/(0.0625π).
37 / 48
Implementation and Result of Stable variable Comb Filter
39 / 48
Implementation and Result of Stable variable Comb Filter
40 / 48
Implementation and Result of Stable variable Comb Filter
42 / 48
Implementation of Variable comb Filter When FIR VFD
filter is Designed by Weighted Least Square (WLS) Method
I have implemented variable comb filter with the filter of order N=120
using wp = 0.9π. Dmin = 2π/(0.33π) and Dmax = 2π/(0.0625π).
45 / 48
Conclusion
Pei, Soo-Chang and Huang, Yun-Da and Lin, Shih-Hsin and Shyu,
Jong-Jy,”Design of variable comb filter using FIR variable fractional
delay element”, Signal Processing, volume-92, number-10,
pages-2409–2421, year-2012, publisher-Elsevier.
Pei, Soo-Chang and Tseng, Chien-Cheng, ”A comb filter design using
fractional-sample delay”, IEEE Transactions on Circuits and Systems
II: Analog and Digital Signal Processing volume-45 number-5,
pages-649–653, year-1998, IEEE.
Engelberg, Shlomo, ”Precise variable-Q filter design [DSP Tips &
Tricks]”, IEEE Signal Processing Magazine 2008, volume-25,
number-5, pages-113–119.
Shyu, Jong-Jy and Pei, Soo-Chang and Huang, Yun-Da ”A new
method for the design of variable comb filters”, 2015 IEEE
International Conference on Consumer Electronics-Taiwan 2015,pages-
416-417,
47 / 48
References