SciPy

This is documentation for an old release of SciPy (version 0.17.1). Search for this page in the documentation of the latest stable release (version 1.15.1).

scipy.interpolate.spline

scipy.interpolate.spline(xk, yk, xnew, order=3, kind='smoothest', conds=None)[source]

Interpolate a curve at new points using a spline fit

Parameters:

xk, yk : array_like

The x and y values that define the curve.

xnew : array_like

The x values where spline should estimate the y values.

order : int

Default is 3.

kind : string

One of {‘smoothest’}

conds : Don’t know

Don’t know

Returns:

spline : ndarray

An array of y values; the spline evaluated at the positions xnew.