syncopy.specest.compRoutines._make_trialdef#
- syncopy.specest.compRoutines._make_trialdef(cfg, trialdefinition, samplerate)[source]#
Local helper to construct trialdefinition arrays for time-frequency
SpectralData
objects- Parameters:
cfg (dict) – Config dictionary attribute of ComputationalRoutine subclass
trialdefinition (2D
numpy.ndarray
) – Provisional trialdefinition array either directly copied from theAnalogData
input object or computed by theSelector
class.samplerate (float) – Original sampling rate of
AnalogData
input object
- Returns:
trialdefinition (2D
numpy.ndarray
) – Updated trialdefinition array reflecting provided toi/toilim selectionsamplerate (float) – Sampling rate accouting for potentially new spacing b/w time-points (accouting for provided toi/toilim selection)
Notes
This routine is a local auxiliary method that is purely intended for internal use. Thus, no error checking is performed.
See also
syncopy.specest.mtmconvol.mtmconvol
computeFunction()
performing time-frequency analysis using (multi-)tapered sliding window Fourier transformsyncopy.specest.wavelet.wavelet
computeFunction()
performing time-frequency analysis using non-orthogonal continuous wavelet transformsyncopy.specest.superlet.superlet
computeFunction()
performing time-frequency analysis using super-resolution superlet transform