Expand description
Power spectral density estimation by Welch’s method of averaged, windowed periodograms.
See the book entry Power spectra: periodogram, Welch, spectrogram and Lomb-Scargle.
Structs§
- Power
Spectrum - A one-sided spectrum estimate of a real signal.
Enums§
- Detrend
- Trend removed from each segment before windowing.
- Spectral
Scaling - How to scale a power spectrum.
Functions§
- periodogram
- The periodogram of
xwith the given window spanning the whole signal. - welch
- Welch’s estimate of the one-sided spectrum of the real signal
xsampled atfs: the signal is cut into segments ofwindow.len()samples overlapping byoverlapsamples, each is detrended, windowed and transformed, and the squared magnitudes are averaged. Averaging trades frequency resolution (fs / segment) for a variance reduced roughly by the number of segments. With a single segment spanning the signal this is the (modified) periodogram.