https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.savgol_filter.html
It doesn't seem to have an option for uneven data points.
So the question is, given data [x, y]
where spaces between x's are not equal,
how can I generate [x, yhat]
where yhat is given by savgol_filter
?
I'd like to draw line graph with [x, y]
first,
Then sample datapoints [x_, y_]
which are evenly spaced..
Then I can apply savgol_filter to get a polynomial function for the approximation.
Then use the polynomial function to get [x, yhat]
..