Revised: Fri Oct 16 18:22:28 CDT 2015
This page is included in the following books:
Table of contents
- Table of contents
- Preface
- Preview
- Discussion and sample code
- Run the program
- Summary
- What's next?
- Complete program listing
- Miscellaneous
Preface
Spectral analysis
A previous module titled Fun with Java, How and Why Spectral Analysis Works explained some of the fundamentals regarding spectral analysis.
The module titled Spectrum Analysis using Java, Sampling Frequency, Folding Frequency, and the FFT Algorithm presented and explained several Java programs for doing spectral analysis, including both DFT programs and FFT programs. That module illustratedthe fundamental aspects of spectral analysis that center around the sampling frequency and the Nyquist folding frequency.
The module titled Spectrum Analysis using Java, Frequency Resolution versus Data Length used similar Java programs to explain spectral frequency resolution.
In this module, I will deal with issues involving the complex spectrum, the phase angle, and shifts in the time domain.
Viewing tip
I recommend that you open another copy of this module in a separate browser window and use the following links to easily find and view the Figuresand Listings while you are reading about them.
Figures
- Figure 1. Sample parameters for testing.
- Figure 2. Spectral analysis of a damped pulse.
- Figure 3. Fourier transform equations.
- Figure 4. The simplest pulse of all, an impulse.
- Figure 5. Spectral analysis of an impulse at zero time.
- Figure 6. Introduce a time delay.
- Figure 7. Spectral analysis of an impulse with a one-sample delay.
- Figure 8. Introduce a large time delay.
- Figure 9. Spectral analysis of impulse with five-sample delay.
- Figure 10. A boxcar pulse.
- Figure 11. Spectral analysis of 11-sample boxcar pulse.
- Figure 12. Shift the time base.
- Figure 13. Spectral analysis of 11-sample boxcar centered in time.
Listings
- Listing 1. Computation of the phase angle.
- Listing 2. The beginning of the Dsp034 class.
- Listing 3. Beginning of the constructor.
- Listing 4. Store the pulse in the time series.
- Listing 5. Perform the spectral analysis.
- Listing 6. Dsp034.java.
Preview
In this module, I will present and explain a program named Dsp034 . This program will be used to illustrate the behavior of the complex spectrum andthe phase angle for several different scenarios.
In addition, I will use the following programs that I explained in the module titled Spectrum Analysis using Java, Sampling Frequency, Folding Frequency, and the FFT Algorithm .