Search Spectral Audio Signal Processing
Book Index | Global Index
Would you like to be notified by email when Julius Orion Smith III publishes a new entry into his blog?
Optimal (but poor) Least-Squares
Impulse Response Design
Perhaps the most commonly employed error criterion in signal
processing is the least-squares error criterion.
Let
denote some ideal filter impulse response, possibly
infinitely long, and let
denote the impulse response of a
length
causal FIR filter we wish to design. The sum of squared
errors is given by
where

does not depend on

. Note that

.
We can minimize the error by simply matching the first

terms in
the desired impulse response. That is, the optimal least-squares FIR
filter has the following ``tap'' coefficients:
![$\displaystyle {\hat h}(n) \isdef \left\{\begin{array}{ll} h(n), & 0\leq n \leq L-1 \\ [5pt] 0, & \hbox{otherwise} \\ \end{array} \right. \protect$](http://www.dsprelated.com/josimages/sasp/img2469.png) |
(B.2) |
The same solution works also for any
norm. That is, the error
is also miminized by matching the leading

terms of the desired
impulse response.
In the
case, we have, by the Fourier energy theorem
(§2.3.8),
Therefore,

is an optimal
least-squares
approximation to

when

is given by (
B.2). In
other words, the
frequency response of the filter

is optimal in
the

sense.
Subsections
Previous:
The Ideal Lowpass FilterNext:
Examples
written by Julius Orion Smith III
Julius Smith's background is in electrical engineering (BS Rice 1975, PhD Stanford 1983). He is presently Professor of Music and Associate Professor (by courtesy) of Electrical Engineering at
Stanford's Center for Computer Research in Music and Acoustics (CCRMA), teaching courses and pursuing research related to signal processing applied to music and audio systems. See
http://ccrma.stanford.edu/~jos/ for details.