Return window which has length as much as parameter start - end.
(start, end)
| 15 | |
| 16 | |
| 17 | def _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 | |
| 23 | def _fix_artifact( |