Interpolation - Maple Help

 Interpolation

Maple 2018 contains a new package for interpolating structured and unstructured data in any dimension. The supported methods include Kriging, inverse distance weighted, natural neighbor, and more.

The Interpolate command provides an interface to all interpolation methods. It returns objects that behave like normal mathematical functions.

$\mathrm{with}\left(\mathrm{Interpolation}\right)$

 $\left[{\mathrm{CubicInterpolation}}{,}{\mathrm{HighestNeighborInterpolation}}{,}{\mathrm{Interpolate}}{,}{\mathrm{InverseDistanceWeightedInterpolation}}{,}{\mathrm{Kriging}}{,}{\mathrm{LinearInterpolation}}{,}{\mathrm{LinearTriangularInterpolation}}{,}{\mathrm{LowestNeighborInterpolation}}{,}{\mathrm{NaturalNeighborInterpolation}}{,}{\mathrm{NearestNeighborInterpolation}}{,}{\mathrm{RadialBasisFunctionInterpolation}}{,}{\mathrm{SplineInterpolation}}\right]$ (1)

$\mathrm{points}≔\left[\left[0,0\right],\left[1,0\right],\left[2,0\right],\left[0,1\right],\left[1,1\right],\left[2,1\right],\left[0,2\right],\left[1,2\right],\left[2,2\right]\right]:$

 ${g}{≔}\left(\begin{array}{c}{Raⅆial Basis Function intⅇrpolation obȷⅇct with 9 samplⅇ points}\\ {Raⅆial Basis Function: gaussian}\end{array}\right)$ (2)

$g\left(1,0.5\right)$

 ${0.520634529490956455}$ (3)

$\mathrm{p2}≔\mathrm{plot3d}\left(g,0..2,0..2,\mathrm{color}="SteelBlue"\right):$



Previous versions of Maple already included interpolation methods for 1-dimensional data and data given for a grid of points, like in the previous example. But Maple 2018 is the first version where you can interpolate data given for points in arbitrary, unstructured locations.

The kriging interpolation method supports some extra functionality backed by statistical theory. In particular, it allows one to generate random data that is spatially correlated according to a so-called variogram. The supported variograms are explained in the SetVariogram help page. Here is an example:

We can now define an interpolating object using the Kriging method, and tell it the variogram used for its input.

 $\left(\begin{array}{c}{Kriging intⅇrpolation obȷⅇct with 50 samplⅇ points}\\ {Variogram: RationalQuaⅆratic\left(0,10,1\right)}\end{array}\right)$ (4)

The interpolating object can return function values as if it were a regular mathematical function:

 ${-0.143204039288054363}$ (5)

It can also compute the variance associated with such function values - which gives a sense of the confidence in this value.

 ${0.361603843473117470}$ (6)

We can visualize this variance by colouring the interpolated surface according to it.

In this visualization, red areas have high confidence and yellow, green, and blue areas have less confidence.