Simple Linear Interpolation
linterp(x, x1, x2, y1, y2)
Arguments
- x
The index at which to predict y
- x1
An index x1 <= x
with known value y1
- x2
An index x1 >= x
with known value y2
- y1
The value at index x1
- y2
The value at index x2
Value
The predicted value y
at index x