Window functions (scipy.signal.windows)#

The suite of window functions for filtering and spectral estimation.

get_window(window, Nx[, fftbins])

Return a window of a given length and type.

barthann(M[, sym])

Return a modified Bartlett-Hann window.

bartlett(M[, sym])

Return a Bartlett window.

blackman(M[, sym])

Return a Blackman window.

blackmanharris(M[, sym])

Return a minimum 4-term Blackman-Harris window.

bohman(M[, sym])

Return a Bohman window.

boxcar(M[, sym])

Return a boxcar or rectangular window.

chebwin(M, at[, sym])

Return a Dolph-Chebyshev window.

cosine(M[, sym])

Return a window with a simple cosine shape.

dpss(M, NW[, Kmax, sym, norm, return_ratios])

Compute the Discrete Prolate Spheroidal Sequences (DPSS).

exponential(M[, center, tau, sym])

Return an exponential (or Poisson) window.

flattop(M[, sym])

Return a flat top window.

gaussian(M, std[, sym])

Return a Gaussian window.

general_cosine(M, a[, sym])

Generic weighted sum of cosine terms window

general_gaussian(M, p, sig[, sym])

Return a window with a generalized Gaussian shape.

general_hamming(M, alpha[, sym])

Return a generalized Hamming window.

hamming(M[, sym])

Return a Hamming window.

hann(M[, sym])

Return a Hann window.

kaiser(M, beta[, sym])

Return a Kaiser window.

kaiser_bessel_derived(M, beta, *[, sym])

Return a Kaiser-Bessel derived window.

lanczos(M, *[, sym])

Return a Lanczos window also known as a sinc window.

nuttall(M[, sym])

Return a minimum 4-term Blackman-Harris window according to Nuttall.

parzen(M[, sym])

Return a Parzen window.

taylor(M[, nbar, sll, norm, sym])

Return a Taylor window.

triang(M[, sym])

Return a triangular window.

tukey(M[, alpha, sym])

Return a Tukey window, also known as a tapered cosine window.