Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Inverse distance weighting
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== 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 are now called [[geographic information system]]s.<ref>{{cite news |last=Chrisman |first=Nicholas |title=History of the Harvard Laboratory for Computer Graphics: a Poster Exhibit | url=http://isites.harvard.edu/fs/docs/icb.topic39008.files/History_LCG.pdf}}</ref> The motive force behind the Laboratory, [[Howard_T._Fisher|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.<ref name=shepardArticle>{{cite conference|last=Shepard |first=Donald |year=1968 |title=A two-dimensional interpolation function for irregularly-spaced data |book-title=Proceedings of the 1968 [[Association for Computing Machinery|ACM]] National Conference |pages = 517β524 |doi=10.1145/800186.810616|url=http://revistaseug.ugr.es/index.php/cuadgeo/article/download/5914/6786 }}</ref> 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 (exponent of -2). Shepard implemented not just basic inverse distance weighting, but also allowed barriers (permeable and absolute) 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 === [[Image:Shepard interpolation 2.png|thumb|640px|center|Shepard's interpolation for different power parameters ''p'', from scattered points on the surface <math>z=\exp(-x^2-y^2)</math>]] Given a set of sample points <math>\{ \mathbf{x}_i, u_i | \text{for } \mathbf{x}_i \in \mathbb{R}^n, u_i \in \mathbb{R}\}_{i=1}^N</math>, the IDW interpolation function <math>u(\mathbf{x}): \mathbb{R}^n \to \mathbb{R}</math> is defined as: :<math>u(\mathbf{x}) = \begin{cases} \dfrac{\sum_{i = 1}^{N}{ w_i(\mathbf{x}) u_i } }{ \sum_{i = 1}^{N}{ w_i(\mathbf{x}) } }, & \text{if } d(\mathbf{x},\mathbf{x}_i) \neq 0 \text{ for all } i, \\ u_i, & \text{if } d(\mathbf{x},\mathbf{x}_i) = 0 \text{ for some } i, \end{cases} </math> where :<math>w_i(\mathbf{x}) = \frac{1}{d(\mathbf{x},\mathbf{x}_i)^p}</math> is a simple IDW weighting function, as defined by Shepard,<ref name=shepardArticle/> '''x''' denotes an interpolated (arbitrary) point, '''x'''<sub>''i''</sub> is an interpolating (known) point, <math>d</math> is a given distance ([[Metric (mathematics)|metric]] operator) from the known point '''x'''<sub>''i''</sub> to the unknown point '''x''', ''N'' is the total number of known points used in interpolation and <math>p</math> is a positive real number, called the power parameter. Here weight decreases as distance increases from the interpolated points. Greater values of <math>p</math> assign greater influence to values closest to the interpolated point, with the result turning into a mosaic of tiles (a [[Voronoi diagram]]) with nearly constant interpolated value for large values of ''p''. For two dimensions, power parameters <math>p \leq 2</math> cause the interpolated values to be dominated by points far away, since with a density <math>\rho</math> of data points and neighboring points between distances <math>r_0</math> to <math>R</math>, the summed weight is approximately :<math>\sum_j w_j \approx \int_{r_0}^R \frac{2\pi r\rho \,dr}{r^p} = 2\pi\rho\int_{r_0}^R r^{1-p} \,dr,</math> which diverges for <math>R\rightarrow\infty</math> and <math>p\leq2</math>. For ''M'' dimensions, the same argument holds for <math>p\leq M</math>. 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 [[tuple]]s of interpolating points {'''x''', ''u''} and ''i'' tuples of interpolated points {'''x'''<sub>''i''</sub>, ''u<sub>i</sub>''}, defined as: :<math>\phi(\mathbf{x}, u) = \left( \sum_{i = 0}^{N}{\frac{(u-u_i)^2}{d(\mathbf{x},\mathbf{x}_i)^p}} \right)^{\frac{1}{p}} ,</math> derived from the minimizing condition: :<math>\frac{\partial \phi(\mathbf{x}, u)}{\partial u} = 0.</math> 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 <ref>[https://computerscience.engineering.unt.edu/people/faculty/robert-renka Robert Renka, Professor Emeritus], [[University of North Texas]]</ref> and is available in [[Netlib]] as [https://people.sc.fsu.edu/~jburkardt/f77_src/toms661/toms661.f algorithm 661] in the [[ACM Transactions on Mathematical Software|TOMS Library]]. === Example in 1 dimension === [[Image:Shepard interpolation 1 dimension.png|thumb|640px|center|Shepard's interpolation in 1 dimension, from 4 scattered points and using ''p'' = 2]] === Modified Shepard's method === Another modification of Shepard's method calculates interpolated value using only nearest neighbors within ''R''-sphere (instead of full sample). Weights are slightly modified in this case: :<math>w_k(\mathbf{x}) = \left( \frac{\max(0,R-d(\mathbf{x},\mathbf{x}_k))}{R d(\mathbf{x},\mathbf{x}_k)} \right)^2.</math> When combined with fast spatial search structure (like [[kd-tree]]), it becomes efficient ''N'' log ''N'' interpolation method suitable for large-scale problems. === Additional weightings === Additional weightings can be incorporated into the Inverse Distance Weighting (IDW) method to enhance interpolation accuracy by incorporating more relevant information. These additional weightings act as multipliers to the basic inverse distance weighting function. The decision to use additional weightings should be guided by [[Cross-validation (statistics)|cross-validation]] to ensure optimal performance. For example: * [[Elevation]] difference β applied for [[wind]] speed interpolation.<ref>{{Cite journal |last1=Palomino |first1=I. |last2=MartΓn |first2=F. |date=1995-07-01 |title=A Simple Method for Spatial Interpolation of the Wind in Complex Terrain |url=https://journals.ametsoc.org/view/journals/apme/34/7/1520-0450-34_7_1678.xml |journal=Journal of Applied Meteorology and Climatology |language=EN |volume=34 |issue=7 |pages=1678β1693 |doi=10.1175/1520-0450-34.7.1678 |bibcode=1995JApMe..34.1678P |issn=1520-0450}}</ref> * CUTHI β is used when data is non-homogeneously distributed with [[Cluster analysis|clusters]] and when IDW exhibits the bullseye effect.<ref>{{cite journal | title=A Simple Solution for the Inverse Distance Weighting Interpolation (IDW) Clustering Problem | journal=Sci | date=March 2025 | volume=7 | issue=1 | last1=Nir | first1=Benmoshe | page=30 |doi=10.3390/sci7010030| doi-access=free }}</ref>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)