Cubic spline interpolation at given or equally spaced points. Equivalent to R's spline().
spline()
The points interpolated at (xout, or the equally spaced points).
xout
The interpolated values, one per point of x.
x
spline([1, 2, 3, 4], [1, 4, 9, 16], { xout: [2.5] }).y; // [6.25] Copy
spline([1, 2, 3, 4], [1, 4, 9, 16], { xout: [2.5] }).y; // [6.25]
Cubic spline interpolation at given or equally spaced points. Equivalent to R's
spline().