Research Article  Open Access
Jafar Biazar, Mohammad Hosami, "Selection of an Interval for Variable Shape Parameter in Approximation by Radial Basis Functions", Advances in Numerical Analysis, vol. 2016, Article ID 1397849, 11 pages, 2016. https://doi.org/10.1155/2016/1397849
Selection of an Interval for Variable Shape Parameter in Approximation by Radial Basis Functions
Abstract
In radial basis function approximation, the shape parameter can be variable. The values of the variable shape parameter strategies are selected from an interval which is usually determined by trial and error. As yet there is not any algorithm for determining an appropriate interval, although there are some recipes for optimal values. In this paper, a novel algorithm for determining an interval is proposed. Different variable shape parameter strategies are examined. The results show that the determined interval significantly improved the accuracy and is suitable enough to count on in variable shape parameter strategies.
1. Introduction
Radial basis function methods are the tools for interpolating a multivariate data set, approximating a function, and solving partial differential equations [1–5]. A radial basis function, say , is a continuous univariate function that has been realized by composition with the Euclidean norm in . Radial basis functions (RBFs) may contain a parameter called the shape parameter. Most wellknown RBFs have a shape parameter, such as Multiquadric (MQ), Inverse Multiquadric (IMQ), and Gaussian parameters. A wellknown RBF without a shape parameter is thinplate spline (TPS). This class of RBFs approximates with polynomial convergence rate, but three mentioned RBFs approximate with spectral convergence rate. This point leads to applying RBFs with a shape parameter, even though we know that the value of the shape parameter is an issue. In these radial basis functions, the value of the shape parameter plays an important role for the accuracy of the procedure. An important problem is determining the optimal value for the shape parameter. Several articles have been dedicated to introducing different algorithms to compute a constant value, as an optimal or a good value, for the shape parameter [6–15]. Kansa and Carlson showed that instead of a fixed shape parameter variable shape parameters are also useful [16]. They distribute some values in an interval to use them in variable shape parameter. Moreover, there are some articles applying the variable shape parameter in various problems [17–20]. But in many of them there is not any criterion to select the interval of the shape parameters. In fact the selected interval to distribute the shape parameters is userdefined as the selection of the value in constant shape parameter.
In this paper, we focus on the selection of a valid interval in variable shape parameter. An algorithm is suggested to obtain this interval. To show the efficiency of the proposed interval, it is investigated in different variable shape parameter strategies.
2. Shape Parameter in MQRBF Approximation
In the RBF methods, a function is approximated by as in the following:By interpolation conditionsa system of linear equations is obtained as the matrix form , where and If the Multiquadric (MQ) radial basis function is used, the method is called MQRBF approximation. In this paper, the MQ is applied throughout the methods and examples.
In MQRBF approximation, is presented as the following form:where and is the shape parameter. Sometimes, to show the dependence of in the accuracy of , the approximate function is written as
Now consider a boundary value problem defined bywhere is a linear differential operator and is a linear boundary operator. is the domain of the problem and is the boundary of the domain. Suppose that are a set of distinct centre nodes in the domain such that are interior centre nodes and are boundary centres.
By substituting the approximation of given by RBF approximation (1), problem (4) can be written asBy substituting the centres and in (5) and (6), respectively, the system of equations is obtained, whereAnd the entries are defined as follows:By solving the system of equations , the unknown variables are determined.
2.1. Variable Shape Parameter Strategies
The shape parameter in radial basis function approximation is usually a predefined constant parameter. It is acknowledged that in many cases using variable shape parameter strategies results in more accurate approximation [16, 17, 19]. A variable shape parameter strategy uses different values of the shape parameter at different centre points:where is the shape parameter corresponding to the data point . Applying interpolation conditions (2) to results in the following system: where in , the matrix of interpolation, each column has the same shape parameter, corresponding to each centre. In MQRBF, the interpolation matrix is as follows:Kansa and Hon [21] showed that the coefficient matrices in global radial basis function approximation tend to become progressively more illconditioned, but the variable shape parameter can improve the conditioning of the coefficient matrix. In fact, using variable shape parameter leads to more distinct entries in the RBF matrices which in turn lead to lower condition numbers.
Although variable shape parameter strategy is very accurate, the coefficient matrix is no longer symmetric. This is the cost that should be paid for improving the accuracy.
In variable shape parameter, should be varied in a predetermined interval . There are different approaches to distribute the values of the variable shape parameter over an interval. Kansa and Carlson presented some variable shape parameter strategies with different shape parameters at different centres [16]. Their distributions of parameters are in the forms of increasing linearly, decreasing linearly, and exponentially varying shape parameter, respectively, as follows:Their empirical results demonstrated that in comparison with the constant shape parameter the variable shape parameter can significantly reduce the RMS errors of MQ interpolations. They had shown that variable form of the MQ improves the accuracy of the interpolant in the interior regions where the fitted function varies relatively rapidly [16].
Sarra and Sturgill introduced a random variable shape parameter strategy in interpolations and twodimensional linear elliptic boundary value problems as follows [19]: where is a Matlab function that returns matrix of pseudorandom values induced from a uniform distribution on the unit interval. They showed that the random variable shape parameter produces the most accurate results, if the centres are uniformly spaced.
Recently, some other strategies have been applied to generalized Multiquadric RBF, . In [20] trigonometric variable shape parameter and exponent are presented as follows:Another strategy for variable shape parameter has been introduced by Sanyasiraju and Satyanarayana [18]. They introduced a meshless scheme with a variable shape parameter for steady convectiondiffusion equation. They minimized an error function to generate a variable shape parameter for each centre node.
3. Selection of an Interval in Variable Shape Parameter
In addition to selecting a suitable strategy, there is another important problem in variable shape parameter approach: distribution of the values in an appropriate interval. In [20], by using the classical variable MQ as , an interval such as is introduced, where and (the shape parameter of classical form of the MQ is shown by ). is the total number of nodes in onedimensional approximations and is the node number of a row or a column in twodimensional approximations. Sarra and Sturgill emphasize the importance of the length of the interval, , they take , and they study the errors by trial and errors, while and vary in a meaningful range [19]. Kansa and Carlson [16] consider a set of shape parameters which minimizes an error function over some evaluation points. To find these values, the following objective function is minimized:where and are evaluation points to compute the RMS error. They used two approaches to find the optimal set for the shape parameters. In the first approach, a nonlinear system of normal equations is obtained by least square approach:In the second one, the sum of squares over the evaluation points is minimized. For more details refer to [16].
In [19, 20], it is seen that the proposed values for and are empirical. In Kansa’s approach a set of optimal shape parameters has been obtained, but the shortage of this approach is that the exact function is needed. Kansa stated that the purpose of his report was some empirical observations to developments in the theory of the variable shape parameters. Therefore his approach is not applicable in practice. In this paper, we apply a new algorithm to find a reliable interval for the shape parameters.
3.1. Proposed Algorithm
In this section the algorithm is introduced.
Suppose that approximates the function , over a domain . In Section 2, it was noted that the accuracy of depends on . For all valid values of , keeping fixed, the corresponding values of should be convergent to . Therefore If the curve is the plot of as a function of the shape parameter versus the shape parameter, then will be horizontal over an interval, say . This interval is a suitable range for the valid values of the shape parameter. According to this idea, the proposed algorithm to find an appropriate interval for the shape parameter can be summarized as follows.
Algorithm(1)Let .(2)For to .(3)Plot the curve of versus . Do evaluate the value of .(4)Select the subinterval , over which the curve is almost parallel to axis.The interval or a subset of this interval can be applied in the variable shape parameter strategies as . The approximate function is recomputed by using the proposed interval.
4. Numerical Examples
In this section to demonstrate the reliability and the efficiency of the algorithm in various types of variable shape parameter strategies, three examples, for interpolation in one and twodimensional spaces, are presented. Also two boundary value problems in twodimensional spaces are investigated. Through all the examples we use the uniform centre nodes. To validate the numerical accuracy, two error functions such as Max error and RMS error are calculated:where are some evaluation points.
In random variable shape parameter strategy, due to the nature of random selection, the results may be different. In all of the numerical results, to reduce this impact, the average error of ten time successive runs is provided, when the random variable shape parameter strategy is used.
4.1. One and TwoDimensional Interpolation
The test functions in onedimensional interpolation areFirst, the algorithm is applied to find an interval for each test function and then the approximate function is recomputed by using the variable shape parameter strategy in the proposed interval. To compare the results, the obtained accuracy is compared with the accuracy of approximate functions computed by using variable shape parameter in different intervals.
Figures 1(a), 1(b), and 1(c) show the curve of versus shape parameter in the interval for three different , using 60 centre nodes. The curve is almost parallel to axis, over the interval . The interval can be selected as , in variable shape parameter. By rerunning the “plot command” on subinterval , a more accurate interval is obtained by Figures 1(d), 1(e), and 1(f). By considering and , the error functions in interpolation of by constant, exponential, linear, and random shape parameter strategies are plotted in Figure 3(a). 40 evaluation points and 60 centre points are applied. In this figure, the impact of different distribution strategies is shown. To illustrate the influence of the interval , which is the aim of this study, the results of applying the proposed interval for two strategies (random and exponential) are shown in Figure 4.
(a)
(b)
(c)
(d)
(e)
(f)
The plots in Figure 4 show that the proposed interval obtained by the algorithm is reliable and accurate for variable shape parameter strategies. By selecting the shape parameters in the proposed range the accuracy significantly improved.
By visual inspection, in Figures 2(a), 2(b), and 2(c), as a function of the shape parameter has the same value in the interval . By rerunning the plots in , Figures 2(d), 2(e), and 2(f) demonstrate that the suitable interval can be selected as . Using the interval in variable shape parameter, the error functions obtained by constant, exponential, linear, and random shape parameter strategies are shown in Figure 3(b). To demonstrate the reliability of this interval, the error functions obtained by exponential and random variable shape parameter in the intervals , , , and are plotted in Figure 4. The errors demonstrate that using the proposed interval , obtained by the proposed algorithm, results in better accuracy.
(a)
(b)
(c)
(d)
(e)
(f)
(a)
(b)
(a)
(b)
(c)
(d)
It is noted that, for various test points , the optimum range may be a little different. The experimental results show that the proposed interval may not be the optimal one to approximate in the whole domain, but it is a valid interval. Therefore, in next examples, the results of only one test point are plotted.
In twodimensional interpolation consider the test functionin the rectangle . Using 144 centre points, the algorithm is applied for an arbitrary point . Figure 5(a) shows the curve obtained in step of the algorithm. The plot demonstrates that the appropriate interval can be chosen as . The error function of approximate function by using linear variable shape parameter in this interval is shown in Figure 6. Also some numerical results are summarized in Table 1.

(a)
(b)
(c)
(a)
(b)
4.2. Boundary Value Problems
To illustrate the accuracy and the efficiency of the algorithm, two linear boundary value problems are considered. First consider the following BVP:where and is the boundary of the domain. The exact solution is . Using 100 centre points, the algorithm is applied to approximate the solution of problem (24). The plot of , for a predetermined , versus shape parameter is shown in Figure 5(b). The curve determines the appropriate interval . The comparison of the error functions by applying this interval to various shape parameter strategies with those obtained by some other intervals is shown in Figure 7 and Table 1. Numerical results demonstrated that one can achieve good numerical results by choosing the interval determined by the algorithm.
(a)
(b)
The algorithm is also performed for the following problem:where and are specified such that the exact solution is Using 100 centre points and an arbitrary point , Figure 5(c) illustrates that the interval can be selected for applying in the variable shape parameter strategies. The absolute error of the approximate solution by applying this interval, which has been shown in Figure 8, indicates that the proposed interval significantly increases the accuracy of the results. The results of Table 1 illustrate the impact of applying a suitable interval in different variable shape parameter strategies.
(a)
(b)
5. Conclusion
In this paper, a new algorithm is suggested to determine an interval for variable shape parameter strategies. By distributing the values of the shape parameters in the proposed interval, it was shown that the new numerical results will be more accurate. To show the efficiency of the proposed interval for different strategies, some famous variable shape parameter strategies were investigated. The results demonstrate that in one and twodimensional interpolation problems and in twodimensional boundary value problems the algorithm works well.
Competing Interests
The authors declare that there is no conflict of interests regarding the publication of the paper.
References
 G. E. Fasshauer, Meshfree Approximation Methods with MATLAB, vol. 6, World Scientific, River Edge, NJ, USA, 2007.
 A. J. M. Ferreira, L. M. S. Castro, and S. Bertoluzza, “A high order collocation method for the static and vibration analysis of composite plates using a firstorder theory,” Composite Structures, vol. 89, no. 3, pp. 424–432, 2009. View at: Publisher Site  Google Scholar
 Q. Shen, “A meshless method of lines for the numerical solution of KdV equation using radial basis functions,” Engineering Analysis with Boundary Elements, vol. 33, no. 10, pp. 1171–1180, 2009. View at: Publisher Site  Google Scholar  Zentralblatt MATH  MathSciNet
 J. Lin, W. Chen, and K. Y. Sze, “A new radial basis function for Helmholtz problems,” Engineering Analysis with Boundary Elements, vol. 36, no. 12, pp. 1923–1930, 2012. View at: Publisher Site  Google Scholar  MathSciNet
 Z.J. Fu, W. Chen, and L. Ling, “Method of approximate particular solutions for constant and variableorder fractional diffusion models,” Engineering Analysis with Boundary Elements, vol. 57, pp. 37–46, 2015. View at: Publisher Site  Google Scholar  MathSciNet
 R. E. Carlson and T. A. Foley, “The parameter R2 in multiquadric interpolation,” Computers and Mathematics with Applications, vol. 21, no. 9, pp. 29–42, 1991. View at: Publisher Site  Google Scholar
 S. Rippa, “An algorithm for selecting a good value for the parameter c in radial basis function interpolation,” Advances in Computational Mathematics, vol. 11, no. 23, pp. 193–210, 1999. View at: Publisher Site  Google Scholar  MathSciNet
 V. Bayona, M. Moscoso, and M. Kindelan, “Optimal constant shape parameter for multiquadric based RBFFD method,” Journal of Computational Physics, vol. 230, no. 19, pp. 7384–7399, 2011. View at: Publisher Site  Google Scholar  MathSciNet
 A. H. D. Cheng, “Multiquadric and its shape parameter—a numerical investigation of error estimate, condition number, and roundoff error by arbitrary precision computation,” Engineering Analysis with Boundary Elements, vol. 36, no. 2, pp. 220–239, 2012. View at: Publisher Site  Google Scholar  MathSciNet
 G. E. Fasshauer and J. G. Zhang, “On choosing ‘optimal’ shape parameters for RBF approximation,” Numerical Algorithms, vol. 45, no. 1–4, pp. 345–368, 2007. View at: Publisher Site  Google Scholar  MathSciNet
 B. Fornberg and G. Wright, “Stable computation of multiquadric interpolants for all values of the shape parameter,” Computers & Mathematics with Applications, vol. 48, no. 56, pp. 853–867, 2004. View at: Publisher Site  Google Scholar
 C.S. Huang, C.F. Lee, and A. H.D. Cheng, “Error estimate, optimal shape factor, and high precision computation of multiquadric collocation method,” Engineering Analysis with Boundary Elements, vol. 31, no. 7, pp. 614–623, 2007. View at: Publisher Site  Google Scholar
 C. M. Roque and A. J. Ferreira, “Numerical experiments on optimal shape parameters for radial basis functions,” Numerical Methods for Partial Differential Equations, vol. 26, no. 3, pp. 675–689, 2010. View at: Publisher Site  Google Scholar  MathSciNet
 C. H. Tsai, J. Kolibal, and M. Li, “The golden section search algorithm for finding a good shape parameter for meshless collocation methods,” Engineering Analysis with Boundary Elements, vol. 34, no. 8, pp. 738–746, 2010. View at: Publisher Site  Google Scholar  Zentralblatt MATH  MathSciNet
 M. Uddin, “On the selection of a good value of shape parameter in solving timedependent partial differential equations using RBF approximation method,” Applied Mathematical Modelling, vol. 38, no. 1, pp. 135–144, 2014. View at: Publisher Site  Google Scholar  MathSciNet
 E. J. Kansa and R. E. Carlson, “Improved accuracy of multiquadric interpolation using variable shape parameters,” Computers & Mathematics with Applications, vol. 24, no. 12, pp. 99–120, 1992. View at: Publisher Site  Google Scholar
 B. Fornberg and J. Zuev, “The Runge phenomenon and spatially variable shape parameters in RBF interpolation,” Computers & Mathematics with Applications, vol. 54, no. 3, pp. 379–398, 2007. View at: Publisher Site  Google Scholar
 Y. Sanyasiraju and C. Satyanarayana, “Local HermiteRBF based gridfree scheme with a variable (optimal) shape parameter for steady convectiondiffusion equations,” International Journal of Numerical Analysis and Modeling, Series B, vol. 4, pp. 382–393, 2013. View at: Google Scholar
 S. A. Sarra and D. Sturgill, “A random variable shape parameter strategy for radial basis function approximation methods,” Engineering Analysis with Boundary Elements, vol. 33, no. 11, pp. 1239–1245, 2009. View at: Publisher Site  Google Scholar  MathSciNet
 S. Xiang, K.M. Wang, Y.T. Ai, Y.D. Sha, and H. Shi, “Trigonometric variable shape parameter and exponent strategy for generalized multiquadric radial basis function approximation,” Applied Mathematical Modelling, vol. 36, no. 5, pp. 1931–1938, 2012. View at: Publisher Site  Google Scholar  MathSciNet
 E. J. Kansa and Y. C. Hon, “Circumventing the Illconditioning problem with multiquadric radial basis functions: applications to elliptic partial differential equations,” Computers & Mathematics with Applications, vol. 39, no. 78, pp. 123–137, 2000. View at: Publisher Site  Google Scholar
Copyright
Copyright © 2016 Jafar Biazar and Mohammad Hosami. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.