mne_denoise.dss.BandpassBias#

class mne_denoise.dss.BandpassBias(freq_band: tuple[float, float], sfreq: float, *, order: int = 4, method: str = 'butter')[source]#

Bandpass-filter bias for DSS.

Parameters:
freq_bandtuple of float

Lower and upper passband edges in Hz.

sfreqfloat

Sampling frequency in Hz.

orderint, default=4

Butterworth filter order.

method{“butter”}, default=”butter”

Filter design method. Only the Butterworth design is implemented.

apply(data: ndarray) ndarray[source]#

Apply the bandpass bias.

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

Channel-first data.

Returns:
ndarray

Bandpass-filtered data with the input shape.