mne.filter.
band_pass_filter
(x, Fs, Fp1, Fp2, filter_length='', l_trans_bandwidth=None, h_trans_bandwidth=None, method='fir', iir_params=None, picks=None, n_jobs=1, copy=True, phase='', fir_window='', verbose=None)¶Bandpass filter for the signal x.
Applies a zero-phase bandpass filter to the signal x, operating on the last dimension.
Parameters: | x : array
Fs : float
Fp1 : float
Fp2 : float
filter_length : str | int
l_trans_bandwidth : float | str
h_trans_bandwidth : float | str
method : str
iir_params : dict | None
picks : array-like 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
filter_data
, band_stop_filter
, high_pass_filter
, low_pass_filter
, notch_filter
, resample
Notes
The frequency response is (approximately) given by:
1-| ----------
| /| | |H| | / | | | / | | | / | | 0-|---------- | | --------------
| | | | | |
0 Fs1 Fp1 Fp2 Fs2 Nyq
Where:
- Fs1 = Fp1 - l_trans_bandwidth in Hz
- Fs2 = Fp2 + h_trans_bandwidth in Hz