pyeeg.utils
.chunk_data
- pyeeg.utils.chunk_data(data, window_size, overlap_size=0, padding=False, win_as_samples=True)
Nd array version of
shift_array()
Notes
Please note that we expect first dim as our axis on which to apply the rolling window. Calling
mean(axis=0)()
works ifwin_as_samples
is set toFalse
, otherwise usemean(axis=1)()
.