scipy.interpolate.pchip_interpolate

scipy.interpolate.pchip_interpolate(xi, yi, x, der=0, axis=0)[source]

Convenience function for pchip interpolation.

See PchipInterpolator for details.

Parameters :

xi : array_like

A sorted list of x-coordinates, of length N.

yi : list of lists

yi[i] is the list of derivatives known at xi[i]. Of length N.

x : scalar or array_like

Of length M.

der : integer or list

How many derivatives to extract; None for all potentially nonzero derivatives (that is a number equal to the number of points), or a list of derivatives to extract. This number includes the function value as 0th derivative.

axis : int, optional

Axis in the yi array corresponding to the x-coordinate values.

Returns :

y : scalar or array_like

The result, of length R or length M or M by R,

Previous topic

scipy.interpolate.piecewise_polynomial_interpolate

Next topic

scipy.interpolate.griddata