i
i
i
i
i
i
i
i
9.2. Convolution 195
So clearly, convolving b with d just gives back b again. The sequence d is known
as the discrete impluse. It is occasionally useful in expressing a filter: for instance,
the process of smoothing a signal b with a filter a and then subtracting that from
the original could be expressed as a single convolution with the filter d − a:
c = b − ab= db− ab=(d − a) b.
9.2.3 Convolution as a Sum of Shifted Filters
There is a second, entirely equivalent, way of interpreting Equation (9.2). Look-
ing at the samples of ab one at a time leads to the weighted-average interpretation
that we have already seen. But if we omit the [i], we can instead think of the sum
as adding together entire sequences. One piece of notation is required to make
this work: if b is a sequence, then the same sequence shifted to the right by j
places is called b
→j
(Figure 9.8):
b
→j
[i]=b[i − j].
Then, we can write Equation (9.2) as a statement about the whole sequence (ab)
–4–20246
i
–4–20246
i
b
3
[i ]b
3
[i ]
b[i ]b[i ]
Figure 9.8. Shifting a se-
quence
b
to get
b
→
j
.
rather than element-by-element:
(ab)=
j
a[j]b
→j
.
Looking at it this way, the convolution is a sum of shifted copies of b, weighted
by the entries of a (Figure 9.9). Because of commutativity, we can pick either a
Σ
0
0 5 10 15
a[j ]
a[j ]b
j
a[j ]b
j
a[5]b
5
a[5]a[5]
a[9]
a[9]b
9
a b
Figure 9.9. Discrete convolution as a sum of shifted copies of the filter.