<< 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

how to study physic and understand
Ewa Reply
what is conservative force with examples
Moses
what is work
Fredrick Reply
the transfer of energy by a force that causes an object to be displaced; the product of the component of the force in the direction of the displacement and the magnitude of the displacement
AI-Robot
why is it from light to gravity
Esther Reply
difference between model and theory
Esther
Is the ship moving at a constant velocity?
Kamogelo Reply
The full note of modern physics
aluet Reply
introduction to applications of nuclear physics
aluet Reply
the explanation is not in full details
Moses Reply
I need more explanation or all about kinematics
Moses
yes
zephaniah
I need more explanation or all about nuclear physics
aluet
Show that the equal masses particles emarge from collision at right angle by making explicit used of fact that momentum is a vector quantity
Muhammad Reply
yh
Isaac
A wave is described by the function D(x,t)=(1.6cm) sin[(1.2cm^-1(x+6.8cm/st] what are:a.Amplitude b. wavelength c. wave number d. frequency e. period f. velocity of speed.
Majok Reply
what is frontier of physics
Somto Reply
A body is projected upward at an angle 45° 18minutes with the horizontal with an initial speed of 40km per second. In hoe many seconds will the body reach the ground then how far from the point of projection will it strike. At what angle will the horizontal will strike
Gufraan Reply
Suppose hydrogen and oxygen are diffusing through air. A small amount of each is released simultaneously. How much time passes before the hydrogen is 1.00 s ahead of the oxygen? Such differences in arrival times are used as an analytical tool in gas chromatography.
Ezekiel Reply
please explain
Samuel
what's the definition of physics
Mobolaji Reply
what is physics
Nangun Reply
the science concerned with describing the interactions of energy, matter, space, and time; it is especially interested in what fundamental mechanisms underlie every phenomenon
AI-Robot
what is isotopes
Nangun Reply
nuclei having the same Z and different N s
AI-Robot
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