A linearly interpolated value is given by
y
=
y
0
+
(
x
-
x
0
)
y
1
-
y
0
x
1
-
x
0