cubic_spline | R Documentation |
Given a set of x,y coordinates, calculate the cubic spline that goes through all points. The solution is returned at a specified set of x-coordinates, which must be contained within the input x-coordinates. Both input and output x-coordinates must be increasing (i.e. the spline cannot double back).
cubic_spline(x, y, x_pred)
x, y |
coordinates of points |
x_pred |
x-coordinates at which to calculate cubic spline. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.