mne_denoise.dss.denoisers.PeakFilterBias#

class mne_denoise.dss.denoisers.PeakFilterBias(freq: float, sfreq: float, *, q_factor: float = 30.0, order: int = 2)[source]#

Peak filter bias for single-frequency extraction.

Applies a narrow bandpass (peak) filter to emphasize activity at a specific frequency. More selective than BandpassBias, using a resonant filter design.

Parameters:
  • freq (float) – Target frequency in Hz.

  • sfreq (float) – Sampling frequency in Hz.

  • q_factor (float) – Quality factor controlling bandwidth. Higher Q = narrower band. Default 30 (roughly 1 Hz bandwidth at 30 Hz).

  • order (int) – Filter order. Default 2.

Examples

>>> # Extract 10 Hz alpha with tight filter
>>> from mne_denoise.dss.denoisers import PeakFilterBias
>>> bias = PeakFilterBias(freq=10, sfreq=250, q_factor=30)
>>> biased_data = bias.apply(data)

See also

mne_denoise.dss.denoisers.spectral.BandpassBias

For broader band rhythms.

Notes

Uses a second-order IIR peak filter design. Q factor determines the bandwidth: bandwidth ≈ freq / Q.

References

Särelä & Valpola (2005). Section 4.1.2 “DENOISING BASED ON FREQUENCY CONTENT”

__init__(freq: float, sfreq: float, *, q_factor: float = 30.0, order: int = 2) None[source]#

Methods

__init__(freq, sfreq, *[, q_factor, order])

apply(data)

Apply peak filter bias.