laszukdawid / PyEMD

Python implementation of Empirical Mode Decompoisition (EMD) method
https://pyemd.readthedocs.io/
Apache License 2.0
867 stars 224 forks source link

wrong calculation of instant frequency in visualisation.py #58

Closed newusername closed 5 years ago

newusername commented 5 years ago

https://github.com/laszukdawid/PyEMD/blob/c285242ecfd59c33f163f89d2af00c600d66421c/PyEMD/visualisation.py#L112

should be: return np.diff(inst_phase)/(2*np.pi*(t[1]-t[0])) as was correctly done in hht_example.py

laszukdawid commented 5 years ago

Thanks @newusername for spotting this. Fixed.