# 1.10 Filtering with the dft

 Page 1 / 1
The ideas of using the DFT to filter a signal and recover a signal from a noisy transmission are addressed based on the ideas of the DFT and convolution.

## Introduction

$y(n)=(x(n), h(n))=\sum$ x k h n k
$Y()=X()H()$
Assume that $H()$ is specified.

How can we implement $X()H()$ in a computer?

Discretize (sample) $X()$ and $H()$ . In order to do this, we should take the DFTs of $x(n)$ and $h(n)$ to get $X(k)$ and $X(k)$ . Then we will compute $\stackrel{~}{y}(n)=\mathrm{IDFT}(X(k)H(k))$ Does $\stackrel{~}{y}(n)=y(n)$ ?

Recall that the DFT treats $N$ -point sequences as if they are periodically extended ( ):

## Compute idft of y[k]

$\stackrel{~}{y}(n)=\frac{1}{N}\sum_{k=0}^{N-1} Y(k)e^{i\times 2\pi \frac{k}{N}n}=\frac{1}{N}\sum_{k=0}^{N-1} X(k)H(k)e^{i\times 2\pi \frac{k}{N}n}=\frac{1}{N}\sum_{k=0}^{N-1} \sum_{m=0}^{N-1} x(m)e^{-(i\times 2\pi \frac{k}{N}m)}H(k)e^{i\times 2\pi \frac{k}{N}n}=\sum_{m=0}^{N-1} x(m)\frac{1}{N}\sum_{k=0}^{N-1} H(k)e^{i\times 2\pi \frac{k}{N}(n-m)}=\sum_{m=0}^{N-1} x(m)h({\left(\left(nm\right)\right)}_{N})$
And the IDFT periodically extends $h(n)$ : $\stackrel{~}{h}(n-m)=h({\left(\left(nm\right)\right)}_{N})$ This computes as shown in :

$\stackrel{~}{y}(n)=\sum_{m=0}^{N-1} x(m)h({\left(\left(nm\right)\right)}_{N})$
is called circular convolution and is denoted by .

## Dft pair

Note that in general:

## Regular vs. circular convolution

To begin with, we are given the following two length-3 signals: $x(n)=\{1, 2, 3\}$ $h(n)=\{1, 0, 2\}$ We can zero-pad these signals so that we have the following discrete sequences: $x(n)=\{, 0, 1, 2, 3, 0, \}$ $h(n)=\{, 0, 1, 0, 2, 0, \}$ where $x(0)=1$ and $h(0)=1$ .

• Regular Convolution:
$y(n)=\sum_{m=0}^{2} x(m)h(n-m)$
Using the above convolution formula (refer to the link if you need a review of convolution ), we can calculate the resulting value for $y(0)$ to $y(4)$ . Recall that because we have two length-3 signals, our convolved signal will be length-5.
• $n=0$ $\{, 0, 0, 0, 1, 2, 3, 0, \}$ $\{, 0, 2, 0, 1, 0, 0, 0, \}$
$y(0)=1\times 1+2\times 0+3\times 0=1$
• $n=1$ $\{, 0, 0, 1, 2, 3, 0, \}$ $\{, 0, 2, 0, 1, 0, 0, \}$
$y(1)=1\times 0+2\times 1+3\times 0=2$
• $n=2$ $\{, 0, 1, 2, 3, 0, \}$ $\{, 0, 2, 0, 1, 0, \}$
$y(2)=1\times 2+2\times 0+3\times 1=5$
• $n=3$
$y(3)=4$
• $n=4$
$y(4)=6$

• Circular Convolution:
$\stackrel{~}{y}(n)=\sum_{m=0}^{2} x(m)h({\left(\left(nm\right)\right)}_{N})$
And now with circular convolution our $h(n)$ changes and becomes a periodically extended signal:
$h({\left(\left(n\right)\right)}_{N})=\{, 1, 0, 2, 1, 0, 2, 1, 0, 2, \}$
• $n=0$ $\{, 0, 0, 0, 1, 2, 3, 0, \}$ $\{, 1, 2, 0, 1, 2, 0, 1, \}$
$\stackrel{~}{y}(0)=1\times 1+2\times 2+3\times 0=5$
• $n=1$ $\{, 0, 0, 0, 1, 2, 3, 0, \}$ $\{, 0, 1, 2, 0, 1, 2, 0, \}$
$\stackrel{~}{y}(1)=1\times 1+2\times 1+3\times 2=8$
• $n=2$
$\stackrel{~}{y}(2)=5$
• $n=3$
$\stackrel{~}{y}(3)=5$
• $n=4$
$\stackrel{~}{y}(4)=8$

illustrates the relationship between circular convolution and regularconvolution using the previous two figures:

## Regular convolution from periodic convolution

• "Zero-pad" $x(n)$ and $h(n)$ to avoid the overlap (wrap-around) effect. We will zero-pad the two signals to a length-5 signal (5being the duration of the regular convolution result): $x(n)=\{1, 2, 3, 0, 0\}$ $h(n)=\{1, 0, 2, 0, 0\}$
• Now take the DFTs of the zero-padded signals:
$\stackrel{~}{y}(n)=\frac{1}{N}\sum_{k=0}^{4} X(k)H(k)e^{i\times 2\pi \frac{k}{5}n}=\sum_{m=0}^{4} x(m)h({\left(\left(nm\right)\right)}_{5})$
Now we can plot this result ( ):

We can compute the regular convolution result of a convolution of an $M$ -point signal $x(n)$ with an $N$ -point signal $h(n)$ by padding each signal with zeros to obtain two $M+N-1$ length sequences and computing the circular convolution (or equivalently computing the IDFT of $H(k)X(k)$ , the product of the DFTs of the zero-padded signals) ( ).

## Dsp system

• Sample finite duration continuous-time input $x(t)$ to get $x(n)$ where $n=\{0, , M-1\}$ .
• Zero-pad $x(n)$ and $h(n)$ to length $M+N-1$ .
• Compute DFTs $X(k)$ and $H(k)$
• Compute IDFTs of $X(k)H(k)$ $y(n)=\stackrel{~}{y}(n)$ where $n=\{0, , M+N-1\}$ .
• Reconstruct $y(t)$

#### Questions & Answers

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
characteristics of micro business
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! By Jordon Humphreys By Sam Luong     By   By Rhodes