<< Chapter < Page | Chapter >> Page > |
This approach can also be applied to the general arbitrary phase FIR filter design problem.
It is sometimes desirable to formulate the least squared error design problem using unequally-spaced frequency samples and/or a weightingfunction on the error. This is not possible using the IDFT or derived formulas above and requires a different approach to the solution.
Samples of the amplitude response derived for odd in Equation 2 from FIR Filter Design by Frequency Sampling or Interpolation are given by
for . This relates the frequency samples to the M+1 independent values of the symmetric length-N impulse response h(n). In the design problem where the are given and the values for h(n) are to be found, this represents equations with M+1 unknowns. Because of the symmetries of shown in Figure 5 from FIR Digital Filters , only half of the values of are independent; however, in some cases, to have proper weights on all samples, all must be calculated.
[link] sampled at arbitrary frequencies can be written as a matrix equation
where is an length vector with elements which are the first half of . is an by matrix of the cosine terms from [link] , and is a length-L vector of the frequency samples .
If the formula for the calculation of values of the frequency response of a length-N FIR filter in [link] is used to define an error vector of differences as defined in [link] and the result is written in the matrix formulation of Equation 48 from FIR Filter Design by Frequency Sampling or Interpolation , the error becomes
or
where is a vector of differences between the actual and desired samples of the frequency response. The error measure defined in [link] becomes the quadratic form
For , equation [link] is over determined and cannot, in general, be solved for . The filter design error measure is the norm of , as given in [link] . This error measure is minimized by making orthogonal to the columns of in [link] . Multiplying both sides of [link] by the transpose of gives
In order for to be minimum, must be orthogonal to the columns of and, therefore, must be zero. Hence, the optimal must satisfy the “normal equations" [link] , [link] , [link] which are
and which can be rewritten in terms of the pseudo-inverse [link] , [link] as
If , this becomes the regular frequency-sampling problem and can be solved with zero error. For the case of interest inthis section, where , there are still only equations to be solved. For , equation [link] may be ill-conditioned, and [link] should not be used to solve them. Special methods will be necessary to avoid serious numerical problems [link] .
If a weighted error function is desired, [link] is modified to give
The normal equations of [link] become
where is a positive-definite matrix of the weights. If zero weights are desired, the effect is be achieved by removing those frequencies fromthe set of frequencies, not by using a zero value weight which would violate the vector-space conditions of a well-posed minimization problem.
Notification Switch
Would you like to follow the 'Digital signal processing and digital filter design (draft)' conversation and receive update notifications?