emd.spectra.phase_from_freq

emd.spectra.phase_from_freq(ifrequency, sample_rate, phase_start=- 3.141592653589793)[source]

Compute the instantaneous phase of a signal from its instantaneous frequency.

Parameters
ifrequencyndarray

Input array containing the instantaneous frequencies of a signal

sample_ratefloat

The sampling frequency of the data

phase_startfloat

Start value of the phase output (Default value = -np.pi)

Returns
IPndarray

The instantaneous phase of the signal