Radial basis function interpolation

{{Short description|Method in approximation theory}}

Radial basis function (RBF) interpolation is an advanced method in approximation theory for constructing high-order accurate interpolants of unstructured data, possibly in high-dimensional spaces. The interpolant takes the form of a weighted sum of radial basis functions.{{cite journal |last1=Hardy |first1=Rolland |title=Multiquadric equations of topography and other irregular surfaces |journal=Journal of Geophysical Research |date=March 1971 |volume=76 |issue=8 |pages=1905–1915 |doi=10.1029/JB076i008p01905 |bibcode=1971JGR....76.1905H }}{{cite journal |last1=Richard |first1=Franke |title=Scattered Data Interpolation: Tests of Some Methods |journal=Mathematics of Computation |date=January 1982 |volume=38 |issue=157 |pages=181–200 |doi=10.1090/S0025-5718-1982-0637296-4 |doi-access=free |hdl=10945/40152 |hdl-access=free }} RBF interpolation is a mesh-free method, meaning the nodes (points in the domain) need not lie on a structured grid, and does not require the formation of a mesh. It is often spectrally accurate{{cite journal |last1=Buhmann |first1=Martin |last2=Nira |first2=Dyn |title=Spectral convergence of multiquadric interpolation |journal=Proceedings of the Edinburgh Mathematical Society |date=June 1993 |volume=36 |issue=2 |pages=319–333 |doi=10.1017/S0013091500018411 |doi-access=free }} and stable for large numbers of nodes even in high dimensions.

Many interpolation methods can be used as the theoretical foundation of algorithms for approximating linear operators, and RBF interpolation is no exception. RBF interpolation has been used to approximate differential operators, integral operators, and surface differential operators.

Examples

Let f(x) = \exp(x \cos(3 \pi x)) and let x_k = \frac{k}{14}, k=0, 1, \dots, 14 be 15 equally spaced points on the interval [0, 1]. We will form s(x) = \sum\limits_{k=0}^{14} w_k \varphi(\|x-x_k\|) where \varphi is a radial basis function, and choose w_k, k=0, 1, \dots, 14 such that s(x_k)=f(x_k), k=0, 1, \dots, 14 (s interpolates f at the chosen points). In matrix notation this can be written as

:

\begin{bmatrix}

\varphi(\|x_0 - x_0\|) & \varphi(\|x_1 - x_0\|) & \dots & \varphi(\|x_{14} - x_0\|) \\

\varphi(\|x_0 - x_1\|) & \varphi(\|x_1 - x_1\|) & \dots & \varphi(\|x_{14} - x_{1}\|) \\

\vdots & \vdots & \ddots & \vdots \\

\varphi(\|x_0 - x_{14}\|) & \varphi(\|x_1 - x_{14}\|) & \dots & \varphi(\|x_{14} - x_{14}\|) \\

\end{bmatrix}

\begin{bmatrix}w_0 \\ w_1 \\ \vdots \\ w_{14}\end{bmatrix}

= \begin{bmatrix}f(x_0) \\ f(x_1) \\ \vdots \\ f(x_{14})\end{bmatrix}.

Choosing \varphi(r) = \exp(-(\varepsilon r)^2), the Gaussian, with a shape parameter of \varepsilon = 3, we can then solve the matrix equation for the weights and plot the interpolant. Plotting the interpolating function below, we see that it is visually the same everywhere except near the left boundary (an example of Runge's phenomenon), where it is still a very close approximation. More precisely the maximum error is roughly \|f - s\|_\infty \approx 0.0267414 at x = 0.0220012.

{{multiple image

| align = center

| width = 500

| image1 = Radial Basis Function Interpolation.svg|

| caption1 = The function f(x) = \exp(x \cos(3 \pi x)) sampled at 15 uniform nodes between 0 and 1, interpolated using the Gaussian RBF with a shape parameter of \varepsilon = 3.

| image2 = Radial Basis Function Interpolation Error.svg|

| caption2 = The interpolation error, s(x) - f(x), for the plot to the left.

| direction =

| total_width =

| alt1 =

}}

Motivation

The Mairhuber–Curtis theorem says that for any open set V in \mathbb{R}^n with n \geq 2, and f_1, f_2, \dots, f_n linearly independent functions on V, there exists a set of n points in the domain such that the interpolation matrix

:

\begin{bmatrix}

f_1(x_1) & f_2(x_1) & \dots & f_n(x_1) \\

f_1(x_2) & f_2(x_2) & \dots & f_n(x_2) \\

\vdots & \vdots & \ddots & \vdots \\

f_1(x_n) & f_2(x_n) & \dots & f_n(x_n)

\end{bmatrix}

is singular.{{cite journal |last1=Mairhuber |first1=John C. |title=On Haar's Theorem Concerning Chebychev Approximation Problems Having Unique Solutions |journal=Proceedings of the American Mathematical Society |date=1956 |volume=7 |issue=4 |pages=609–615 |doi=10.2307/2033359 |jstor=2033359 }}

This means that if one wishes to have a general interpolation algorithm, one must choose the basis functions to depend on the interpolation points. In 1971, Rolland Hardy developed a method of interpolating scattered data using interpolants of the form s(\mathbf{x}) = \sum\limits_{k=1}^N \sqrt{\|\mathbf{x} - \mathbf{x}_k\|^2 + C}. This is interpolation using a basis of shifted multiquadric functions, now more commonly written as \varphi(r) = \sqrt{1+(\varepsilon r)^2}, and is the first instance of radial basis function interpolation.{{

cite journal |

last1=Hardy |

first1=Rolland L. |

title=Multiquadric equations of topography and other irregular surfaces

|journal=Journal of Geophysical Research

|date=1971 |volume=7 |issue=8 |pages=1905–1915

|

doi=10.1029/JB076i008p01905 |

bibcode=1971JGR....76.1905H }} It has been shown that the resulting interpolation matrix will always be non-singular. This does not violate the Mairhuber–Curtis theorem since the basis functions depend on the points of interpolation. Choosing a radial kernel such that the interpolation matrix is non-singular is exactly the definition of a strictly positive definite function. Such functions, including the Gaussian, inverse quadratic, and inverse multiquadric are often used as radial basis functions for this reason.{{

cite book |

last1=Fasshaur |

first1=Greg |

title=Meshfree Approximation Methods with MATLAB |

date=2007 |

publisher=World Scientific Publishing |

isbn=978-981-270-633-1

}}

Shape-parameter tuning

{{Unreferenced section|date=May 2020}}Many radial basis functions have a parameter that controls their relative flatness or peakedness. This parameter is usually represented by the symbol \varepsilon with the function becoming increasingly flat as \varepsilon \to 0. For example, Rolland Hardy used the formula \varphi(r) = \sqrt{r^2 + C} for the multiquadric, however nowadays the formula \varphi(r) = \sqrt{1 + (\varepsilon r)^2} is used instead. These formulas are equivalent up to a scale factor. This factor is inconsequential since the basis vectors have the same span and the interpolation weights will compensate. By convention, the basis function is scaled such that \varphi(0) = 1 as seen in the plots of the Gaussian functions and the bump functions.

File:Gaussian function shape parameter.png|A Gaussian function for several choices of \varepsilon

File:Bump function shape.png|A plot of the scaled bump function with several choices of shape parameter

File:Bed of nails.png interpolant."]]

A consequence of this choice is that the interpolation matrix approaches the identity matrix as \varepsilon \to \infty leading to stability when solving the matrix system. The resulting interpolant will in general be a poor approximation to the function since it will be near zero everywhere, except near the interpolation points where it will sharply peak{{snd}}the so-called "bed-of-nails interpolant" (as seen in the plot to the right).

File:Edge of ill-conditioning.png

On the opposite side of the spectrum, the condition number of the interpolation matrix will diverge to infinity as \varepsilon \to 0 leading to ill-conditioning of the system. In practice, one chooses a shape parameter so that the interpolation matrix is "on the edge of ill-conditioning" (eg. with a condition number of roughly 10^{12} for double-precision floating point).

There are sometimes other factors to consider when choosing a shape-parameter. For example the bump function

\varphi(r) =

\begin{cases}

\exp\left( -\frac{1}{1 - (\varepsilon r)^2}\right) & \mbox{ for } r<\frac{1}{\varepsilon} \\

0 & \mbox{ otherwise}

\end{cases}

has a compact support (it is zero everywhere except when r< \tfrac{1}{\varepsilon}) leading to a sparse interpolation matrix.

Some radial basis functions such as the polyharmonic splines have no shape-parameter.

See also

References