You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I recently discovered this nice library and decided to try it since I got unevenly spaced data,
however I found out today that the .mean() wasn't doing linear interpolation as I thought it would be:
With linear interpolation between 2 points we would find that t[2] = 10 and doing the average from 0 to 2 would give us 3.333 in this example.
A simple optional argument in mean() to choose the interpolation method would be fantastic, and I really think that it would be useful to many users who are not using traces exclusively for binary data (where linear interpolation would make no sense).
I know that we can re-sample the TimeSeries but I think a shortcut like this would be really neat since this library is designed with ease of use in mind.
Thanks for reading and have a nice day 👋
The text was updated successfully, but these errors were encountered:
@Inspirateur thanks for the suggestion! I agree this would be useful. To double check I'm understanding, in the example you gave the mean between 0 and 2 should be 2.5, right? (and 3.333 if taken between 0 and 3?)
So I recently discovered this nice library and decided to try it since I got unevenly spaced data,
however I found out today that the .mean() wasn't doing linear interpolation as I thought it would be:
With linear interpolation between 2 points we would find that t[2] = 10 and doing the average from 0 to 2 would give us 3.333 in this example.
A simple optional argument in mean() to choose the interpolation method would be fantastic, and I really think that it would be useful to many users who are not using traces exclusively for binary data (where linear interpolation would make no sense).
I know that we can re-sample the TimeSeries but I think a shortcut like this would be really neat since this library is designed with ease of use in mind.
Thanks for reading and have a nice day 👋
The text was updated successfully, but these errors were encountered: