When using Interpolation::CatmullRom
I'm getting no data near the edges (near the first and last point in training data). I assume one could move the edges in each direction to expand the interval but what would be a good approach if one or both edges can't be moved?
I noticed in the old repo the issue was already raised but not answered: https://github.com/hadronized/splines/issues/37
Hi,
Thanks for reaching out! I’ll see whenever I have some time to fix that. If anyone else wants to give it a try, please feel free to.
Also, according to wiki (https://en.wikipedia.org/wiki/Cubic_Hermite_spline), it looks like Catmull–Rom requires uniform spacing. Would be nice to add that to the docs.
Also, according to wiki (https://en.wikipedia.org/wiki/Cubic_Hermite_spline), it looks like Catmull–Rom requires uniform spacing. Would be nice to add that to the docs.
Good idea.
For now, I’m just going to update the documentation and specify that it is not possible to get values interpolated between P0 and P1, and P2 and P3 if only P0, P1, P2 and P4 are provided. Any other behavior could be implemented in various different ways, and so far there hasn’t been really a way to decide which one to use, so I’d rather have the user handle that special case for now.
My initial point still stands; I’ll be happy to review a patch.