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 if win_as_samples is set to False, otherwise use mean(axis=1)().