# 4.4 Java1485-spectrum analysis using java, forward and inverse  (Page 4/14)

 Page 4 / 14

## The real part of the spectrum is symmetrical

The real part of the complex spectrum is shown in the second plot from the top in Figure 1 . It will become important later to note that the real part of the spectrum is symmetrical about the folding frequency near the center of theplot (at the eighth tick mark) .

Without attempting to explain why, I will simply tell you that the real part of the Fourier transform of a complex series whose imaginary part is all zeros (like a typical sampled time series for real-world data) is always symmetrical about the folding frequency.

## The imaginary part of the spectrum is asymmetrical

The imaginary part of the complex spectrum is shown in the third plot from the top. Again, it will become important later to note that the imaginary partof the spectrum is asymmetrical about the folding frequency.

Once again, without attempting to explain why, the imaginary part of the Fourier transform of a complex series whose imaginary part is all zeros (like a typical sampled time series for real-world data) is always asymmetrical about the folding frequency.

## The converse is also true

It is also true that the values of the imaginary part of the Fourier transform of a complex spectrum whose real part is symmetrical about the foldingfrequency and whose imaginary part is asymmetrical about the folding frequency will all be zero. I will take advantage of these facts later to simplify thecomputing and plotting process.

## The amplitude spectrum

The amplitude spectrum is shown in the fourth plot down from the top. Recall from previous modules that the amplitude values are always positive, consistingof the square root of the sum of the squares of the real and imaginary parts.

## The output time series

The output time series, produced by performing an inverse Fourier transform on the complex spectrum is shown in the bottom plot in Figure 1 . Compare the bottom plot to the top plot. As you can see, they are the same, demonstratingthe reversible nature of the Fourier transform.

## The program named Dsp035

I will discuss this program in fragments. A complete listing of the program is provided in Listing 14 near the end of the module.

## The beginning of the class named Dsp035

The beginning of the class for Dsp035 , including the declaration of some variables and the creation of some array objects is shown in Listing 1 . This code is straightforward.

Listing 1. The beginning of the class named Dsp035.
```class Dsp035 implements GraphIntfc01{ final double pi = Math.PI;int len = 256; double[]timeDataIn = new double[len];double[] realSpect = new double[len]; double[]imagSpect = new double[len];double[] angle = new double[len];//unused double[]magnitude = new double[len];double[] timeDataOut = new double[len];```

## Beginning of the constructor

The constructor begins in Listing 2 . The code in Listing 2 creates the input time series data shown in the top plot of Figure 1 .

Listing 2. Beginning of the constructor.
```public Dsp035(){//constructor //Create the raw data pulsestimeDataIn[0] = 0;timeDataIn[1] = 50;//... //code deleted for brevity//... timeDataIn[254]= -80; timeDataIn[255]= -80; //Create raw data sinusoidfor(int x = len/3;x<3*len/4;x++){ timeDataIn[x]= 80.0 * Math.sin( 2*pi*(x)*1.0/20.0);}//end for loop```

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.
Got questions? Join the online conversation and get instant answers!