Skip to main content

Module welch

Module welch 

Source
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§

PowerSpectrum
A one-sided spectrum estimate of a real signal.

Enums§

Detrend
Trend removed from each segment before windowing.
SpectralScaling
How to scale a power spectrum.

Functions§

periodogram
The periodogram of x with the given window spanning the whole signal.
welch
Welch’s estimate of the one-sided spectrum of the real signal x sampled at fs: the signal is cut into segments of window.len() samples overlapping by overlap samples, 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.