Skip to content Skip to navigation

Connexions

You are here: Home » Content » Circular Convolution

Navigation

Content Actions

  • Download module PDF
  • Add to ...
    Add the module to:
    • My Favorites
    • A lens
    • An external social bookmarking service
    • My Favorites (What is 'My Favorites'?)
      'My Favorites' is a special kind of lens which you can use to bookmark modules and collections directly in Connexions. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need a Connexions account to use 'My Favorites'.
    • A lens (What is a lens?)

      Definition of a lens

      Lenses

      A lens is a custom view of Connexions content. You can think of it as a fancy kind of list that will let you see Connexions through the eyes of organizations and people you trust.

      What is in a lens?

      Lens makers point to Connexions materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

      Who can create a lens?

      Any individual Connexions member, a community, or a respected organization.

    • External bookmarks
  • E-mail the author

Recently Viewed

Circular Convolution

Module by: Richard Baraniuk

Summary: Introduction to circular convolution.

  • DSP-speak for the operation
    y=x y x (1)
    when is a circulant matrix corresponding to an LSI system (Figure 1).
  • Write out matrix multiply y=x y x
    ·= · (2)
    where the · is in the nth n th row.
    yn=k=0N-1nkxk y n k 0 N 1 n k x k (3)
    where is a circulant matrix and nk=hn-kmodN n k h n k N
Figure 1: is LSI.
Figure 1 (matmult.png)
yn=k=0N-1hn-kmodNxk y n k 0 N 1 h n k N x k (4)
y= h N x y h N x (5)
yn= h N x n y n h N x n (6)

Notation

Since impulse response hh completely describes , we often write: Figure 2 and Figure 3.

Figure 2
Figure 2 (matmult2.png)
Figure 3
Figure 3 (matmult3.png)

Inner Product Interpretation of Circular Convolution

Define the time reversal matrix as a matrix that reverses the time axis of a column vector (Figure 4).

hk=h-kmodN h k h k N (7)
Figure 4: N=4 N 4 .
Subfigure 4.1: hh.
Subfigure 4.1 (trm1.png)
Subfigure 4.2: flip h h.
Subfigure 4.2 (trm2.png)
Subfigure 4.3: flip hmodN flip h N i.e.: to periodize with a period of NN.
Subfigure 4.3 (trm3.png)
Subfigure 4.4: h h .
Subfigure 4.4 (trm4.png)
h0modNh-1modNh-2modNh-3modN=h0modNh3modNh2modNh1modN=1000000100100100h0modNh1modNh2modNh3modN h 0 N h -1 N h -2 N h -3 N h 0 N h 3 N h 2 N h 1 N 1 0 0 0 0 0 0 1 0 0 1 0 0 1 0 0 h 0 N h 1 N h 2 N h 3 N (8)

Note:

Given circulant =132213321 1 3 2 2 1 3 3 2 1 zeroth column h0c=123 h 0 c 1 2 3 zeroth row h0cT=132T=132 h 0 c 1 3 2 1 3 2
So circular convolution can be written as this yn= inner product of row n of (turned into a column) =<x, row n of tipped into a column > y n inner product of row n of (turned into a column) x row n of tipped into a column but row nn of tipped into a column vector is
hnrT= C n h0T= C n h0c h n r C n h 0 C n h 0 c (9)
which is the circular shift of the zeroth row and where h0T=h0c h 0 h 0 c and is the time reversed column.

& so...

yn=<x, C n h0c> y n x C n h 0 c (10)
for N N ; put a * in second entry for N N .

The Ring of Doom

modN N operations are natural on a circle! Since they are naturally N N-periodic (Figure 5).

Figure 5: x=3210T x 3 2 1 0 .
Subfigure 5.1: 0nN-1 0 n N 1 .
Subfigure 5.1 (x.png)
Subfigure 5.2: -<n< n .
Subfigure 5.2 (x2.png)
We can put xx on a circle/wheel (Figure 6).
Figure 6: Time runs counter-clockwise.
Figure 6 (circ1.png)

To do a circular shift by m m, C m x C m x : just spin the wheel counter-clockwise mm units and read off the new signal.

Example 1

m=2 m 2 , C 2 C 2 (Figure 7).

Figure 7: Spin two spots counter-clockwise then C 2 x=x2x3x0x1T C 2 x x 2 x 3 x 0 x 1 .
Subfigure 7.1
Subfigure 7.1 (circ1.png)
Subfigure 7.2
Subfigure 7.2 (circ2.png)

Time reversal, x x : just read off wheel in clockwise direction (Figure 8).

Example 2

Figure 8: Read off in time reversed order then x=x0x3x2x1T x x 0 x 3 x 2 x 1 .
Subfigure 8.1
Subfigure 8.1 (circ3.png)
Subfigure 8.2
Subfigure 8.2 (circ4.png)

"How to do" Cyclic Convolution

Cyclic convolution works modN N is equivalent to "on the wheel," where the cylinder analogy is powerful.

yn=m=0N-1xmhn-mmodN y n m 0 N 1 x m h n m N (11)

Step 1

Plot xm x m (Figure 9).

Figure 9
Figure 9 (circ5.png)

Step 2

Plot hm h m (backwards on cylinder) (Figure 10).

Figure 10
Figure 10 (circ6.png)

Step 3

Spin h-m h m nn steps to implement hn-mmodN h n m N anti-clockwise.

Step 4

Multiply pointwise xm x m wheel and hn-mmodN h n m N wheel. The sum equals yn y n .

Step 5

Repeat steps 3 and 4 for all n n.

Comments, questions, feedback, criticisms?

Send feedback