SmoothingSplines.jl icon indicating copy to clipboard operation
SmoothingSplines.jl copied to clipboard

Parametric splines

Open yakir12 opened this issue 4 years ago • 2 comments

It would be great to fit coordinates (XY pairs as a function of, say, time). See http://juliamath.github.io/Interpolations.jl/latest/control/#Parametric-splines for example. MWE:

n = 10
t = 1:n
xy = [Tuple(rand(2)) for _ in 1:n]
spl = fit(SmoothingSpline, t, xy, 1.0)

yakir12 avatar Aug 23 '21 14:08 yakir12

Is the suggestion to implement thin-plate splines, as described in Chapter 5.7 of https://web.stanford.edu/~hastie/ElemStatLearn/printings/ESLII_print12_toc.pdf?

I agree, that would be a nice feature to have!

nignatiadis avatar Aug 24 '21 21:08 nignatiadis

I mean in a similar way to how https://github.com/kbarbary/Dierckx.jl#parametric-splines functions as a smoothing parametric spline (for, say, smoothing trajectories). The advantage would be that while Dierckx.jl is a wrapper for the dierckx Fortran library, SmoothingSplines.jl is in pure Julia.

I don't know how to implement it though :smile:

yakir12 avatar Aug 25 '21 06:08 yakir12