View source: R/linear_interpolation.R
linear_interpolation | R Documentation |
The linear interpolation function, interpolate value of the function at point x.
linear_interpolation(x, x1, x2, y1, y2)
x |
numeric value, argument in the searched function value. |
x1 |
numeric value, argument of the function x1 <= x. |
x2 |
numeric value, actual argument of the function x <= x2. |
y1 |
numeric value, the value of the function at the point x1. |
y2 |
numeric value, the value of the function at the point x2. |
A numeric value, interpolated value of the function at the point x.
linear_interpolation(3, 2, 3.5, 5, 7)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.