@verbose
def tfr_stockwell(inst, fmin=None, fmax=None, n_fft=None, width=1.0, decim=1, return_itc=False, n_jobs=1, verbose=None):
 data = _get_data(inst, return_itc)
 picks = pick_types(inst.info, meg=True, eeg=True)
 info = pick_info(inst.info, picks)
 data = data[:, picks, :]
 n_jobs = check_n_jobs(n_jobs)
 (power, itc, freqs) = _induced_power_stockwell(data, sfreq=info['sfreq'], fmin=fmin, fmax=fmax, n_fft=n_fft, width=width, decim=decim, return_itc=return_itc, n_jobs=n_jobs)
 times = inst.times[::decim].copy()
 nave = len(data)
 out = AverageTFR(info, power, times, freqs, nave, method='stockwell-power')
 if return_itc:
  out = (out, AverageTFR(deepcopy(info), itc, times.copy(), freqs.copy(), nave, method='stockwell-itc'))
 return out

@ verbose def tfr_stockwell ( inst , fmin = None , fmax = None , n_fft = None , width = 1.0 , decim = 1 , return_itc = False , n_jobs = 1 , verbose = None ) : data = _get_data ( inst , return_itc ) picks = pick_types ( inst . info , meg = True , eeg = True ) info = pick_info ( inst . info , picks ) data = data [ : , picks , : ] n_jobs = check_n_jobs ( n_jobs ) ( power , itc , freqs ) = _induced_power_stockwell ( data , sfreq = info [ 'sfreq' ] , fmin = fmin , fmax = fmax , n_fft = n_fft , width = width , decim = decim , return_itc = return_itc , n_jobs = n_jobs ) times = inst . times [ : : decim ] . copy ( ) nave = len ( data ) out = AverageTFR ( info , power , times , freqs , nave , method = 'stockwell-power' ) if return_itc : out = ( out , AverageTFR ( deepcopy ( info ) , itc , times . copy ( ) , freqs . copy ( ) , nave , method = 'stockwell-itc' ) ) return out
time-frequency representation using stockwell transform .