deepof.utils.binary_moving_median_numba

deepof.utils.binary_moving_median_numba(time_series, lag)

will applay a moving median like filter on a binary signal, i.e. if a window of size lag has more 1s than 0s set the frame to 1 for that window, set it to 0 otherwise. Will only work for windows of uneven length N i.e. returns the same for lag=N and lag=N+1