hmf.core._kernels.interpolation.hermite_cubic¶
- hmf.core._kernels.interpolation.hermite_cubic(u: ndarray[tuple[Any, ...], dtype[float64]], h: float, y0: ndarray[tuple[Any, ...], dtype[float64]], y1: ndarray[tuple[Any, ...], dtype[float64]], d0: ndarray[tuple[Any, ...], dtype[float64]], d1: ndarray[tuple[Any, ...], dtype[float64]]) ndarray[tuple[Any, ...], dtype[float64]][source]¶
The cubic Hermite interpolant on
[x0, x0 + h]atx0 + u h.- Parameters:
u – The local coordinate, in
[0, 1].h – The width of the interval.
y0 – The values at its ends.
y1 – The values at its ends.
d0 – The derivatives at its ends.
d1 – The derivatives at its ends.
- Returns:
The interpolant.
- Return type:
ndarray