liangliannie / hht-spectrum

This function is given to plot the Hilbert Huang Spectrum
Apache License 2.0
12 stars 4 forks source link

FAhilbert is missing dt in calculating the instantaneous frequencies #1

Open bschumac opened 4 years ago

bschumac commented 4 years ago

Hi I found a mistake in your hht.py Function Line 134. The function is requesting dt but dt is actually never used in the function. This leads to a wrong calculated instanteneous frequency.
Line 146 should account for dt or 1/Frequency similar to the matlab version of your script: https://www.mathworks.com/matlabcentral/fileexchange/19681-hilbert-huang-transform

JovenL commented 1 year ago

Hi I found a mistake in your hht.py Function Line 134. The function is requesting dt but dt is actually never used in the function. This leads to a wrong calculated instanteneous frequency. Line 146 should account for dt or 1/Frequency similar to the matlab version of your script: https://www.mathworks.com/matlabcentral/fileexchange/19681-hilbert-huang-transform

@bschumac Sorry to bother you, but I want to know if you have solved this mistake?