Hello,
I am trying to perform the time-frequency analysis of a signal through Stockwell transform with the use of the MNE package. I am getting a TypeError: inst must be Epochs or Evoked.
Is there any way to use the package for the analysis of any signal or it has to be Epochs or Evoked signal?
Thank you in advance!
from mne.time_frequency import tfr_stockwell
import numpy as np
from scipy.signal import chirp
# create a signal
t = np.linspace(0, 10, 5001)
amp = chirp(t, f0=12.5, f1=2.5, t1=10, method='linear')
fmin = 0 # Hz
fmax = 25 # Hz
# perform the S-transform
power, itc = tfr_stockwell(amp, fmin=fmin, fmax=fmax, decim=4, n_jobs=1,
width=.3, return_itc=True)
power.plot([0], baseline=(-0.5, 0), mode=None, title='S-transform (power)')
itc.plot([0], baseline=None, mode=None, title='S-transform (ITC)')