# 2.2 Least squared error design of fir filters  (Page 5/13)

 Page 5 / 13
$q\phantom{\rule{0.166667em}{0ex}}=\phantom{\rule{0.166667em}{0ex}}\frac{1}{\pi }{\int }_{0}^{\pi }{|{A}_{d}\left(\omega \right)-A\left(\omega \right)|}^{2}\phantom{\rule{0.166667em}{0ex}}d\omega$

where ${A}_{d}\left(\omega \right)$ is the desired ideal amplitude response, $A\left(\omega \right)={\sum }_{n}a\left(n\right)\phantom{\rule{0.166667em}{0ex}}cos\left(\omega \left(M-N\right)n\right)$ is the achieved amplitude response with the length $h\left(n\right)$ related to $h\left(n\right)$ by Equation 29 from FIR Digital Filters . This integral squared error is approximated by the discrete squared errordefined in [link] for $L>>N$ which in some cases is much easier to minimize. However for some very useful cases, formulas can be foundfor $h\left(n\right)$ that minimize [link] and that is what we will be considering in this section.

## The unweighted least integral squared error approximation

If the error measure is the unweighted integral squared error defined in [link] , Parseval's theorem gives the equivalent time-domain formulation for the error to be

$q\phantom{\rule{0.166667em}{0ex}}=\phantom{\rule{0.166667em}{0ex}}\sum _{n=-\infty }^{\infty }|{h}_{d}{\left(n\right)-h\left(n\right)|}^{2}=\phantom{\rule{0.166667em}{0ex}}\frac{1}{\pi }{\int }_{0}^{\pi }{|{A}_{d}\left(\omega \right)-A\left(\omega \right)|}^{2}\phantom{\rule{0.166667em}{0ex}}d\omega .$

In general, this ideal response is infinite in duration and, therefore, cannot be realized exactly byan actual FIR filter.

As was done in the case of the discrete error measure, we break the infinite sum in [link] into two parts, one of which depends on $h\left(n\right)$ and the other does not.

$q\phantom{\rule{0.166667em}{0ex}}=\phantom{\rule{0.166667em}{0ex}}\sum _{n=-M}^{M}\phantom{\rule{0.166667em}{0ex}}|{h}_{d}{\left(n\right)-h\left(n\right)|}^{2}\phantom{\rule{0.166667em}{0ex}}+\phantom{\rule{0.166667em}{0ex}}\phantom{\rule{0.166667em}{0ex}}2\sum _{n=M+1}^{\infty }{|{h}_{d}\left(n\right)|}^{2}$

Again, we see that the minimum $q$ is achieved by using $h\left(n\right)={h}_{d}\left(n\right)$ for $-M\le n\le M$ . In other words, the infinitely long ${h}_{d}\left(n\right)$ is symmetrically truncated to give the optimal least integral squared errorapproximation. The problem then becomes one of finding the ${h}_{d}\left(n\right)$ to truncate.

Here the integral definition of approximation error is used. This is usually what we really want, but in some cases the integrals can not becarried out and the sampled method above must be used.

## Ideal constant gain passband lowpass filter

Here we assume the simplest ideal lowpass single band FIR filter to have unity passband gain for $0<\omega <{\omega }_{0}$ and zero stopband gain for ${\omega }_{0}<\omega <\pi$ similar to those in Figure 8a from FIR Digital Filters and [link] . This gives

${A}_{d}\left(\omega \right)=\left\{\begin{array}{c}1\phantom{\rule{10pt}{0ex}}((0, \omega ), {\omega }_{0})\hfill \\ 0\phantom{\rule{10pt}{0ex}}(({\omega }_{0}, \omega ), \pi )\hfill \end{array}$

as the ideal desired amplitude response. The ideal shifted filter coefficients are the inverse DTFT from Equation 15 from Chebyshev or Equal Ripple Error Approximation Filters of this amplitude which for $N$ odd are given by

${\stackrel{^}{h}}_{d}\left(n\right)\phantom{\rule{0.166667em}{0ex}}=\phantom{\rule{0.166667em}{0ex}}\frac{1}{\pi }{\int }_{0}^{\pi }{A}_{d}\left(\omega \right)\phantom{\rule{0.166667em}{0ex}}cos\left(\omega n\right)\phantom{\rule{0.166667em}{0ex}}d\omega$
$=\frac{1}{\pi }{\int }_{0}^{{\omega }_{0}}cos\left(\omega n\right)\phantom{\rule{0.166667em}{0ex}}d\omega =\left(\frac{{\omega }_{0}}{\pi }\right)\phantom{\rule{0.166667em}{0ex}}\frac{sin\left({\omega }_{0}n\right)}{{\omega }_{0}n}$

which is sometimes called a “sinc" function. Note ${\stackrel{^}{h}}_{d}\left(n\right)$ is generally infinite in length. This is now symmetricallytruncated and shifted by $M=\left(N-1\right)/2$ to give the optimal, causal length- $N$ FIR filter coefficients as

$h\left(n\right)\phantom{\rule{0.166667em}{0ex}}=\phantom{\rule{0.166667em}{0ex}}\left(\frac{{\omega }_{0}}{\pi }\right)\frac{sin\left({\omega }_{0}\left(n-M\right)\right)}{{\omega }_{0}\left(n-M\right)}\phantom{\rule{4.pt}{0ex}}\phantom{\rule{4.pt}{0ex}}\phantom{\rule{4.pt}{0ex}}\text{for}\phantom{\rule{4.pt}{0ex}}0\le n\le N-1$

and $h\left(n\right)=0$ otherwise. The corresponding derivation for an even length starts with the inverseDTFT in Equation 5 from Constrained Approximation and Mixed Criteria for a shifted even length filter is

${\stackrel{^}{h}}_{d}\phantom{\rule{0.166667em}{0ex}}=\phantom{\rule{0.166667em}{0ex}}\frac{1}{\pi }{\int }_{0}^{\pi }{A}_{d}\left(\omega \right)\phantom{\rule{0.166667em}{0ex}}cos\left(\omega \left(n+1/2\right)\right)\phantom{\rule{0.166667em}{0ex}}d\omega \phantom{\rule{0.166667em}{0ex}}=\phantom{\rule{0.166667em}{0ex}}\left(\frac{{\omega }_{0}}{\pi }\right)\phantom{\rule{0.166667em}{0ex}}\frac{sin\left({\omega }_{0}\left(n+1/2\right)\right)}{{\omega }_{0}\left(n+1/2\right)}$

which when truncated and shifted by $N/2$ gives the same formula as for the odd length design in [link] but one should note that $M=\left(N-1\right)/2$ is not an integer for an even $N$ .

## Ideal linearly increasing gain passband lowpass filter

We now derive the design formula for a filter with an ideal amplitude response that is a linearly increasing function in the passband ratherthan a constant as was assumed above. This ideal amplitude response is given byand illustrated in [link] For $N$ odd, the ideal infinitely long shifted filter coefficients are the inverse DTFT of this amplitude given by

anyone know any internet site where one can find nanotechnology papers?
research.net
kanaga
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
what's the easiest and fastest way to the synthesize AgNP?
China
Cied
types of nano material
I start with an easy one. carbon nanotubes woven into a long filament like a string
Porter
many many of nanotubes
Porter
what is the k.e before it land
Yasmin
what is the function of carbon nanotubes?
Cesar
I'm interested in nanotube
Uday
what is nanomaterials​ and their applications of sensors.
how did you get the value of 2000N.What calculations are needed to arrive at it
Privacy Information Security Software Version 1.1a
Good
Berger describes sociologists as concerned with
Got questions? Join the online conversation and get instant answers!