<< Chapter < Page
  Digital signal processing - dsp     Page 14 / 21
Chapter >> Page >
  • The highest elevation is colored white
  • The lowest elevation is colored black
  • Elevations between the highest and lowest values are colored according to the calibration scale below the image

This normalization is applied even when the distance between the highest and lowest elevation is very small. As a result of computational errors, theamplitude spectrum is not perfectly flat. Rather there are very small variations from one point to the next. As a result, the colors used to plot the surfaceswitch among the full range of available colors even for tiny deviations fromperfect flatness.

A very small error

The total error for this case is very small. The numeric output shows that the final output surface matches the input surface to within an error that isless than about one part in ten to the thirteenth power. The program produces the expected results for this test case.

Case 2

Now we are going to take a look at another case for which we know in advance generally what the outcome should be. This will allow us to compare the outcomewith our expectations to confirm proper operation of the program.

A box on the diagonal in space

This case places a box that is one unit tall on the diagonal near the origin in the space domain as shown in the top-left image in Figure 7 .

Figure 7. A box on the diagonal in space.
missing image

What do we know?

On the basis of prior experience, we know that the amplitude spectrum of this surface along the horizontal and vertical axes of the wavenumber spectrum shouldhave a rectified sin(x)/x shape (all negative values are converted to positive values) . We know that the peak in this amplitude spectrum should appear at the origin in wavenumber space, and that the width of the peak shouldbe inversely proportional to the size of the box.

The code for Case 2

The code that constructs the space domain surface for this case is shown in Listing 17 .

Listing 17. Code for Case 2.
case 2: spatialData[3][3] = 1;spatialData[3][4]= 1; spatialData[3][5] = 1;spatialData[4][3]= 1; spatialData[4][4] = 1;spatialData[4][5]= 1; spatialData[5][3] = 1;spatialData[5][4]= 1; spatialData[5][5] = 1;break;

This code is completely straightforward. It sets the value of each of nine adjacent points on the surface to a value of 1, while the values of all otherpoints on the surface remain at zero. The arrangement of those nine points forms a square whose sides are parallel to the horizontal and vertical axes.

The real and imaginary parts of the spectrum

There isn't a lot that I can tell you about what to expect regarding the real and imaginary parts of this spectrum, other than that they should exhibit thesame symmetry and asymmetry conditions that I described earlier for the real and imaginary parts in general. Theserequirements appear to be satisfied by the real part at the top center of Figure 7 and the imaginary part at the bottom center of Figure 7 .

Otherwise, the shape of the real and imaginary wavenumber spectra will depend on the location of the box in space and the size and orientation of the box.

Questions & Answers

calculate molarity of NaOH solution when 25.0ml of NaOH titrated with 27.2ml of 0.2m H2SO4
Gasin Reply
what's Thermochemistry
rhoda Reply
the study of the heat energy which is associated with chemical reactions
Kaddija
How was CH4 and o2 was able to produce (Co2)and (H2o
Edafe Reply
explain please
Victory
First twenty elements with their valences
Martine Reply
what is chemistry
asue Reply
what is atom
asue
what is the best way to define periodic table for jamb
Damilola Reply
what is the change of matter from one state to another
Elijah Reply
what is isolation of organic compounds
IKyernum Reply
what is atomic radius
ThankGod Reply
Read Chapter 6, section 5
Dr
Read Chapter 6, section 5
Kareem
Atomic radius is the radius of the atom and is also called the orbital radius
Kareem
atomic radius is the distance between the nucleus of an atom and its valence shell
Amos
Read Chapter 6, section 5
paulino
Bohr's model of the theory atom
Ayom Reply
is there a question?
Dr
when a gas is compressed why it becomes hot?
ATOMIC
It has no oxygen then
Goldyei
read the chapter on thermochemistry...the sections on "PV" work and the First Law of Thermodynamics should help..
Dr
Which element react with water
Mukthar Reply
Mgo
Ibeh
an increase in the pressure of a gas results in the decrease of its
Valentina Reply
definition of the periodic table
Cosmos Reply
What is the lkenes
Da Reply
what were atoms composed of?
Moses 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