Botond
Botond

Reputation: 2802

SciPy's interp1d endpoints

In SciPy's interpolation module there is a function called interp1d. The documentation says that it is a spline interpolation: http://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.interp1d.html I could however nowhere find what is the boundary condition on the endpoints. For instance, in the case of a cubic spline, one should specify the derivatives (or the second derivatives) at the endpoints. What are the values used by interp1d?

Upvotes: 1

Views: 659

Answers (1)

ev-br
ev-br

Reputation: 26090

CubicSpline, which is new in scipy 0.18, allows a user control over the boundary conditions. Neither FITPACK nor interp1d do.

Upvotes: 1

Related Questions