braindecode.preprocessing.exponential_moving_standardize

braindecode.preprocessing.exponential_moving_standardize(data, factor_new=0.001, init_block_size=None, eps=0.0001)

Perform exponential moving standardization.

Compute the exponental moving mean mt at time t as mt=factornewmean(xt)+(1factornew)mt1.

Then, compute exponential moving variance vt at time t as vt=factornew(mtxt)2+(1factornew)vt1.

Finally, standardize the data point xt at time t as: xt=(xtmt)/max(>vt,eps).

Parameters
data: np.ndarray (n_channels, n_times)
factor_new: float
init_block_size: int

Standardize data before to this index with regular standardization.

eps: float

Stabilizer for division by zero variance.

Returns
standardized: np.ndarray (n_channels, n_times)

Standardized data.

Examples using braindecode.preprocessing.exponential_moving_standardize