hht.py for Hilbert Huang Transform¶
-
hht.
FAhilbert
(imfs, dt)[source]¶ Performs Hilbert transformation on imfs. Returns frequency and amplitude of signal.
-
hht.
hht
(data, time, freqsol=33, timesol=50)[source]¶ hht function for the Hilbert Huang Transform spectrum
- data : array-like, shape (n_samples,)
- The input signal.
- time : array-like, shape (n_samples), optional
- Time instants of the signal samples. (defaults to np.arange(1, len(signal)))
- matplotlib.figure.Figure
- The figure (new or existing) in which the hht spectrum is plotted.
-
hht.
hilb
(s, unwrap=False)[source]¶ Performs Hilbert transformation on signal s. Returns amplitude and phase of signal. Depending on unwrap value phase can be either in range [-pi, pi) (unwrap=False) or continuous (unwrap=True).
-
hht.
plot_frequency
(signal, imfs, time_samples=None, fig=None)[source]¶ plot_imfs function for the Hilbert Huang Transform is adopted from pyhht. Author: jaidevd https://github.com/jaidevd/pyhht/blob/dev/pyhht/visualization.py Plot the signal, IMFs.
- signal : array-like, shape (n_samples,)
- The input signal.
- imfs : array-like, shape (n_imfs, n_samples)
- Matrix of IMFs as generated with the EMD.decompose method.
- time_samples : array-like, shape (n_samples), optional
- Time instants of the signal samples. (defaults to np.arange(1, len(signal)))
- matplotlib.figure.Figure
- The figure (new or existing) in which the instance frequency is plotted.
-
hht.
plot_imfs
(signal, imfs, time_samples=None, fig=None)[source]¶ plot_imfs function for the Hilbert Huang Transform is adopted from pyhht. Author: jaidevd https://github.com/jaidevd/pyhht/blob/dev/pyhht/visualization.py Plot the signal, IMFs.
- signal : array-like, shape (n_samples,)
- The input signal.
- imfs : array-like, shape (n_imfs, n_samples)
- Matrix of IMFs as generated with the EMD.decompose method.
- time_samples : array-like, shape (n_samples), optional
- Time instants of the signal samples. (defaults to np.arange(1, len(signal)))
- matplotlib.figure.Figure
- The figure (new or existing) in which the decomposition is plotted.