clamped_cubic_spline | R Documentation |
Estimate a natural cubic spline from known values of the function: that is, estimate the first derivative of the spline at each knot to ensure a continuous second derivative, a zero second derivative at the first point, and a given first derivative at the last point.
clamped_cubic_spline(xk, yk, sn)
xk |
A vector of interpolation points. |
yk |
A vector of values at each interpolation point. |
sn |
Derivative at the last knot. |
The vector sk
of first derivatives at each knot.
Thomas Blanchet, Juliette Fournier, Thomas Piketty
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.