Inverse distance weighting is a type of deterministic method for multivariate interpolation with a known scattered set of points. The assigned values to unknown points are calculated with a weighted average of the values available at the known points. The name given to this type of methods was motivated by the weighted average applied, since it resorts to the inverse of the distance to each known point when assigning weights.
Definition of the problem
The expected result is a discrete assignment of the unknown function in a study region: where is the study region. The set of known data points can be described as a list of tuples: The function is to be "smooth", to be exact and to meet the user's intuitive expectations about the phenomenon under investigation. Furthermore, the function should be suitable for a computer application at a reasonable cost.
Shepard's method
Historical reference
At the Harvard Laboratory for Computer Graphics and Spatial Analysis, beginning in 1965, a varied collection of scientists converged to rethink, among other things, what we now call geographic information systems. The motive force behind the Laboratory, Howard Fisher, conceived an improved computer mapping program that he called SYMAP, which, from the start, Fisher wanted to improve on the interpolation. He showed Harvard College freshmen his work on SYMAP, and many of them participated in Laboratory events. One freshman, Donald Shepard, decided to overhaul the interpolation in SYMAP, resulting in his famous article from 1968. Shepard’s algorithm was also influenced by the theoretical approach of William Warntz and others at the Lab who worked with spatial analysis. He conducted a number of experiments with the exponent of distance, deciding on something closer to the gravity model. Shepard implemented not just basic inverse distance weighting, but also he allowed barriers to interpolation. Other research centers were working on interpolation at this time, particularly University of Kansas and their SURFACE II program. Still, the features of SYMAP were state-of-the-art, even though programmed by an undergraduate.
Basic form
A general form of finding an interpolated value at a given point based on samples for using IDW is an interpolating function: where is a simple IDW weighting function, as defined by Shepard, x denotes an interpolated point, xi is an interpolating point, is a given distance from the known point xi to the unknown point x, N is the total number of known points used in interpolation and is a positive real number, called the power parameter. Here weight decreases as distance increases from the interpolated points. Greater values of assign greater influence to values closest to the interpolated point, with the result turning into a mosaic of tiles with nearly constant interpolated value for large values of p. For two dimensions, power parameters cause the interpolated values to be dominated by points far away, since with a density of data points and neighboring points between distances to, the summed weight is approximately which diverges for and. For M dimensions, the same argument holds for. For the choice of value for p, one can consider the degree of smoothing desired in the interpolation, the density and distribution of samples being interpolated, and the maximum distance over which an individual sample is allowed to influence the surrounding ones. Shepard's method is a consequence of minimization of a functional related to a measure of deviations between tuples of interpolating points and i tuples of interpolated points, defined as: derived from the minimizing condition: The method can easily be extended to other dimensional spaces and it is in fact a generalization of Lagrange approximation into a multidimensional spaces. A modified version of the algorithm designed for trivariate interpolation was developed by Robert J. Renka and is available in Netlib as algorithm 661 in the toms library.
Yet another modification of the Shepard's method was proposed by Łukaszyk also in applications to experimental mechanics. The proposed weighting function had the form where is the Łukaszyk–Karmowski metric chosen also with regard to the statistical error probability distributions of measurement of the interpolated points.
Modified Shepard's method
Another modification of Shepard's method calculates interpolated value using only nearest neighbors within R-sphere. Weights are slightly modified in this case: When combined with fast spatial search structure, it becomes efficient N log N interpolation method suitable for large-scale problems.