View source: R/interpolators.R
iprBarycentricRational | R Documentation |
Barycentric rational interpolator.
iprBarycentricRational(x, y, ao = 3)
x, y |
numeric vectors giving the coordinates of the known points, without missing value |
ao |
approximation order, an integer greater than or equal to 3 |
See Barycentric rational interpolation.
An interpolator, for usage in evalInterpolator
.
library(interpolators)
x <- c(1, 2, 4, 5)
y <- x^2
ipr <- iprBarycentricRational(x, y)
evalInterpolator(ipr, c(2, 3))
evalInterpolator(ipr, c(2, 3), derivative = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.