braindecode.datautil.scale

braindecode.datautil.scale(data, factor)

Scale continuous or windowed data in-place

Parameters
data: np.ndarray (n_channels x n_times) or (n_windows x n_channels x
n_times)

continuous or windowed signal

factor: float

multiplication factor

Returns
scaled: np.ndarray (n_channels x n_times) or (n_windows x n_channels x
n_times)

normalized continuous or windowed data

..note:

If this function is supposed to preprocess continuous data, it should be given to raw.apply_function().