Linear Interpolation - Linear Interpolation Between Two Known Points

Linear Interpolation Between Two Known Points

If the two known points are given by the coordinates and, the linear interpolant is the straight line between these points. For a value x in the interval, the value y along the straight line is given from the equation

which can be derived geometrically from the figure on the right. It is a special case of polynomial interpolation with n = 1.

Solving this equation for y, which is the unknown value at x, gives

which is the formula for linear interpolation in the interval . Outside this interval, the formula is identical to linear extrapolation.

This formula can also be understood as a weighted average. The weights are inversely related to the distance from the end points to the unknown point; the closer point has more influence than the farther point. Thus, the weights are and, which are normalized distances between the unknown point and each of the end points.

Read more about this topic:  Linear Interpolation

Famous quotes containing the word points:

    A few ideas seem to be agreed upon. Help none but those who help themselves. Educate only at schools which provide in some form for industrial education. These two points should be insisted upon. Let the normal instruction be that men must earn their own living, and that by the labor of their hands as far as may be. This is the gospel of salvation for the colored man. Let the labor not be servile, but in manly occupations like that of the carpenter, the farmer, and the blacksmith.
    Rutherford Birchard Hayes (1822–1893)