netpyne.support.morlet module
Module with support for Morlet wavelets
Time-frequency representation using Morlet wavelets
Original version written by Shane Lee (Brown University) Modified by Sam Neymotin (NKI; added phase calculations, saving/passing in Morlet, specifying different frequency steps and frequencies used for calculations (e.g. logarithmic frequency instead of linear) don’t detrend the signal > 1 time; don’t waste RAM by copying/storing time-series in MorletSpec class; subtract mean from time series within the wavelet class)
- netpyne.support.morlet.Morlet(sampr, freq, width=7.0)[source]
Morlet’s wavelet for frequency f and time t Wavelet normalized so total energy is 1 freq: specific frequency (Hz) width: number of cycles for the Morlet wavelet output returned: final units are 1/s
- netpyne.support.morlet.MorletVec(sig, sampr, freq, width, m=None, getphase=False)[source]
Final units of y: signal units squared. For instance, a signal of Am would have Am^2 The energy is calculated using Morlet’s wavelets; also returns phase when getphase==True sig: input signal sampr: sampling rate (Hz) freq: frequency m: Morlet wavelet width: number of cycles of Morlet wavelet