Skip to content

This is a demonstration to show how to calculate power spectra and power spectral densities in real time. We calculate power spectra directly using DFT (or FFT). There are many conventions for DFT. We use the convention is the paper “Analysis of Relationship between Continuous Time Fourier Transform (CTFT), Discrete Time Fourier Transform (DTFT)…

Notifications You must be signed in to change notification settings

liangsizhuang/Demonstration-DFT-PS-PSD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demonstration-DFT-PS-PSD

This is a demonstration to show how to calculate Power Spectra (PS) and Power Spectral Densities (PSD) in real time. We calculate power spectra directly using DFT (or FFT). We calculate power spectral and power spectral densities using the MATLAB function periodogram.

One will see the following phenomena: (1) A power spectrum is equal to the square of the absolute value of DFT. (2) The sum of all power spectral lines in a power spectrum is equal to the power of the input signal. (3) The integral of a PSD is equal to the power of the input signal.

The PSD obtained by periodogram is an Equivalent Noise Power Spectral Density (ENPSD). One can see that ENPSD is related to PS by a factor of 1/T, which is equal to the frequency resolution or frequency interval. It should be noted that a power spectrum is a discrete sequence, or a discrete continuous-argument function, whereas an ENPSD is a non-discrete continuous argument function. To emphasize this, I used stem for power spectra and plot for ENPSD.

In this demonstration, we start with a sinusoidal signal with various parameters. We then proceed with an actual audio signal.

alt text

About

This is a demonstration to show how to calculate power spectra and power spectral densities in real time. We calculate power spectra directly using DFT (or FFT). There are many conventions for DFT. We use the convention is the paper “Analysis of Relationship between Continuous Time Fourier Transform (CTFT), Discrete Time Fourier Transform (DTFT)…

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages