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:
Xarray, shape (n_signals, n_times)

The signals.

Wslist of array

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'.

decimint | slice, default 1

To reduce memory usage, decimation factor after time-frequency decomposition.

  • if int, returns tfr[..., ::decim].

  • if slice, returns tfr[..., decim].

Note

Decimation is done after convolutions and may create aliasing artifacts.

Returns:
tfrarray, shape (n_signals, n_freqs, n_times)

The time-frequency decompositions.

See also

mne.time_frequency.tfr_morlet

Compute time-frequency decomposition with Morlet wavelets.