linterp: Linear interpolation

Description Usage Arguments Details Value See Also Examples

View source: R/linterp.R

Description

Finds a linear function between two points

Usage

1
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

1
f <- linterp(3, 2, 7, -2)

cmna documentation built on July 14, 2021, 5:11 p.m.