GMS:Quadratic Nodal Functions: Difference between revisions

From XMS Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 14: Line 14:
For 3D interpolation, the equation for the quadratic nodal function is:
For 3D interpolation, the equation for the quadratic nodal function is:


<!--[[Image:idw3d_eq4.gif]]-->
[[Image:idw3d_eq4.gif]]
<math>+a_{k5} \left ( x-x_k \right )(y-y_k)+a_{k6}(x-x_k)(z-z_k)+a_{k7}(y-y_k)(z-z_k)</math>
<math>+a_{k5} \left ( x-x_k \right )(y-y_k)+a_{k6}(x-x_k)(z-z_k)+a_{k7}(y-y_k)(z-z_k)</math>



Revision as of 18:38, 5 September 2012

The nodal functions used in inverse distance weighted interpolation can be higher degree polynomial functions constrained to pass through the scatter point and approximate the nearby points in a least squares manner. Quadratic polynomials have been found to work well in many cases (Franke & Nielson 1980; Franke 1982). The resulting surface reproduces local variations implicit in the data set, is smooth, and approximates the quadratic nodal functions near the scatter points. The equation used for the quadratic nodal function centered at point k is as follows:

To define the function, the six coefficients ak1..ak6 must be found. Since the function is centered at the point k and passes through point k, we know beforehand that ak1=fk where fk is the function value at point k. The equation simplifies to:

Now there are only five unknown coefficients. The coefficients are found by fitting the quadratic to the nearest NQ scatter points using a weighted least squares approach. In order for the matrix equation used to solve for the coefficients to be stable, there should be at least five scatter points in the set.

3D Interpolation

For 3D interpolation, the equation for the quadratic nodal function is:

File:Idw3d eq4.gif

To define the function, the ten coefficients ak1..ak10 must be found. Since the function is centered on point k, we know that ak1=fk where fk is the data value at point k. The equation simplifies to:

Now there are only nine unknown coefficients. The coefficients are found by fitting the quadratic to a subset of the neighboring scatter points in a weighted least squares fashion. In order for the matrix equation used to be solve for the coefficients to be stable, there should be at least ten non-coplanar scatter points in the set.