scipy.interpolate.pchip(x, y)[source]

PCHIP 1-d monotonic cubic interpolation

Parameters :

x : array

A 1D array of monotonically increasing real values. x cannot include duplicate values (otherwise f is overspecified)

y : array

A 1-D array of real values. y’s length along the interpolation axis must be equal to the length of x.

Assumes x is sorted in monotonic order (e.g. x[1] > x[0]) :

Previous topic


Next topic