Search Mathematics of the DFT
Book Index | Global Index
Would you like to be notified by email when Julius Orion Smith III publishes a new entry into his blog?
Convolution Example 1: Smoothing a Rectangular Pulse
Figure 7.3:
Illustration of the convolution of a rectangular pulse
and the impulse response
of an ``averaging filter''
(
).
Filter output signal  .
|
Figure 7.3 illustrates convolution of
with
to get
![$\displaystyle y = x\circledast h = \left[0,0,0,0,\frac{1}{3},\frac{2}{3},1,1,1,1,\frac{2}{3},\frac{1}{3},0,0\right] \protect$](http://www.dsprelated.com/josimages/mdft/img1175.png) |
(7.2) |
as graphed in Fig.
7.3(c).
In this case,

can be viewed as a ``moving three-point average''
filter. Note how the corners of the rectangular pulse are ``smoothed''
by the three-point filter. Also note that the pulse is smeared to the
``right'' (forward in time) because the filter impulse response starts
at time zero. Such a filter is said to be
causal (see
[
65] for details). By shifting the impulse response left one
sample to get
(in which case

), we obtain a noncausal filter

which is
symmetric about time zero so that the input signal is smoothed ``in
place'' with no added delay (imagine Fig.
7.3(c) shifted left
one sample, in which case the input pulse edges align with the
midpoint of the rise and fall in the output signal).
Previous:
Convolution as a Filtering OperationNext:
Convolution Example 2: ADSR Envelope
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.