Description Usage Arguments Details Value See Also Examples
Finds a piecewise linear function that interpolates the data points
1 | cubicspline(x, y)
|
x |
a vector of x values |
y |
a vector of y values |
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.
a list of coefficient vectors
Other interp:
bezier,
bilinear(),
linterp(),
nn(),
polyinterp(),
pwiselinterp()
Other algebra:
bilinear(),
division,
fibonacci(),
horner(),
isPrime(),
linterp(),
nthroot(),
polyinterp(),
pwiselinterp(),
quadratic()
1 2 3 4 5 6 7 | x <- c(1, 2, 3)
y <- c(2, 3, 5)
f <- cubicspline(x, y)
x <- c(-1, 1, 0, -2)
y <- c(-2, 2, -1, -1)
f <- cubicspline(x, y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.