next Polynomial Multiplication
previous Commutativity of Convolution
up Convolution   Contents   Global Contents
global_index Global Index   Index   Search


Graphical Convolution

Note that the cyclic convolution operation can be expressed in terms of previously defined operators as

$\displaystyle y(n) \isdef (x\ast h)_n \isdef \sum_{m=0}^{N-1}x(m)h(n-m) =
\left<x,\hbox{\sc Shift}_n(\hbox{\sc Flip}(h))\right>$   $\displaystyle \mbox{($h$\ real)}$

where $ x,y\in{\bf C}^N$ and $ h\in{\bf R}^N$. It is instructive to interpret the last expression above graphically.

Figure: Illustration of convolution of $ y=[1,1,1,1,0,0,0,0]$ and ``matched filter'' $ h=[1,0,0,0,0,1,1,1]$ ($ N=8$).
\resizebox{2.5in}{!}{\includegraphics{eps/conv.eps}}

Figure 7.3 illustrates convolution of

\begin{eqnarray*}
y&=&[1,1,1,1,0,0,0,0] \\
h&=&[1,0,0,0,0,1,1,1]
\end{eqnarray*}

to get

$\displaystyle y\ast h = [4,3,2,1,0,1,2,3] \protect$ (7.2)

For example, $ y$ could be a ``rectangularly windowed signal, zero-padded by a factor of 2,'' where the signal happened to be dc (all $ 1$s). For the convolution, we need

$\displaystyle \hbox{\sc Flip}(h) = [1,1,1,1,0,0,0,0]
$

which is the same as $ y$. When $ h=\hbox{\sc Flip}(y)$, we say that $ h$ is matched filter for $ y$.7.3 In this case, $ h$ is matched to look for a ``dc component,'' and also zero-padded by a factor of $ 2$. The zero-padding serves to simulate acyclic convolution using circular convolution. Note from Eq. (7.2) that the maximum is obtained in the convolution output at time 0. This peak (the largest possible if all input signals are limited to $ [-1,1]$ in magnitude), indicates the matched filter has ``found'' the dc signal starting at time 0. This peak would persist even if various sinusoids at other frequencies and/or noise were added in.


next Polynomial Multiplication
previous Commutativity of Convolution
up Convolution   Contents   Global Contents
global_index Global Index   Index   Search

``Mathematics of the Discrete Fourier Transform (DFT)'', by Julius O. Smith III, W3K Publishing, 2003, ISBN 0-9745607-0-7.

(Browser settings for best viewing results)
(How to cite this work)
(Order a printed hardcopy)

Copyright © 2003-10-09 by Julius O. Smith III
Center for Computer Research in Music and Acoustics (CCRMA),   Stanford University
CCRMA  (automatic links disclaimer)