spline API#
-
inline auto splinart::spline(const xt::xtensor<double, 1> &xs, const xt::xtensor<double, 2> &ys)#
Return the second derivative of a cubic spline.
- Parameters:
xs – The x coordinate of the cubic spline.
ys – The y coordinate of the cubic spline.
- Returns:
The second derivative of the cubic spline.
-
inline void splinart::splint(const xt::xtensor<double, 1> &xs, const xt::xtensor<double, 2> &ys, const xt::xtensor<double, 2> &y2s, xt::xtensor<double, 1> &x, xt::xtensor<double, 2> &y)#
Evaluate a sample on a cubic spline.
- Parameters:
xs – The x coordinates of the cubic spline.
ys – The y coordinates of the cubic spline.
y2s – The second derivative of the cubic spline.
x – The sample where to evaluate the cubic spline.
y – The output coordinates of the sample.