Finds a piecewise linear function that interpolates the data points
Usage
cubicspline(x, y)
Arguments
x
a vector of x values
y
a vector of y values
Value
a list of coefficient vectors
Details
cubicspline finds a piecewise cubic spline function that
interpolates the data points. For each x-y ordered pair. The function will
return a list of four vectors representing the coefficients.