<< Chapter < Page
  Digital signal processing - dsp     Page 8 / 14
Chapter >> Page >

The complexToComplex method can be used to perform either a forward or an inverse transform. The value of the first parameter determineswhether the method performs a forward or an inverse Fourier transform.

The first parameter of the complextocomplex method

A value of +1 for the first parameter causes the complexToComplex method to perform a forward Fourier transform.

A value of -1 for the first parameter causes the complexToComplex method to perform an inverse Fourier transform.

The forward transform

Although I didn't include the code in this module, (because it was shown in an earlier module) , the transform method in Figure 7 passes a value of +1 to the complexToComplex method to cause it to perform a forward Fourier transform.

The inverse transform

Similarly, the inverseTransform method shown in Listing 17 passes a value of -1 to the complexToComplex method to cause it to perform an inverse Fourier transform.

Fft and dft produce equivalent results

As evidenced in Figure 1 and Figure 2 , the program named Dsp035 , which uses a DFT algorithm, produces the same results as the program named Dsp036 , which uses an FFT algorithm. However, if you were to put a timer on each of the programs, you would find that Dsp036 runs faster due to the improved speed of the FFT algorithm over the DFTalgorithm.

Using a Fourier transform to perform frequency filtering

The program named Dsp037 illustrates frequency filtering accomplished by modifying the complex spectrum in the frequency domain and thenperforming an inverse Fourier transform on the modified frequency-domain data. The results are shown in Figure 4 .

Figure 4. Filtering in the frequency domain.
missing image

Operation of the program

The program begins by using an FFT algorithm to perform a forward Fourier transform on a single impulse in the time domain.

(A DFT algorithm could have been used equally as well, but it would have been slower.)

The impulse is shown as the input time series in the topmost plot in Figure 4 .

(Although I didn't show the complex spectrum of the impulse, we know that the magnitude of the spectrum of an impulse is constant across allfrequencies. In other words, the magnitude spectrum of an impulse is a flat line from zero to the sampling frequency and above.)

Modify the complex spectrum

Then the program eliminates all energy between one-sixth and five-sixths of the sampling frequency by setting the real and imaginary parts of the FFT outputto zero.

The second, third, and fourth plots in Figure 4 show the real part, imaginary part, and amplitude respectively of the modified complex spectrum.

(The two boxes in the fourth plot in Figure 4 show what's left of the spectral energy after the energy in the middle of the band has beeneliminated.)

The folding frequency in these three plots is near the center of the plot at the eighth tick mark.

The plotting format

The input data length was 256 samples. All but one of the input data values was set to zero resulting in a single impulse in the input time series near thesecond tick mark in Figure 4 .

Questions & Answers

what is biology
Hajah Reply
the study of living organisms and their interactions with one another and their environments
AI-Robot
what is biology
Victoria Reply
HOW CAN MAN ORGAN FUNCTION
Alfred Reply
the diagram of the digestive system
Assiatu Reply
allimentary cannel
Ogenrwot
How does twins formed
William Reply
They formed in two ways first when one sperm and one egg are splited by mitosis or two sperm and two eggs join together
Oluwatobi
what is genetics
Josephine Reply
Genetics is the study of heredity
Misack
how does twins formed?
Misack
What is manual
Hassan Reply
discuss biological phenomenon and provide pieces of evidence to show that it was responsible for the formation of eukaryotic organelles
Joseph Reply
what is biology
Yousuf Reply
the study of living organisms and their interactions with one another and their environment.
Wine
discuss the biological phenomenon and provide pieces of evidence to show that it was responsible for the formation of eukaryotic organelles in an essay form
Joseph Reply
what is the blood cells
Shaker Reply
list any five characteristics of the blood cells
Shaker
lack electricity and its more savely than electronic microscope because its naturally by using of light
Abdullahi Reply
advantage of electronic microscope is easily and clearly while disadvantage is dangerous because its electronic. advantage of light microscope is savely and naturally by sun while disadvantage is not easily,means its not sharp and not clear
Abdullahi
cell theory state that every organisms composed of one or more cell,cell is the basic unit of life
Abdullahi
is like gone fail us
DENG
cells is the basic structure and functions of all living things
Ramadan
What is classification
ISCONT Reply
is organisms that are similar into groups called tara
Yamosa
in what situation (s) would be the use of a scanning electron microscope be ideal and why?
Kenna Reply
A scanning electron microscope (SEM) is ideal for situations requiring high-resolution imaging of surfaces. It is commonly used in materials science, biology, and geology to examine the topography and composition of samples at a nanoscale level. SEM is particularly useful for studying fine details,
Hilary
cell is the building block of life.
Condoleezza Reply
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Digital signal processing - dsp. OpenStax CNX. Jan 06, 2016 Download for free at https://legacy.cnx.org/content/col11642/1.38
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Digital signal processing - dsp' conversation and receive update notifications?

Ask