What is Linear Interpolation, AKA Lerp?

What is Linear Interpolation, AKA Lerp?



For a set of discrete values, Linear Interpolation can approximate other values inbetween, assuming a linear development between these discrete values.

An interpolated value, calculated with linear interpolation, is calculated only in respect to the two surrounding values.

To calculate a value between two other values, using linear interpolation, a certain factor, often called "step", must be used. The value has to be between value 1 (v0) and value 2 (v1). If "step" is 0.0 the interpolated value is equal to v0 and if step is 1.0, it's equal to v1. So the formula is as follows:

v0 ∗ (1.0−step) + v1 ∗ step

or (computationally a more efficient way):

v0 + (v1 − v0) ∗ step

Popular posts from this blog

Is rotation necessary in PCA? If yes, Why? What will happen if you don't rotate the components?

After analyzing the model, your manager has informed that your regression model is suffering from multicollinearity. How would you check if he's true? Without losing any information, can you still build a better model?

What does Latency mean?