hmf.core._kernels.interpolation.lagrange4¶
- hmf.core._kernels.interpolation.lagrange4(u: ndarray[tuple[Any, ...], dtype[float64]], f_m1: ndarray[tuple[Any, ...], dtype[float64]], f_0: ndarray[tuple[Any, ...], dtype[float64]], f_1: ndarray[tuple[Any, ...], dtype[float64]], f_2: ndarray[tuple[Any, ...], dtype[float64]]) ndarray[tuple[Any, ...], dtype[float64]][source]¶
The 4-point Lagrange interpolant through nodes at -1, 0, 1, 2, evaluated at
u.- Parameters:
u – The local coordinate, in
[0, 1](between the middle two nodes).f_m1 – The values at the four nodes.
f_0 – The values at the four nodes.
f_1 – The values at the four nodes.
f_2 – The values at the four nodes.
- Returns:
The interpolant.
- Return type:
ndarray