Learn R Programming

cmna (version 1.0.0)

linterp: 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

Value

a linear equation's coefficients

Details

linterp finds a linear function between two points.

See Also

Other interp: bezier, bilinear, cubicspline, nn, polyinterp, pwiselinterp

Other algebra: bilinear, cubicspline, division, fibonacci, horner, isPrime, nthroot, polyinterp, pwiselinterp, quadratic

Examples

Run this code
# NOT RUN {
f <- linterp(3, 2, 7, -2)

# }

Run the code above in your browser using DataLab