Radial Basis Function (RBF)
The radial basis function (RBF), also known as the Radial Point Interpolation Method (RPIM), is a meshfree method used to construct an interpolated function to fit a curve. It uses a set of radial basis functions to interpolate between nodal values, with at least four types of different RBFs used in the literature. The RPIM has no guarantee on the reproduction of polynomial functions since most RBFs use a “radial-basis-power-law” to fit the curve. However, the RBF’s shape parameters can be used to control the smoothness of the fitted curve.
To establish the RPIM formulation, we begin with a representation of a curve function in a 1D system using RBF, with a numerical example of five nodal values given to be fitted. By solving for the unknowns, we can obtain a general fitted function that yields a continuous interpolated function along x based on given nodal values at specified locations. The RPIM has the ability to fit the curve exactly, passing through all the given nodes. The implementation codes for the RPIM are provided in the article, including MATLAB codes that allow us to try any number of given curve nodes, change the parameters’ value, and observe the performance of the RPIM in fitting the curve.
In summary, the RPIM is a useful method for fitting curves based on a set of nodal values using RBFs. Its flexibility and ability to fit the curve exactly make it a popular choice in many applications. However, it’s important to be aware of the limitations of RBFs and their use in the RPIM. The shape parameters used to control the smoothness of the fitted curve and the type of RBFs used can significantly affect the general performance of the RPIM in fitting the curve.
GENERALISED CODES
Here, we provide a more generalised version of the RBF codes that allows for a flexible number of given curve nodes, adjustable parameter values, and easy evaluation of the PIM performance in curve fitting.
clear, clc uc = [0 -0.8 4.8 2 -1 0 0 -4.7 2 1 0]’ % nodal values of a curve n = length(uc) % number of given nodes % types of RBF (choose only on) Rc = []; dxc = 0.1; % step (can be changed if necessary) R = []; fx = phi*uc cla |