pyeeg.preprocess.Whitener.demean

Whitener.demean(data, axis=None)

Subtract the mean of data along axis and store it in self.mu.

Parameters:
  • data (ndarray) – Input data.

  • axis (int, optional) – Axis along which to compute the mean. If None, self.axis is used.

Returns:

data_demeaneddata with the mean subtracted along axis.

Return type:

ndarray