mne.decoding.
TemporalFilter
(l_freq=None, h_freq=None, sfreq=1.0, filter_length=’auto’, l_trans_bandwidth=’auto’, h_trans_bandwidth=’auto’, n_jobs=1, method=’fir’, iir_params=None, fir_window=’hamming’, verbose=None)[source]¶Estimator to filter data array along the last dimension.
Applies a zero-phase low-pass, high-pass, band-pass, or band-stop filter to the channels.
l_freq and h_freq are the frequencies below which and above which, respectively, to filter out of the data. Thus the uses are:
- l_freq < h_freq: band-pass filter
- l_freq > h_freq: band-stop filter
- l_freq is not None, h_freq is None: low-pass filter
- l_freq is None, h_freq is not None: high-pass filter
Parameters: | l_freq : float | None
h_freq : float | None
sfreq : float, defaults to 1.0
filter_length : str | int, defaults to ‘auto’
l_trans_bandwidth : float | str
h_trans_bandwidth : float | str
n_jobs : int | str, defaults to 1
method : str, defaults to ‘fir’
iir_params : dict | None, defaults to None
fir_window : str, defaults to ‘hamming’
verbose : bool, str, int, or None, defaults to None
|
---|
See also
Methods
__hash__ () <==> hash(x) |
|
fit (X[, y]) |
Do nothing (for scikit-learn compatibility purposes). |
fit_transform (X[, y]) |
Fit to data, then transform it. |
transform (X) |
Filter data along the last dimension. |
__hash__
() <==> hash(x)¶fit
(X, y=None)[source]¶Do nothing (for scikit-learn compatibility purposes).
Parameters: | X : array, shape (n_epochs, n_channels, n_times) or or shape (n_channels, n_times) # noqa
y : None
|
---|---|
Returns: | self : instance of Filterer
|
fit_transform
(X, y=None, **fit_params)[source]¶Fit to data, then transform it.
Fits transformer to X and y with optional parameters fit_params and returns a transformed version of X.
Parameters: | X : numpy array of shape [n_samples, n_features]
y : numpy array of shape [n_samples]
|
---|---|
Returns: | X_new : numpy array of shape [n_samples, n_features_new]
|
transform
(X)[source]¶Filter data along the last dimension.
Parameters: | X : array, shape (n_epochs, n_channels, n_times) or shape (n_channels, n_times) # noqa
|
---|---|
Returns: | X : array, shape is same as used in input.
|