Back to Blog

Linear vs. Cubic Interpolation

To give a short explanation: Again the red dots represent measured data points, for example temperature, lightness, air pressure, etc. These measurements are distributed rather coarsly across the space, still we are interested in approximating values that lie inbetween. Obviously this approximation has to be based in some way on the actual measurements that have been taken. For example, linear interpolation assumes linear progression/degression between neighboring data points. Instead, cubic interpolation assumes a more complex formula while allowing for smoother interpolation results.

In the end what you choose in your particular situation depends on many factors, i.e. even though being less impressive linear interpolation is used in a number of applications. One important reason certainly is the complexity of the formulas and the complexity of computing results respectively. Therefore you might think of the choice as a trade-off between quality and performance (although that might not be true for every case).

Still, with these articles I hope to encourage a discourse about information and computer science among a broader audience. Also, comments are always welcome!

You might also be interested in