-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a parameter to set the type of interpolation for calculating the envelopes #41
Comments
Sure, we could expose the interpolation to the user. But I wonder what this will really achieve. The cubic spline was chosen by Huang et al for a very specific reason, that it is smooth everywhere and almost always envelops the signal, ensuring that the IMFs are purely amplitude / frequency modulated. I'm pretty sure the results won't be physically meaningful if you use, say, a linear interpolant. Regardless, this should be done. Might take some work, since interpolation is tightly coupled with the sifting methods (and wrongly so). So I'll take it up as an exercise in making things more modular. |
It is true that cubic spline produces smooth fits, but in some cases, ie. when there are sharp spikes in the input signal, the envelopes tend to go their own ways and do not stick to the signal, because they are overly smooth in places. I believe (but haven't proven it yet) that this may be adding to the end-point effect and detrend uncertainty. |
Very interesting, could you share an example whenever you can? |
Apologies for the delay on this, @maciekKolbusz In the v0.2 release of PyHTT, we will allow users to choose their own interpolation method, the default being cubic splines. |
I think it may be useful to have a choice of the interpolation method for obtaining envelopes and include ie. quadratic, linear etc. in addition to the cubic spline, because in some situations it could be interesting to see how the results of the decomposition depend on the chosen interpolation method.
The text was updated successfully, but these errors were encountered: