Skip to content Skip to navigation Skip to collection information

OpenStax_CNX

You are here: Home » Content » Intro to Digital Signal Processing » Fast Convolution Using the FFT

Navigation

Table of Contents

Lenses

What is a lens?

Definition of a lens

Lenses

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

What is in a lens?

Lens makers point to 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 member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

This content is ...

Affiliated with (What does "Affiliated with" mean?)

This content is either by members of the organizations listed or about topics related to the organizations listed. Click each link to see a list of all content affiliated with the organization.
  • Rice Digital Scholarship

    This collection is included in aLens by: Digital Scholarship at Rice University

    Click the "Rice Digital Scholarship" link to see all content affiliated with them.

Recently Viewed

This feature requires Javascript to be enabled.
 

Fast Convolution Using the FFT

Module by: Robert Nowak. E-mail the author

Summary: This module describes FFT, convolution, filtering, LTI systems, digital filters and circular convolution.

Important Application of the FFT

Exercise 1

How many complex multiplies and adds are required to convolve two NN-pt sequences? yn=m=0N1xmhnm y n m 0 N 1 x m h n m

Solution

There are 2N1 2 N 1 non-zero output points and each will be computed using NN complex mults and N1 N 1 complex adds. Therefore, Total Cost=(2N1)(N+N1)ON2 Total Cost 2 N 1 N N 1 O N 2

  1. Zero-pad these two sequences to length 2N1 2 N 1 , take DFTs using the FFT algorithm xnXk x n X k hnHk h n H k The cost is O(2N1)log(2N1)=ONlogN O 2 N 1 2 N 1 O N N
  2. Multiply DFTs XkHk X k H k The cost is O2N1=ON O 2 N 1 O N
  3. Inverse DFT using FFT XkHkyn X k H k y n The cost is O(2N1)log(2N1)=ONlogN O 2 N 1 2 N 1 O N N

So the total cost for direct convolution of two NN-point sequences is ON2 O N 2 . Total cost for convolution using FFT algorithm is ONlogN O N N . That is a huge savings (Figure 1).

Figure 1
Figure 1 (figure1.png)

Summary of DFT

  • xn x n is an NN-point signal (Figure 2).
Figure 2
Figure 2 (figure2.png)
  • Xk=n=0N1xne(j2πNkn)=n=0N1xn WN kn X k n 0 N 1 x n 2 N k n n 0 N 1 x n WN k n where WN =e(j2πN) WN 2 N is a "twiddle factor" and the first part is the basic DFT.

What is the DFT

Xk=XF=kN=n=0N1xne(j2πFn) X k X F k N n 0 N 1 x n 2 F n where XF=kN X F k N is the DTFT of xn x n and n=0N1xne(j2πFn) n 0 N 1 x n 2 F n is the DTFT of xn x n at digital frequency FF. This is a sample of the DTFT. We can do frequency domain analysis on a computer!

Inverse DFT (IDFT)

xn=1Nn=0N1Xkej2πNkn x n 1 N n 0 N 1 X k 2 N k n

  • Build xn x n using Simple complex sinusoidal building block signals
  • Amplitude of each complex sinusoidal building block in xn x n is 1NXk 1 N X k

Circular Convolution

DFT

xnhnXkHk x n h n X k H k
(1)

Regular Convolution from Circular Convolution

  • Zero pad xn x n and hn h n to length=lengthx+lengthh1 length length x length h 1
  • Zero padding increases frequency resolution in DFT domain (Figure 3)

Figure 3
(a) 8-pt DFT of 8-pt signal(b) 16-pt DFT of same signal padded with 8 additional zeros
Figure 3(a) (figure3-1.png)Figure 3(b) (figure3-2.png)

The Fast Fourier Transform (FFT)

  • Efficient computational algorithm for calculating the DFT
  • "Divide and conquer"
  • Break signal into even and odd samples keep taking shorter and shorter DFTs, then build NN-pt DFT by cleverly combining shorter DFTs
  • NN-pt DFT: ON2ONlog 2 N O N 2 O N 2 N

Fast Convolution

  • Use FFT's to compute circular convolution of zero-padded signals
  • Much faster than regular convolution if signal lengths are long
  • ON2ONlog 2 N O N 2 O N 2 N

See Figure 4.

Figure 4
Figure 4 (figure4.png)

Collection Navigation

Content actions

Download:

Collection as:

PDF | EPUB (?)

What is an EPUB file?

EPUB is an electronic book format that can be read on a variety of mobile devices.

Downloading to a reading device

For detailed instructions on how to download this content's EPUB to your specific device, click the "(?)" link.

| More downloads ...

Module as:

PDF | EPUB (?)

What is an EPUB file?

EPUB is an electronic book format that can be read on a variety of mobile devices.

Downloading to a reading device

For detailed instructions on how to download this content's EPUB to your specific device, click the "(?)" link.

| More downloads ...

Add:

Collection to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

Definition of a lens

Lenses

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

What is in a lens?

Lens makers point to 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 member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks

Module to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

Definition of a lens

Lenses

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

What is in a lens?

Lens makers point to 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 member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks