Relative Content

Tag Archive for pythonscipyinterpolationspline

Spline lineal continuation on borders

I have code interpolating a spline from a CDF that seems valid between the range x=40 and x=110. Below 40, I want a flat line at 0, and after 110, a flat line at 1 towards infinite.

Dealing with NaN using Cubic Spline from Scipy

I am attempting to use cubic spline interpolation for a data set (as shown). CubicSpline function requires all numbers to be finite, how can I use it to fill in each NaN value using interpolation?