Learn R Programming

cmna (version 0.1.2)

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 algebra: bilinear, cubicspline, division, fibonacci, horner, isPrime, nthroot, polyinterp, pwiselinterp, quadratic

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

Examples

Run this code
f <- linterp(3, 2, 7, -2)

Run the code above in your browser using DataLab