linterp {cmna} | R Documentation |
Linear interpolation
Description
Finds a linear function between two points
Usage
linterp(x1, y1, x2, y2)
Arguments
x1 |
x value of the first point |
y1 |
y value of the first point |
x2 |
x value of the second point |
y2 |
y value of the second point |
Details
linterp
finds a linear function between two points.
Value
a linear equation's coefficients
See Also
Other interp:
bezier
,
bilinear()
,
cubicspline()
,
nn()
,
polyinterp()
,
pwiselinterp()
Other algebra:
bilinear()
,
cubicspline()
,
division
,
fibonacci()
,
horner()
,
isPrime()
,
nthroot()
,
polyinterp()
,
pwiselinterp()
,
quadratic()
Examples
f <- linterp(3, 2, 7, -2)
[Package cmna version 1.0.5 Index]