1. Introduction
Let
f be a
d-variate real valued function defined on the bounded domain
. There is an extensive research in the literature to iterpolate/approximate such a function
f over an equally spaced grid of points using radial basis functions (RBF) with a high degree of accuracy [
1,
2]. As [
1] argued that radial basis functions overcome the problems of using high dimensional polynomials to attain the specified degree of smoothness for the interpolants, they became very popular among the applied scientists for use in applied problems [
3,
4,
5,
6].
Suppose, the data on the function values.
, are available for a set of points
,
. Then a radial basis function (RBF) interpolant can be defied as follows
where
is the Euclidean distance between the point
x and the grid point
with
and
are the constants which are determined from the constraints
One of the most popular choice for the radial basis function is the Gaussian kernel for
, that is,
where
h is a scale parameter which determines the degree of smoothness in the interpolant. The convergence properties of the RBF interpolation with the Gaussian kernel depend on the distances between the grid points
and the parameter
h for the kernel.
Users find it very attractive due to its simplicity in definition and high-degree of accuracy. However, to obtain the constants
, one needs to solve a system of
N linear equations and quite often the system is ill-conditioned, resulting in unstable solutions. The ill-conditioning of the system of equations with the Gaussian kernel depends on the shape parameter
h as define above. Though there are a number of modifications proposed in the literature to overcome the ill-conditioning of the systems [
7,
8], all such proposals are computationally complex and that restricts their use only on a equally spaced grid for functions defined on lower-dimensional domains.
One particular and powerful tool for tackling multidimensional problems is quasi-interpolation [
9,
10], which avoids solving a large system of ill-conditioned linear equations and is very popularly used in science and engineering. A major advantage of quasi-interpolation is that the interpolant retains the smoothness of the kernel function being used. The quasi-interpolation with Gaussian kernels has simplicity in its definition and has good shape properties (convex, concave, or linear depending on the original function). The interpolant also retains the property of exponential decay at infinity of the Gaussian kernel. As quasi-interpolation provides direct solutions without any need to solve large algebraic systems of equations [
11], when compared to other mesh-free techniques such as RBF interpolation, this approach can approximate the function in less computational time in higher dimensions. Quasi-interpolation has been successfully applied to scattered data approximation and interpolation, numerical solutions to partial differential equations, and quadrature.
Maz’ya and Schmidt [
12] discussed the convergence rates of some of the quasi-interpolation methods commonly in use. Even though quasi-interpolation operators have generally used functions defined on
, there are some applications that require functions to be defined on a compact interval to allow efficient approximation, such as boundary integral equations and treatment of partial differential equations. Müller and Varnhorn [
13] applied the quasi interpolation method to functions with Hölder continuous derivatives and established convergence rates for the quasi-interpolants. In contrast to functions defined on all real numbers,
, a truncation error has to be controlled for the functions, which are defined on a compact subset. This article starts with an explanation of why Chebyshev grids exist and provides numerical study. Followed by the derivation of boundary corrections to describe how to derive them with rigorous theoretical justification and apply boundary corrections. Then, the numerical experiments section provides extensive qualitative and quantitative evidence of the benefits provided by the boundary corrections, including computations and error estimation. In the last section, it concluded with a summary of this article. The novelty of our study lies in the introduction of a pioneering quasi-interpolation modification technique, aimed at improving convergence behaviour and reducing boundary errors.
2. Quasi-Interpolation with Gaussian Kernels
The main motivation for the quasi-interpolation is as follows. Consider the convolution of the univariate function
f with the Gaussian kernel
,
where
is the probability density function (p.d.f.) of the standard Gaussian distribution with mean 0 and standard deviation 1. Cheney [
14] showed that the convolution
converges to
f as
, with the convergence being uniform on compact sets [
14]. The rate of convergence depends upon the smoothness of the function
f. Now, the convolution operator can be approximated by its discrete counter-part:
Due to this representation of the convolution operator, one can establish the convergence properties of the quasi-interpolant
on a compact subset of
with equally spaced points on
. For practical purposes, one can consider without loss of generality the compact set
as the support for the function
f, where one wishes to study the interpolation. Also note that,
is defined on an infinite grid. For practical implementation, we define
where
are equally spaced points in the interval
and
. As the number of points
, the distance between the points
and convergence results hold. However, it is easy to observe that the discrete convolution operator
only approximates the integral
If the function f is defined beyond the in the interval , the approximation by this quasi-interpolation is not good around the boundary of and 1.
In this article, we will study the error due to this truncation at the boundary and will present numerical examples. In
Section 2, we will present the some mathemetical approach to correct the approximation near the boundary. We will also study the performance of our boundary correction for some numerical examples.
Chebyshev Points
The points
for
are called Chebyshev points. They are the roots of the degree
N Chebyshev polynomial defined by
for
. The Chebyshev polynomials satisfy the recursion formula
,
, …,
, for
, and thus the leading coefficient of
is
. Moreover, observe that
for
. Thus, if
are Chebyshev points, then
for
.
Using this argument, Ref. [
15] showed that a polynomial approximation to a real-valued continuous function
f defined on
can have a convergence rate at the order of
if the approximation is evaluated at the Chebyshev points which is a lot better than the convergence rates
achieved by the equally spaced points.
The faster convergence rates with polynomial interpolation evaluated at the Chebyshev points is our main motivation for using Chebyshev points in the quasi interpolation problems under consideration. In this research paper, we will investigate the Chebyshev points as an alternative to the equally spaced grid points to evaluate the performance and convergence results numerically of our proposed quasi-interpolation algorithm with Gaussian kernel and boundary corrections. The modified quasi-interpolation with Chebyshev points can be formulated as
where
are the Chebyshev points in the interval
.
In the absence of established theoretical results on the convergence rates for the quasi-interpolation with Gaussian kernels evaluated at the Chebyshev points, we will study numerically with different examples.
3. Boundary Corrections Formula
We have mentioned earlier that the convolution operator
converges to
as
in the Gaussian kernel. However, the discrete quasi interpolant
approximates the integral
as
. We can now write the convolution as:
where
and
We have noted that approximates the integral . If x is much closer to the boundary, the integrand in will be small and may be negligible. Similarly, if x is far away from the boundary, the integrand in will be small and might be negligible. Therefore, if the point of interpolation x is well within the interval , both the integrals and will negligible and the approximation of using the quasi-interpolant will be a good approximation of the convolution and in turn that will converge to as and . However, if the point of interpolation x is close to the boundary of or 1, the integrals and are not negligible.
To improve the approximation of
, when
x is close to the boundary, we need to have some approximation to the integrals
and
. as we do not know the form of
outside the interval
, we approximate it with two linear functions which are continuous and differentiable at
and
. Let us assume,
From continuity, we must have
and
Using these approximations, one write
as
We also simplify,
where
is the distribution function of the standard Gaussian distribution
Therefore, with the linear approximation of the function
, the integral
can be approximated by
Similarly, the integral
can be approximated by
Combining all of them together, we propose the quasi-interpolation function with boundary corrections as follows:
Now, note that as , and for all . For , and for , as . Therefore, the convergence of the quasi-interpolation function at and needs to be investigated in more detail and it may be possible that this interpolation may not converge at these two points.
4. Numerical Experiments
In this section, we investigate the performance of our proposed quasi-interpolation with boundary corrections,
with equally spaced grid poits as well as Chebyshev points. For this purpose, we consider the following 4 test functions, which are widely used in the literature [
6,
16,
17]:
.
.
.
.
The performance of quasi-interpolation with and without boundary corrections were evaluated in a grid of 100 points in the interval
. As the metric for performance, we compute maximum absolute error and the root mean-square error as defined below:
where
and
’s are the grid points at which the function is approximated.
In
Figure 1, we illustrate the approximation using
equally spaced grid points. Observe that the error of the interpolated function is considerably large at the boundary points of the interval
, while the errors for interiors points are small when no boundary corrections were used. On the other hand, the errors are very similar for all points, when the boundary corrections are used.
Similar to the equally-spaced grid points for interpolations, the results for interpolation with Chebyshev points are shown in
Figure 2 for the function
. We again observe that the error are higher at the boundaries
and
when there are no boundary corrections and the errors reduce with the boundary corrections.
In
Table 1, we present the absolute maximum error and RMS error for the quasi-interpolation of the function
with and without boundary corrections. We observe that the interpolation results converge nicely as
N increases for both equally spaced points and Chebyshev points. The errors for the interpolation with boundary corrections are always smaller than those without the boundary corrections for higher values of
N.
The approximations to the function
with
equally spaced grid points are presented in
Figure 3. We observe that when there is no boundary correction, the quasi-interpolation approximates the function well for points which are smaller than 0.9. However, the approximation is poor at the edges. But when the boundary corrections are used, the quasi-interpolation picked up the correct shape of the even at the edges, though the approximation is not very good with
points only. The errors are also increasing nearer the upper boundary of the interval
even with boundary corrections.
Similar approximations to
with
Chebyshev points are made in
Figure 4. We observe almost a similar pattern with the errors as observed for the case with equally spaced points.
Detailed performance metrics for varying values of grid points
n are presented in
Table 2 for the function
. We observe that the approximations do not converge so well for the equally spaced points with or without corrections. However, the errors become smaller with the increase in
N for Chebyshev points. In this example, the performance of the Chebyshev points are better than the equally spaced points. In both cases, the error with boundary corrections are small that the interpolation without boundary corrections.
For
equally spaced points, the quasi-interpolation approximations evaluated at 100 points in the interval
are presented in
Figure 5 with and without boundary corrections for the function
. Observe that the function
is almost 0 at all points except for a spike at
. As the function is nearly 0 at boundary, the approximations with or without corrections do not differ much. For
points only, the peak at
is missed but it still approximates with a smooth peak at that point instead of a sharp peak.
Figure 6 shows the approximation to the function with
Chebyshev points. Similarly, it also misses out the peak at
. This approximation is almost constant at all points in
. With Chebyshev points also, we do not see any substantial difference in quasi-interpolation approximation with or without boundary corrections.
From
Table 3, we observe that the convergence of the quasi-interpolation approximations with equally spaced points is slower with very small errors are attained only for large values of
N. the performance of the Chebyshev points is even worse than equally spaced points for small
N. However, Chebyshev points also yield similar small errors for very large values of
N.
Finally,
Figure 7 shows the quasi-interpolation approximations for the function
with
equally spaced points for interpolation. We observe that the approximations are not too bad for the points
x away from the left boundary
. However, at the points closed to the boundary
, the errors in approximation are large, with boundary corrections, the errors reduce a little but still there are large error near the boundary.
The quasi-interpolation approximations of
using
Chebyshev points are shown in
Figure 8. It also shows a similar pattern as with equally spaced points. the boundary correction did not produce any significant improvement for this problem.
The detailed errors reported in
Table 4 shows that the interpolation without boundary corrections did not improve much even with large number of grid points
N with equally space points. We have a slightly better approximation with boundary corrections for equally space points. However, the real improvement with boundary corrections is noticeable with Chebyshev points. In this case, we have a very good convergence rate with boundary corrections and poor performance when we do not use a boundary correction. The calculations detailed in the article were performed using MATLAB 2021b within a Windows 10 environment, leveraging the processing power of an Intel i7 8th generation core.
The execution times in seconds for the proposed quasi-interpolations algorithms with and without boundary corrections are given in
Table 5. All time are reported for interpolation on a grid of 100 points in the interval
. We observe that the execution times are quite small even when the number of points used in the interpolation
N is as high as 10,000. The execution times for the quasi-interpolation with boundary corrections are higher than those without boundary corrections, but the time required for interpolation with equally spaced points are almost similar with the time required for interpolation with the Chebyshev points.
5. Discussion and Funding
In this article, we have proposed a quasi-interpolation method with Gaussian kernels using Chebyshev points and boundary corrections. We noted that the usual quasi-interpolation approximates the function quite well for the points well within the compact interval of estimation, However, they do not approximate well when the interpolation points are close to the boundary. As a remedial measure, we have considered linear approximations of the function f beyond our close interval , which is continuous and differentiable at the boundary points of and . Using that linear shape of the function f, we propose some corrections terms go to 0 if the point x is well within the interval and . Therefore, the approximation with or without boundary corrections should work similarly for points within the interval . However, the boundary corrections contribute significantly, if x is close to the boundary or 1 and the function f is not close to 0 at those points.
In our numerical studies, we have shown that for all functions, the Chebyshev points for interpolation produce reasonable convergence results with or without boundary corrections. The function is a periodic function with equal periods and amplitudes. In this example, the boundary corrections with Chebyshev points provides a little improvement over the interpolation without corrections, but the performance for equally spaced points are better than the Chebyshev points.
For the exponentially increasing function , the approximations are not too bad near the lower boundary of as the value of nears 0 at that boundary, but as the function increases steeply at the upper boundary , the quasi interpolation without boundary correction completely misses the increasing pattern near the boundary and starts decreasing with small values of N. With boundary corrections, that problem at is no longer there and also the approximation at the lower end point is even better. For smaller values of N, equally spaced points provide a better approximation than the Chebyshev points, but with large values of N Chebyshev points with boundary corrections provide the the best approximations. Thus, for such functions, Chebyshev points has a better convergence rate.
The function is constant for most part of the interval with a sudden peak at . Since this function is almost zero near the point , and 1. The boundary corrections do not have any significant effect on the approximation. With small values of N, the interpolation points missed out the peak and had a very poor approximation. However, as N increases substantially to 10,000, both equally spaced points and Chebyshev points based interpolation performs similarly.
Our last function has oscillatory behaviour with exponential damping. the magnitude of the function is maximum at the lower end point and it oscillates with a very small amplitude at the upper boundary of . For this behaviour, the maximum errors in approximations are observed near the lower boundary. In this example, there is almost no convergence or very slow convergence when there are no boundary corrections. With boundary corrections and Chebyshev points we observe a dramatic improvement in approximation.
Finally, we observed from our numerical studies that boundary corrections only play a significant role when the function f is away from 0 near the boundary. In this study, we have approximated the function f beyond the compact interval of using linear functions. However, the approximation may not perform well if the function is very different from linear around the boundary. To improve one can derive similar boundary correction terms for quadratic or polynomial approximations. Another problem to note that our approximation uses the same direction of the function at the boundary, that is, if it is increasing at , it remain increasing linearly at that point and if that is decreasing, it is decreasing at that point. Due to the nature of approximation, it does not matter if the function changes the direction at a point far way from the boundary. But if the the boundary or are the stationary points or points of inflection, then boundary corrections may bring in more errors in approximations.
In this study, we have applied quasi-interpolation with boundary corrections only for univariate functions, however, one can extend the boundary corrections to higher dimensions as well though that will require some mathematically intensive derivation of the integrals at the boundaries and there is no easy simplifications. As a future extension of this study, one can explore that.
6. Conclusions
This paper presented a quasi-interpolation method using Gaussian kernels with Chebyshev points and boundary corrections to improve approximation accuracy near the boundaries for functions defined on compact intervals.
The proposed boundary corrections estimate the truncation error at the boundaries by approximating the function’s continuation beyond the interval using linear functions. This allows adding correction terms to the standard quasi-interpolation formula.
Numerical studies on test functions showed that the boundary corrections significantly reduced errors near the boundaries compared to quasi-interpolation without corrections. The convergence and accuracy with the corrections were generally better using Chebyshev points instead of equally spaced points.
The results demonstrate that the proposed approach provides an efficient and accurate way to perform quasi-interpolation for functions on compact intervals. It overcomes the issue of large boundary errors in standard quasi-interpolation.
The application of quasi-interpolation holds significant promise across a spectrum of disciplines. In physics, it can facilitate accurate modelling in the simulation of particle interactions, fluid dynamics, and electromagnetic fields. In mechanics, quasi-interpolation techniques can enhance finite element analysis by providing more precise representations of structural behaviour under varying loads and boundary conditions.
7. Recommendation for Future Research
Studying theoretical convergence rates with the proposed boundary corrections Extending the boundary corrections approach to higher dimensions Using polynomial or spline approximations beyond boundaries instead of linear Applying the method to solve PDEs and integral equations on compact domains Overall, this work enhances quasi-interpolation with Gaussian kernels for problems requiring function approximation on compact intervals with high accuracy near the boundaries. The proposed corrections provide a computationally simple way to improve boundary performance. It is imperative to acknowledge the nature of the comparison between the accuracy of Chebyshev points and equally spaced points, as highlighted in
Table 1 and
Table 3. Our study has shown that Chebyshev points generally yield superior accuracy, particularly for certain functions and smaller values of N, we recognize that the performance may vary depending on the specific characteristics of the functions and the magnitude of N. This understanding underscores the importance of further research to explore the factors influencing the performance of different grid point distributions, ultimately guiding the selection of the most suitable approach for specific applications.