signal

Signal processing module.

Convolution

convolve
Convolve two arrays.
fftconvolve
Convolve two arrays using FFT.
correlate
Correlate two arrays.

Fast Fourier Transforms (FFTs)

fft
Discrete Fourier transform of real or complex sequence.
ifft
Inverse discrete Fourier transform of real or complex sequence.
rfft
Discrete Fourier transform of a real sequence.
irfft
Inverse of the discrete Fourier transform for real input.

FFT Helper Functions

fftfreq
Return the Discrete Fourier Transform sample frequencies.
rfftfreq
Return the Discrete Fourier Transform sample frequencies.
fftshift
Shift the zero-frequency component to the center of the spectrum.
ifftshift
The inverse of fftshift.
next_fast_len
Find the next fast size of input data to FFT.
zero_padding
Performs zero padding of an array.

Window Functions

windows::get_window
Return a window.
windows::boxcar
Return a boxcar or rectangular window.
windows::bartlett
Return a Bartlett window.
windows::cosine
Return a window with a cosine shape.
windows::bohman
Return a Bohman window.
windows::general_cosine
Generic weighted sum of cosine terms window.
windows::general_hamming
Return a generalized Hamming window.
windows::hann
Return a Hann window.
windows::hamming
Return a Hamming window.
windows::blackman
Return a Blackman window.
windows::nutall
Return a Nutall window.
windows::blackmanharris
Return a minimum 4-term Blackman-Harris window.
windows::flattop
Return a flat top window.
windows::gaussian
Return a Gaussian window.
windows::general_gaussian
Return a generalized Gaussian window.
windows::kaiser
Return a Kaiser window.
windows::parzen
Return a Parzen (de la Vallée Poussin) window.
windows::lanczos
Return a Lanczos (sinc) window.
windows::tukey
Return a Tukey window.
windows::enbw
Return the equivalent noise bandwidth of a window.

Spectral analysis

Spectrum
A class to configure spectral analysis parameters.
Spectrum::periodogram
Estimate power spectral density using a periodogram.
Spectrum::welch
Estimate power spectral density using Welch’s method.
Spectrum::csd
Estimate the cross power spectral density using Welch’s method.
Spectrum::coherence
Estimate the magnitude squared coherence estimate of discrete-time signals using Welch’s method.
Spectrum::tfestimate
Estimate the transfer function using Welch’s method.

Waveforms

unit_impulse
Unit impulse signal (discrete delta function) or unit basis vector.
sawtooth
Return a periodic sawtooth or triangle waveform.
sweep_poly
Frequency-swept cosine generator, with a time-dependent frequency.