scipy 1.8.0 Pypi GitHub Homepage
Other Docs
NotesParametersReturnsBackRef
get_window(window, Nx, fftbins=True)

Notes

Window types:

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

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

If :None:None:`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 :None:None:`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 :None:None:`Nx` and type :None:None:`window`

Return a window of a given length and type.

Examples

>>> from scipy import signal
... signal.get_window('triang', 7) array([ 0.125, 0.375, 0.625, 0.875, 0.875, 0.625, 0.375])
>>> signal.get_window(('kaiser', 4.0), 9)
array([ 0.08848053,  0.29425961,  0.56437221,  0.82160913,  0.97885093,
        0.97885093,  0.82160913,  0.56437221,  0.29425961])
>>> signal.get_window(('exponential', None, 1.), 9)
array([ 0.011109  ,  0.03019738,  0.082085  ,  0.22313016,  0.60653066,
        0.60653066,  0.22313016,  0.082085  ,  0.03019738])
>>> signal.get_window(4.0, 9)
array([ 0.08848053,  0.29425961,  0.56437221,  0.82160913,  0.97885093,
        0.97885093,  0.82160913,  0.56437221,  0.29425961])
See :

Back References

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

scipy

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

matplotlib

18 Elements
matplotlib.axes._axes.Axes.cohere
matplotlib.pyplot.psd
matplotlib.pyplot.angle_spectrum
matplotlib.axes._axes.Axes.magnitude_spectrum
matplotlib.pyplot.cohere
matplotlib.mlab.cohere
matplotlib.mlab.specgram
matplotlib.pyplot.magnitude_spectrum
matplotlib.axes._axes.Axes.psd
matplotlib.pyplot.phase_spectrum
matplotlib.pyplot.csd
matplotlib.axes._axes.Axes.csd
matplotlib.mlab.csd
matplotlib.axes._axes.Axes.angle_spectrum
matplotlib.axes._axes.Axes.phase_spectrum
matplotlib.pyplot.specgram
matplotlib.axes._axes.Axes.specgram
matplotlib.mlab.psd

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.

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#2051
type: <class 'function'>
Commit: