Loading [MathJax]/extensions/tex2jax.js
scipy 1.10.1 Pypi GitHub Homepage
Other Docs

NotesParametersReturnsBackRef
get_window(window, Nx, fftbins=True)

Notes

Window types:

If the window requires no parameters, then window can be a string.

If the window requires parameters, then window must be a tuple with the first argument the string name of the window, and the next arguments the needed parameters.

If window is a floating point number, it is interpreted as the beta parameter of the kaiser window.

Each of the window types listed above is also the name of a function that can be called directly to create a window of that type.

Parameters

window : string, float, or tuple

The type of window to create. See below for more details.

Nx : int

The number of samples in the window.

fftbins : bool, optional

If True (default), create a "periodic" window, ready to use with ifftshift and be multiplied by the result of an FFT (see also ~scipy.fft.fftfreq). If False, create a "symmetric" window, for use in filter design.

Returns

get_window : ndarray

Returns a window of length Nx and type window

Return a window of a given length and type.

Examples

from scipy import signal
signal.get_window('triang', 7)
signal.get_window(('kaiser', 4.0), 9)
signal.get_window(('exponential', None, 1.), 9)
signal.get_window(4.0, 9)
See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

scipy.signal._spectral_py:check_COLA scipy.signal._spectral_py:_spectral_helper scipy.signal._spectral_py:csd scipy.signal._spectral_py:coherence scipy.signal._signaltools:resample scipy.signal._spectral_py:periodogram scipy.signal._spectral_py:spectrogram scipy.signal._spectral_py:welch scipy.signal._spectral_py:stft scipy.signal._signaltools:resample_poly scipy.signal._fir_filter_design:firwin2 scipy.signal.windows._windows:kaiser_bessel_derived scipy.signal._spectral_py:istft scipy.signal._spectral_py:check_NOLA scipy.signal._fir_filter_design:firwin

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

scipy.signal.windows._windows:hann_windows:hannscipy.signal.windows._windows:general_gaussian_windows:general_gaussianscipy.signal.windows._windows:tukey_windows:tukeyscipy.signal.windows._windows:cosine_windows:cosinescipy.signal.windows._windows:triang_windows:triangscipy.signal.windows._windows:parzen_windows:parzenscipy.signal._spectral_py:istft_spectral_py:istftscipy.signal.windows._windows:boxcar_windows:boxcarscipy.signal.windows._windows:general_cosine_windows:general_cosinescipy.signal.windows._windows:bohman_windows:bohmanscipy.signal._spectral_py:stft_spectral_py:stftscipy.signal.windows._windows:exponential_windows:exponentialscipy.signal._spectral_py:periodogram_spectral_py:periodogramscipy.signal.windows._windows:general_hamming_windows:general_hammingscipy.signal.windows._windows:blackmanharris_windows:blackmanharrisscipy.signal._spectral_py:welch_spectral_py:welchscipy.signal.windows._windows:nuttall_windows:nuttallscipy.signal._spectral_py:csd_spectral_py:csdscipy.signal._spectral_py:coherence_spectral_py:coherencescipy.signal.windows._windows:bartlett_windows:bartlettscipy.signal.windows._windows:hamming_windows:hammingscipy.signal.windows._windows:barthann_windows:barthannscipy.signal._spectral_py:check_NOLA_spectral_py:check_NOLAscipy.signal._signaltools:resample_poly_signaltools:resample_polyscipy.signal.windows._windows:blackman_windows:blackmanscipy.signal._spectral_py:spectrogram_spectral_py:spectrogramscipy.signal.windows._windows:chebwin_windows:chebwinscipy.signal.windows._windows:flattop_windows:flattopscipy.signal.windows._windows:lanczos_windows:lanczosscipy.signal._fir_filter_design:firwin_fir_filter_design:firwinscipy.signal.windows._windows:kaiser_windows:kaiserscipy.signal.windows._windows:dpss_windows:dpssscipy.signal._signaltools:resample_signaltools:resamplescipy.signal.windows._windows:kaiser_bessel_derived_windows:kaiser_bessel_derivedscipy.signal.windows._windows:gaussian_windows:gaussianscipy.signal.windows._windows:taylor_windows:taylorscipy.signal._spectral_py:check_COLA_spectral_py:check_COLAscipy.signal._spectral_py:_spectral_helper_spectral_py:_spectral_helperscipy.signal._fir_filter_design:firwin2_fir_filter_design:firwin2

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /scipy/signal/windows/_windows.py#2261
type: <class 'function'>
Commit: