emd.spectra.freq_from_phase¶
- emd.spectra.freq_from_phase(iphase, sample_rate, savgol_width=3)[source]¶
Compute the instantaneous frequency from the instantaneous phase.
A savitsky-golay filter is used to compute the derivative of the phase and can be smoothed by specifying a longer savgol_width (minimum value=3).
- Parameters
- iphasendarray
Input array containing the unwrapped instantaneous phase time-course
- sample_ratefloat
The sampling frequency of the data
- savgol_widthint >= 3
The window length of the Savitsky-Golay filter window
- Returns
- IFndarray
Array containing the instantaneous frequencies