# 2.11 Fast convolution (ticket #5015)

 Page 1 / 1
Efficient computation of convolution using FFTs.

## Fast circular convolution

Since, $\sum_{m=0}^{N-1} x(m)h(n-m)\mod N=y(n)\mathrm{is equivalent to}Y(k)=X(k)H(k)$ $y(n)$ can be computed as $y(n)=\mathrm{IDFT}(\mathrm{DFT}(x(n))\mathrm{DFT}(h(n)))$

• ## Direct

• $N^{2}$ complex multiplies.
• $N(N-1)$ complex adds.
• ## Via ffts

• 3 FFTs + $N$ multipies.
• $N+\frac{3N}{2}\log_{2}N$ complex multiplies.
• $3N\log_{2}N$ complex adds.
If $H(k)$ can be precomputed, cost is only 2 FFts + $N$ multiplies.

## Fast linear convolution

DFT produces cicular convolution. For linear convolution, we must zero-pad sequences so that circular wrap-around alwayswraps over zeros.

To achieve linear convolution using fast circular convolution, we must use zero-padded DFTs of length $N\ge L+M-1$

Choose shortest convenient $N()$ (usually smallest power-of-two greater than or equal to $L+M-1$ ) $y(n)={\mathrm{IDFT}}_{N}({\mathrm{DFT}}_{N}(x(n)){\mathrm{DFT}}_{N}(h(n)))$

There is some inefficiency when compared to circular convolution due to longer zero-padded DFTs . Still, $O(\frac{N}{\log_{2}N})$ savings over direct computation.

## Running convolution

Suppose $L$ , as in a real time filter application, or $(L, M)$ . There are efficient block methods for computing fast convolution.

## Overlap-save (ols) method

Note that if a length- $M$ filter $h(n)$ is circularly convulved with a length- $N$ segment of a signal $x(n)$ ,

the first $M-1$ samples are wrapped around and thus is incorrect . However, for $M-1\le n\le N-1$ ,the convolution is linear convolution, so these samples are correct. Thus $N-M+1$ good outputs are produced for each length- $N$ circular convolution.

The Overlap-Save Method: Break long signal into successive blocks of $N$ samples, each block overlapping the previous block by $M-1$ samples. Perform circular convolution of each block with filter $h(m)$ . Discard first $M-1$ points in each output block, and concatenate the remaining points to create $y(n)$ .

Computation cost for a length- $N$ equals $2^{n}$ FFT per output sample is (assuming precomputed $H(k)$ ) 2 FFTs and $N$ multiplies $\frac{2\frac{N}{2}\log_{2}N+N}{N-M+1}=\frac{N(\log_{2}N+1)}{N-M+1}\mathrm{complex multiplies}$ $\frac{2N\log_{2}N}{N-M+1}=\frac{2N\log_{2}N}{N-M+1}\mathrm{complex adds}$

Compare to $M$ mults, $M-1$ adds per output point for direct method. For a given $M$ , optimal $N$ can be determined by finding $N$ minimizing operation counts. Usualy, optimal $N$ is $4M\le {N}_{\mathrm{opt}}\le 8M$ .

Zero-pad length- $L$ blocks by $M-1$ samples.

Add successive blocks, overlapped by $M-1$ samples, so that the tails sum to produce the complete linear convolution.

Computational Cost: Two length $N=L+M-1$ FFTs and $M$ mults and $M-1$ adds per $L$ output points; essentially the sames as OLS method.

Is there any normative that regulates the use of silver nanoparticles?
what king of growth are you checking .?
Renato
What fields keep nano created devices from performing or assimulating ? Magnetic fields ? Are do they assimilate ?
why we need to study biomolecules, molecular biology in nanotechnology?
?
Kyle
yes I'm doing my masters in nanotechnology, we are being studying all these domains as well..
why?
what school?
Kyle
biomolecules are e building blocks of every organics and inorganic materials.
Joe
anyone know any internet site where one can find nanotechnology papers?
research.net
kanaga
sciencedirect big data base
Ernesto
Introduction about quantum dots in nanotechnology
what does nano mean?
nano basically means 10^(-9). nanometer is a unit to measure length.
Bharti
do you think it's worthwhile in the long term to study the effects and possibilities of nanotechnology on viral treatment?
absolutely yes
Daniel
how to know photocatalytic properties of tio2 nanoparticles...what to do now
it is a goid question and i want to know the answer as well
Maciej
Abigail
for teaching engĺish at school how nano technology help us
Anassong
Do somebody tell me a best nano engineering book for beginners?
there is no specific books for beginners but there is book called principle of nanotechnology
NANO
what is fullerene does it is used to make bukky balls
are you nano engineer ?
s.
fullerene is a bucky ball aka Carbon 60 molecule. It was name by the architect Fuller. He design the geodesic dome. it resembles a soccer ball.
Tarell
what is the actual application of fullerenes nowadays?
Damian
That is a great question Damian. best way to answer that question is to Google it. there are hundreds of applications for buck minister fullerenes, from medical to aerospace. you can also find plenty of research papers that will give you great detail on the potential applications of fullerenes.
Tarell
what is the Synthesis, properties,and applications of carbon nano chemistry
Mostly, they use nano carbon for electronics and for materials to be strengthened.
Virgil
is Bucky paper clear?
CYNTHIA
carbon nanotubes has various application in fuel cells membrane, current research on cancer drug,and in electronics MEMS and NEMS etc
NANO
so some one know about replacing silicon atom with phosphorous in semiconductors device?
Yeah, it is a pain to say the least. You basically have to heat the substarte up to around 1000 degrees celcius then pass phosphene gas over top of it, which is explosive and toxic by the way, under very low pressure.
Harper
Do you know which machine is used to that process?
s.
how to fabricate graphene ink ?
for screen printed electrodes ?
SUYASH
What is lattice structure?
of graphene you mean?
Ebrahim
or in general
Ebrahim
in general
s.
Graphene has a hexagonal structure
tahir
On having this app for quite a bit time, Haven't realised there's a chat room in it.
Cied
what is biological synthesis of nanoparticles
how did you get the value of 2000N.What calculations are needed to arrive at it
Privacy Information Security Software Version 1.1a
Good
Got questions? Join the online conversation and get instant answers!