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

That's it for dsp029

That's about it for the program named Dsp029 . If you understand this program, you are well ahead of the game. The overall structurefor the programs named Dsp028 and Dsp030 are very similar to the structure for Dsp029 . The big difference is the manner in which they populate the array objects with the data that is to beplotted. Instead of simply plotting sinusoids, they perform spectral analysis on sinusoids and provide the results of the spectral analysis to be plotted.

Using the interface named graphintfc01

As you learned earlier, this is a very simple interface. However, because the class named Dsp029 implements the interface, the interface definition file must be in the same directory as the source file for Dsp029 in order to successfully compile Dsp029 . Therefore, I have provided a complete listing of GraphIntfc01 in Listing 17 near the end of the module.

The program named Graph06

A complete listing of the program named Graph06 is provided in Listing 18 near the end of the module. This is simply a newer version of graphics display programs that I explained in the earlier module titled Plotting Engineering and Scientific Data using Java . Therefore, I won't repeat that explanation here. The comments at the beginning and spreadthroughout the program provide considerable information about it.

Operational aspects of graph06

However, an explanation of the operational aspects of the program will be useful here. You can use this program to display the output produced by Dsp029 by entering the following at the command line prompt:

java Graph06 Dsp029

As you saw in Figure 3 and other previous figures, this program provides the following text fields for user input, along with a button labeled Graph :

  • xMin = minimum x-axis value
  • xMax = maximum x-axis value
  • yMin = minimum y-axis value
  • yMax = maximum y-axis value
  • xTicInt = tic interval on x-axis
  • yTicInt = tic interval on y-axis
  • xCalcInc = calculation interval

These text fields make it possible for you to adjust the plotting parameters and to re-plot the graphs as many times as needed.

You can modify any of these parameters and then click the Graph button to cause the five functions to be re-plotted according to the newplotting parameters.

Spectral Analysis using a DFT Algorithm

Now that you have a good idea where we are heading, it's time to start doing some spectral analysis.

Let's begin by looking at some output obtained by performing a spectral analysis on the same five sinusoids shown in Figure 3 . The parameters used to perform this spectral analysis are shown in Figure 8 . (I will explain each of these parameters as we go along.)

Figure 8. Parameters for spectral analysis.
Data length: 400 Sample for zero time: 0Lower frequency bound: 0.0 Upper frequency bound: 1.0Number spectra: 5 Frequencies0.03125 0.06250.125 0.250.5 Amplitudes90.0 90.090.0 90.090.0

Although more parameters are required to perform spectral analysis than are required to simply generate and plot the sinusoids, the number of sinusoids, thefrequencies of the sinusoids, and the amplitudes of the sinusoids in Figure 8 are the same as in Figure 2 .

Questions & Answers

what is phylogeny
Odigie Reply
evolutionary history and relationship of an organism or group of organisms
AI-Robot
ok
Deng
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
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