FIR Filter Design Via Semidenite Programming and Spectral Factorization
FIR Filter Design Via Semidenite Programming and Spectral Factorization
Spectral Factorization
Shao-Po Wu, Stephen Boyd, Lieven Vandenberghe
Information Systems Laboratory
Stanford University, Stanford, CA 94305
[email protected], [email protected], [email protected]
3 SDP formulation 4 ..
... ... .. 775 6
.
4
. 0
0 1 0 (7)
In this section, we will show that the non-negativity of
r(N , 1) D = 12 r(0):
R(!) for all ! 2 [0; ] can be cast as an LMI constraint C = r(1) r(2)
Of course the realization is not unique, e.g., Thus, for z = ej! we have
(T ,1AT; T ,1B; CT; D) realizes the same transfer func- 1
X 1
X
tion. (!) = an cos !n and '(!) = , an sin !n;
n=0 n=0
It can be easily checked that (A; B; C; D) given by which implies (!) and '(!) are Hilbert transform
(7) satises (6) and all the hypotheses of Theorem 1. pairs. To determine Xmp(z ), we rst nd '(!) from
Therefore the existence of r and symmetric P that sat- (!) via the Hilbert transform. In practice, this step
isfy the matrix inequality (5) is the necessary and suf- can be replaced by two Fourier transforms of order
cient condition for R(!) 0, for all ! 2 [0; ], by N~ , with N~ N . Then we construct Xmp from
Theorem 1. (!) and '(!). A third Fourier transform of order
Note that (5) depends anely on r and P . Thus we N yields the coecients of Xmp(z ), which gives the
can formulate the SDP feasibility problem: desired minimum-phase FIR lter coecients.
nd r 2 RN and P = P T 2 RN,1N,1
subject to L2 (!i ) R(!i ) U 2(!i ); !i 2
5 Extensions
P , AT PA C T , AT PB 0 (8)
C , B T PA D + DT , B T PB We have shown that FIR design with magnitude
bounds can be cast as SDP feasibility problems. In
with (A; B; C; D) given by (7). The SDP feasibility fact, many extensions of the problem can be handled by
problem (8) can be cast as an ordinary SDP and solved simply adding a cost function and/or LMI constraints
eciently. to our SDP formulation. We will give a few examples
in this section.
4 Spectral factorization 5.1 Minimum-length FIR design
The length of an FIR-lter is a quasi-convex function
Given r 2 RN be the solution of (3), (4) or (8), the of its coecients [4]. Hence, the problem of nding the
desired N -tap FIR lter can be obtained via spectral minimum-length FIR lter given magnitude upper and
factorization by the Fejer-Riesz theorem: lower bounds
minimize N
Theorem 2 (Fejer-Riesz) If a complex function subject to L(!i ) jXN (!i )j U (!i ); i = 1; : : : ; M
W (z ) : C ! C satises is quasi-convex and can be solved using bisection on N .
m
X Each iteration of the bisection involves solving an SDP
W (z ) = w(n)z ,n and W (z ) 0 8 jz j = 1; feasibility problem (8).
n=,m
then there exists Y (z ) : C ! C and y(0); : : : ; y(m) 2 C 5.2 Chebychev approximation on power spec-
such that trum
m Another interesting extension is the Chebychev approx-
Y (z ) =
X
y(n)z ,n and W (z ) = jY (z )j2 8 jz j = 1: imation of a desired power spectrum
n=0 minimize i=1max jX (!i )j2 , jD(!i )j2 ; (9)
;:::;M
Y(z) is unique if we further impose the condition that which is not convex in the lter coecients x. Using
all its roots be in the unit circle jz j 1. the technique developed in Section 3, problem (9) can
be reformulated as a convex problem in r and P :
An ecient method for minimum-phase spectral fac- minimize i=1max
R(!i ) , jD(!i )j2
torization is as follows [11]. We denote the unique ;:::;M
minimum-phase factor of R(z ) by Xmp(z ). Denote
P , AT PA C T , AT PB 0;
log Xmp(z ) by subject to C , B T PA D + DT , B T PB
log Xmp(z ) = (z ) + j'(z ); with (A; B; C; D) given in (7). This problem can be
we have (z ) = (1=2) log R(z ) and is known. Since further cast as an SDP:
Xmp(z ) is minimum-phase, log Xmp(z ) is analytic in minimize t
the region fz j jz j 1g and has the power series ex- subject to
pansion
1
jD(!i )j2 , t R(!i ) t + jD(!i )j2 ; i = 1; : : : ; M
log Xmp(z ) =
X
an z ,n; jz j 1: P , AT PA C T , AT PB 0;
n=0 C , B T PA D + DT , B T PB
where t is an auxiliary variable. Upper and lower
bounds on the magnitude can also be added to the
above SDP.
1
−1
dB
−20
minimize i=1max log jX (!i )j , log jD(!i )j : 0.06 0.12 0.5
minimize t
subject to 1=t R(!i )=jD(!i )j2 t; i = 1; : : : ; M
dB
−20
P , AT PA C T , AT PB 0;
C , B T PA D + DT , B T PB
−40
Normalized Frequency
minimize t 10
R(!i )=jD(!i )j2 1 0; i = 1; : : : ; M
6
1 t
4
Group-delay
P , AT PA C T , AT PB 0:
2
C , B T PA D + DT , B T PB
0
−2
−4
−6
6 Examples −8
−10
Example 1
0.06 0.12 0.5
Normalized Frequency
We design a low-pass lter of minimum length, with Figure 1: Magnitude bounds and lter response (magni-
passband [0; 0:06] and stopband [0:12; 0:5] in normal- tude and group-delay) of Example 1. The dot-
ized frequency (Nyquist rate is equal to 1), that sat- ted line indicates the magnitude bounds and
ises the magnitude bounds shown in Figure 1. The the solid line indicates the response.
minimum lter length is 20. One of the solutions is
shown in the gure. Note that the lter has roughly
linear phase in the passband.
Example 2
1
−1
−20
Normalized Frequency
0.5
dB
−20
−40
Normalized Frequency
Figure 3: Filter response (magnitude) of Example 3
10
dB
−10
Example 4 −15
Normalized Frequency
10
7 Concluding remarks 5
−10
−30
Normalized Frequency
that satises the upper and lower bounds.
Figure 4: Filter specication and response (magnitude)
Chebychev-approximation of a desired power of Example 3
spectrum.
Chebychev-approximation of a desired frequency
response magnitude on a logarithmic scale.
Chebychev-approximation with guaranteed mag-
nitude upper/lower bounds.