braindecode.preprocessing.exponential_moving_demean# braindecode.preprocessing.exponential_moving_demean(data, factor_new=0.001, init_block_size=None)[source]# Perform exponential moving demeanining. Compute the exponental moving mean mt at time t as mt=factornew⋅mean(xt)+(1−factornew)⋅mt−1. Deman the data point xt at time t as: xt′=(xt−mt). Parameters data (np.ndarray (n_channels, n_times)) – factor_new (float) – init_block_size (int) – Demean data before to this index with regular demeaning. Returns demeaned – Demeaned data. Return type np.ndarray (n_channels, n_times)