<< Chapter < Page Chapter >> Page >

In some applications, the effects of phase are not a necessary factor to consider when designing a filter. For these applications, control of the filter's magnitude response is a priority for the designer. In order to improve the magnitude response of a filter, one must not explicitly include a phase, so that the optimization algorithm can look for the best filter that approximates a specified magnitude, without being constrained about optimizing for a phase response too.

Power approximation formulation

The magnitude approximation problem can be formulated as follows:

min h D ( ω ) - | H ( ω ; h ) | p p

Unfortunately, the second term inside the norm (namely the absolute value function) is not differentiable when its argument is zero. Although one could propose ways to work around this problem, I propose the use of a different design criterion, namely the approximation of a desired magnitude squared. The resulting problem is

min h D ( ω ) 2 - | H ( ω ; h ) | 2 p p

The autocorrelation r ( n ) of a causal length- N FIR filter h ( n ) is given by

r ( n ) = h ( n ) * h ( - n ) = k = - ( N - 1 ) N - 1 h ( k ) h ( n + k )

The Fourier transform of the autocorrelation r ( n ) is known as the Power Spectral Density function [link] R ( ω ) (or simply the SPD), and is defined as follows,

R ( ω ) = n = - ( N - 1 ) N - 1 r ( n ) e - j ω n = n = - ( N - 1 ) N - 1 k = - ( N - 1 ) N - 1 h ( n ) h ( n + k ) e - j ω n

From the properties of the Fourier Transform [link] one can show that there exists a frequency domain relationship between h ( n ) and r ( n ) given by

R ( ω ) = H ( ω ) · H * ( - ω ) = | H ( ω ) | 2

This relationship suggests a way to design magnitude-squared filters, namely by using the filter's autocorrelation coefficients instead of the filter coefficients themselves. In this way, one can avoid the use of the non-differentiable magnitude response.

An important property to note at this point is the fact that since the filter coefficients are real, one can see from [link] that the autocorrelation function r ( n ) is symmetric; thus it is sufficient to consider its last N values. As a result, the PSD can be written as

R ( ω ) = n r ( n ) e - j ω n = r ( 0 ) + n = 1 N - 1 2 r ( n ) cos ω n

in a similar way to the linear phase problem.

The symmetry property introduced above allows for the use of the l p linear phase algorithm of [link] to obtain the autocorrelation coefficients of h ( n ) . However, there is an important step missing in this discussion: how to obtain the filter coefficients from its autocorrelation. To achieve this goal, one can follow a procedure known as Spectral Factorization . The objective is to use the autocorrelation coefficients r R N instead of the filter coefficients h R N as the optimization variables. The variable transformation is done using [link] , which is not a one-to-one transformation. Because of the last result, there is a necessary condition for a vector r R N to be a valid autocorrelation vector of a filter. This is summarized [link] in the spectral factorization theorem , which states that r R N is the autocorrelation function of a filter h ( n ) if and only if R ( ω ) 0 for all ω [ 0 , π ] . This turns out to be a necessary and sufficient condition [link] for the existence of r ( n ) . Once the autocorrelation vector r is found using existing robust interior-point algorithms, the filter coefficients can be calculated via spectral factorization techniques.

Assuming a valid vector r R N can be found for a particular filter h , the problem presented in [link] can be rewritten as

L ( ω ) 2 R ( ω ) U ( ω ) 2 ω [ 0 , π ]

In [link] the existence condition R ( ω ) 0 is redundant since 0 L ( ω ) 2 and, thus, is not included in the problem definition. For each ω , the constraints of [link] constitute a pair of linear inequalities in the vector r ; therefore the constraint is convex in r . Thus the change of variable transforms a nonconvex optimization problem in h into a convex problem in r .

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Iterative design of l_p digital filters. OpenStax CNX. Dec 07, 2011 Download for free at http://cnx.org/content/col11383/1.1
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Iterative design of l_p digital filters' conversation and receive update notifications?

Ask