<< Chapter < Page | Chapter >> Page > |
where the are the necessary number of Langrange multipliers and is a scale factor that can be chosen for simplicity later. The first term in [link] is the integral squared error of the frequency response to be minimized and the second term will be zero when the equalityconstraints are satisfied at the frequencies, . The function is the constraint function in that must satisfy
Necessary conditions for the minimization of the integral squared error are that thederivative of the Lagrangian with respect to the filter parameters defined in Equation 49 from FIR Digital Filters and to the Lagrange multipliers be zero [link] .
The derivatives of the Lagrangian with respect to are
where from Equation 49 from FIR digital Filters we have for
and for
For this gives
and for gives
Using Equation 50 from FIR Digital Filters for , we have
and for
Choosing gives
and
Writing [link] and [link] in matrix form gives
where is a matrix with elements
except for the first row which is
because of the normalization of the term. The are the cosine coefficients for the unconstrained approximation to the idealfilter which result from truncating the inverse DTFT of .
The derivative of the Lagrangian in [link] with respect to the Lagrange multipliers , when set to zero, gives
which is simply a statement of the equality constraints.
In terms of the filter's cosine coefficients , from Equation 49 from FIR Digital Filters , this can be written"
and as matrices
where is the vector of frequency response values which are the desired response plus or minus the constraints evaluated at thefrequencies in the constraint set. The frequency response must interpolate these values. The matrix is
except for the first column which is
Notice that if , the first rows and columns are such that we have .
The two equations [link] and [link] that must be satisfied can be written as a single matrix equation of the form
or, if , as
which have as solutions
The filter corresponding to the cosine coefficients minimize the error norm subject the equality conditions in [link] .
Notice that the term in [link] of the form is the frequency response of the optimal unconstrained filter evaluated at theconstraint set frequencies. Equation [link] could, therefore, be written
Combining the weighted least squared error formulation with the constrained least squared error gives the general formulation of thisclass of problems.
We now modify the Lagrangian in [link] to allow a weighted squared error giving
Notification Switch
Would you like to follow the 'Digital signal processing and digital filter design (draft)' conversation and receive update notifications?