MCPcopy
hub / github.com/mne-tools/mne-python / _get_window

Function _get_window

mne/preprocessing/stim.py:17–20  ·  view source on GitHub ↗

Return window which has length as much as parameter start - end.

(start, end)

Source from the content-addressed store, hash-verified

15
16
17def _get_window(start, end):
18 """Return window which has length as much as parameter start - end."""
19 window = 1 - np.r_[hann(4)[:2], np.ones(np.abs(end - start) - 4), hann(4)[-2:]].T
20 return window
21
22
23def _fix_artifact(

Callers 1

fix_stim_artifactFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected