<< Chapter < Page Chapter >> Page >
A w = C w a

with the elements of the M + 1 by M + 1 matrix C w as

c w ( m , n ) = 2 π Ω W ( ω ) cos ( ω n ) cos ( ω m ) d ω

and the M + 1 by 1 vector of intermediate values a w is given by an inverse DTFT of the weighted ideal amplitude response in

A w ( n ) = 1 π Ω W ( ω ) A d ( ω ) cos ( ω n ) d ω for 1 n N - 1

and

A w ( 0 ) = 1 2 π Ω W ( ω ) A d ( ω ) d ω .

Solving [link] for the optimal a which minimizes the integral weighted squared error [link] is formally done by

a = C w - 1 A w

and more accurately done by special numerical algorithms. The case for even N is easily derived by using Equation 40 from FIR Digital Filters to derive [link] . The actual length- N filter coefficients h ( n ) are then found from a ( n ) using Equation 41 from FIR Digital Filters . Note that if the weighting is unity across the pass, transition, and stop bands, C w is the identity matrix. C w gives the effects of the weighting.

A similar formula was derived by Fleischer [link] , Tufts, Rorabacher and Mosier [link] , by Schüssler [link] , by Oetken, Parks, and Schüssler [link] , and by Burrus, Soewito, and Gopinath [link] , [link] in addressing similar problems.

If the integrals in [link] and [link] can be analytically evaluated, the solution of the weighted squared error approximation is obtained bysolving M + 1 equations. Fortunately these equations can be analytically evaluated for several interesting cases as was done for the unweightedcase. The even length- N case is derived in a similar way using Equation 40 from FIR Digital Filters and Equation 41 from FIR Digital Filters . An alternate formulation could modify the first column.

In most practical situations where specifications are set in the frequency domain, these filters are described in terms of frequency bands.We have already seen the idea of single pass, stop, and transition bands. We now allow multiple pass and stopbands separated by multiple transitionbands. In order to obtain analytical solutions of [link] and [link] and to be consistent with usual practice, we restrict ourselves to constant weights over each separately defined frequency band. The errorin [link] now becomes

q = 1 π k W k ω k ω k + 1 | A d k ( ω ) - A ( ω ) | 2 d ω .

where the weights are constant over each band and are given by W ( ω ) = W k in the k t h band defined by ω k < ω < ω k + 1 . The desired amplitude A d k ( ω ) is likewise defined in the k t h band and is hopefully simple enough to allow analytical evaluation of the formula [link] for the ideal impulse response.

The form of [link] causes [link] to become

c w ( m , n ) = 2 π k W k ω k ω k + 1 cos ( ω n ) cos ( ω m ) d ω .

which has an analytical solution as given by

c w ( m , n ) = 1 π k W k sin ( n - m ) ω k + 1 - sin ( n - m ) ω k ( n - m ) + sin ( n + m ) ω k + 1 - sin ( n + m ) ω k ( n + m )

which for F band edges has terms that are indeterminate for n = m 0 with values

c w ( n , n ) = 1 π k = 1 F - 2 W k ( ω k + 1 - ω k ) + sin ( 2 n ω k + 1 ) - sin ( 2 n ω k ) 2 n + W F - 1 π

and for n = m = 0 as

c w ( 0 , 0 ) = 1 π k = 1 F - 2 W k 2 ( ω k + 1 - ω k ) + W F - 1 2 π

Since the matrix elements are functions of ( n - m ) and ( n + m ) , C is the sum of a Toeplitz and a Hankel matrix. This matrix can always becalculated and it simply depends on the set of band edges ω k and the band weights W k but not on the ideal amplitude response A d ( ω ) . The case for even N is similar but uses Equation 8 from Constrained Approximation and Mixed Criteria rather than Equation 7 from Constrained Approximation and Mixed Criteria with [link] to derive an appropriate form of [link] .

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Digital signal processing and digital filter design (draft). OpenStax CNX. Nov 17, 2012 Download for free at http://cnx.org/content/col10598/1.6
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Digital signal processing and digital filter design (draft)' conversation and receive update notifications?

Ask