tensorpac.signals.pac_signals_wavelet¶
-
tensorpac.signals.
pac_signals_wavelet
(f_pha=10.0, f_amp=100.0, sf=1024.0, n_times=4000.0, n_epochs=10, noise=0.1, pp=0.0, rnd_state=0)[source]¶ Generate artificially phase-amplitude coupled signals using wavelets.
This function is inspired by the code of the pactools toolbox developped by Tom Dupre la Tour [7].
- Parameters
- f_phafloat | 10.
Frequency for phase. Use either a float number for a centered frequency of a band (like [5, 7]) for a bandwidth.
- f_ampfloat | 100.
Frequency for amplitude. Use either a float number for a centered frequency of a band (like [60, 80]) for a bandwidth.
- sffloat | 1024.
Sampling frequency.
- n_timesint | 4000
Number of time points.
- n_epochsint | 10
Number of trials in the dataset.
- noisefloat | .1
Amount of white noise.
- ppfloat | 0.
The preferred-phase of the coupling.
- rnd_state: int | 0
Fix random of the machine (for reproducibility)
- Returns
- dataarray_like
Array of signals of shape (n_epochs, n_times).
- timearray_like
Time vector of shape (n_times,).