Signal, Signal Processing, Machine Learning, Python Programming.
to calculate the frequency content of a signal: from scipy.signal import hilbert from scipy import signal freqs = [] phases = [] for i in imf: analytic_signal = hilbert(i) freq = np.diff(np.unwrap(np.angle(analytic_signal)))/(2*np.pi)*fs freqs.append(freq) phase = np.angle(analytic_signal)