Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

A Spline interpolation degree question

  1. Jul 13, 2018 #1

    I working on code that does image tracking with missing pixels, but I noticed that higher ordered spline interpolation is unstable. Found through trial and error that the best result is degree 3, picture related. I always thought that spline interpolation does not display behaviours shown in the picture because they are conducted piece by piece over the data set. Is there a numerical explanation for this behaviour?

    P.S interpolation done in python with scipy library

    Attached Files:

  2. jcsd
  3. Jul 13, 2018 #2


    Staff: Mentor

    If the distances between your data points differ by large factors I'm not surprised that high order splines do strange things. It is the same behavior you see outside the interpolation range (as extrapolation).
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Have something to add?