mne.filter.
notch_filter
(x, Fs, freqs, filter_length=’auto’, notch_widths=None, trans_bandwidth=1, method=’fir’, iir_params=None, mt_bandwidth=None, p_value=0.05, picks=None, n_jobs=1, copy=True, phase=’zero’, fir_window=’hamming’, verbose=None)[source]¶Notch filter for the signal x.
Applies a zerophase notch filter to the signal x, operating on the last dimension.
Parameters:  x : array
Fs : float
freqs : float  array of float  None
filter_length : str  int
notch_widths : float  array of float  None
trans_bandwidth : float
method : str
iir_params : dict  None
mt_bandwidth : float  None
p_value : float
picks : arraylike of int  None
n_jobs : int  str
copy : bool
phase : str
fir_window : str
verbose : bool, str, int, or None


Returns:  xf : array

See also
Notes
The frequency response is (approximately) given by:
1 
 \ /
H  \ /
 \ /
 \ /
0 
    
0 Fp1 freq Fp2 Nyq
For each freq in freqs, where Fp1 = freq  trans_bandwidth / 2
and
Fs2 = freq + trans_bandwidth / 2
.
References
Multitaper removal is inspired by code from the Chronux toolbox, see www.chronux.org and the book “Observed Brain Dynamics” by Partha Mitra & Hemant Bokil, Oxford University Press, New York, 2008. Please cite this in publications if method ‘spectrum_fit’ is used.
mne.filter.notch_filter
¶