mne.time_frequency.tfr.cwt#
- mne.time_frequency.tfr.cwt(X, Ws, use_fft=True, mode='same', decim=1)[source]#
Compute time-frequency decomposition with continuous wavelet transform.
- Parameters:
- X
array
, shape (n_signals, n_times) The signals.
- Ws
list
ofarray
Wavelets time series.
- use_fftbool
Use FFT for convolutions. Defaults to True.
- mode‘same’ | ‘valid’ | ‘full’
Convention for convolution. ‘full’ is currently not implemented with
use_fft=False
. Defaults to'same'
.- decim
int
|slice
Decimation factor, applied after time-frequency decomposition.
if
int
, returnstfr[..., ::decim]
(keep only every Nth sample along the time axis).if
slice
, returnstfr[..., decim]
(keep only the specified slice along the time axis).
Note
Decimation is done after convolutions and may create aliasing artifacts.
- X
- Returns:
- tfr
array
, shape (n_signals, n_freqs, n_times) The time-frequency decompositions.
- tfr
See also
mne.time_frequency.tfr_morlet
Compute time-frequency decomposition with Morlet wavelets.