MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / _stride_windows

Function _stride_windows

lib/matplotlib/mlab.py:214–220  ·  view source on GitHub ↗
(x, n, noverlap=0)

Source from the content-addressed store, hash-verified

212
213
214def _stride_windows(x, n, noverlap=0):
215 _api.check_isinstance(Integral, n=n, noverlap=noverlap)
216 x = np.asarray(x)
217 step = n - noverlap
218 shape = (n, (x.shape[-1]-noverlap)//step)
219 strides = (x.strides[0], step*x.strides[0])
220 return np.lib.stride_tricks.as_strided(x, shape=shape, strides=strides)
221
222
223def _spectral_helper(x, y=None, NFFT=None, Fs=None, detrend_func=None,

Callers 1

_spectral_helperFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…