pyeeg.preprocess.Whitener.demean
- Whitener.demean(data, axis=None)
Subtract the mean of
dataalongaxisand store it inself.mu.- Parameters:
data (ndarray) – Input data.
axis (int, optional) – Axis along which to compute the mean. If None,
self.axisis used.
- Returns:
data_demeaned –
datawith the mean subtracted alongaxis.- Return type:
ndarray