# naginterfaces.library.interp.dim1_​monotonic¶

naginterfaces.library.interp.dim1_monotonic(x, f)[source]

dim1_monotonic computes a monotonicity-preserving piecewise cubic Hermite interpolant to a set of data points.

For full information please refer to the NAG Library document for e01be

https://www.nag.com/numeric/nl/nagdoc_29/flhtml/e01/e01bef.html

Parameters
xfloat, array-like, shape

must be set to , the th value of the independent variable (abscissa), for .

ffloat, array-like, shape

must be set to , the th value of the dependent variable (ordinate), for .

Returns
dfloat, ndarray, shape

Estimates of derivatives at the data points. contains the derivative at .

Raises
NagValueError
(errno )

On entry, .

Constraint: .

(errno )

On entry, , and .

Constraint: for all .

Notes