There are two points \(A\left ( x_{A},y_{A} \right )\) and \(B\left ( x_{B},y_{B} \right )\) in the two-dimensional coordinate system. The linear interpolation calculates the value of :math: xepsilon left [ x_{B}, x_{B} right ] on the AB line. Its expression is:
\[y=y_{A}+\frac{y_{B}-y_{A}}{x_{B}-x_{A}}\times \left ( x-x_{A} \right )\]
The implementation is very simple and not elaborated here. For more information, please check out source code and `linear`_.
.._`linear`: https://en.wikipedia.org/wiki/Linear_interpolation