NLRequest an API key
Guides

What is interpolation?

Interpolation is estimating a value between two known values.

In short

You know a value at time A and at time B. Interpolation estimates what it was in between. The best known form is linear interpolation: you draw a straight line between A and B and read the values in between off that line.

An example

At 08:00 the reading is 100 and at 09:00 it is 140. At 08:30 you estimate 120, exactly the middle. The formula is y = y1 + (y2 - y1) * (t - t1) / (t2 - t1).

Other forms

Interpolation and extrapolation

Interpolation estimates within the range of your known values. Extrapolation estimates outside it, for example for a gap at the end of a series. That is less reliable.

When it goes wrong

Interpolation assumes nothing special happened between the two points. With a long gap, a meter replacement or a register that jumps back, that assumption fails. Always mark estimated values as estimated.

More background: Interpolation on Wikipedia.