~hadronized/splines#1: 
No values near the edges

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?

Status
RESOLVED FIXED
Submitter
~johansen23
Assigned to
No-one
Submitted
3 months ago
Updated
a month ago
Labels
No labels applied.

~johansen23 3 months ago

I noticed in the old repo the issue was already raised but not answered: https://github.com/hadronized/splines/issues/37

~hadronized 3 months ago

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.

~johansen23 2 months ago

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.

~hadronized 2 months ago

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.

~hadronized a month ago

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.

~hadronized REPORTED FIXED a month ago

Register here or Log in to comment, or comment via email.