I have a set of observations $y_i$ for a set of values of the independent variable $x_i$. $x_i$ takes values of angles, so it is a circular variable. Is there some method to perform cubic splines or some interpolation on the values of $y_i$, taking into account the circularity of $x_i$? Extra points if there exists a Python implementation :)
Asked
Active
Viewed 16 times
0
-
1Did you consider searching our site first? BTW, there's a simple hack when all you have is a spline function: triple your dataset by copying the responses into the period before your data and again into the period after your data. Fit any spline, then extract the middle third. – whuber Aug 16 '23 at 22:03
-
Thanks, I did search but didn't find that, and didn't come up in "similar questions". Although evidently is wasn't a thorough enough search. – dherrera Aug 17 '23 at 03:50
-
1Great proposed hack btw. I think I'll go with that – dherrera Aug 17 '23 at 03:51