mne_denoise.dss.LagAverageBias#

class mne_denoise.dss.LagAverageBias(lags: int | ndarray = 10, weighting: str = 'uniform')[source]#

Lag-averaging bias for ordinary sensor-space DSS.

Parameters:
lagsint or array-like, default=10

An integer uses samples from 1 through lags; an array supplies the sample lags directly.

weighting{“uniform”, “inverse_lag”}, default=”uniform”

Equal or inverse-absolute-lag weighting.

apply(data: ndarray) ndarray[source]#

Apply time-shift bias.

Parameters:
datandarray, shape (n_channels, n_times) or (n_channels, n_times, n_epochs)

Input data.

Returns:
biasedndarray, same shape as input

Time-shifted averaged data.