Meshless Cubature Over The Disk by Thin-Plate Splines ?: Alessandro Punzi, Alvise Sommariva, Marco Vianello
Meshless Cubature Over The Disk by Thin-Plate Splines ?: Alessandro Punzi, Alvise Sommariva, Marco Vianello
Meshless Cubature Over The Disk by Thin-Plate Splines ?: Alessandro Punzi, Alvise Sommariva, Marco Vianello
by Thin-Plate Splines ?
it is easy to see that the cubature formula can be written in the usual form of
weighted sum of the function values,
n
−1 −1
X
I(s) = hA F, Ii = hA I, Fi = hW, Fi = hw, f i = wj fj , (7)
j=1
We give now an error estimate, which takes into account the presence of errors
in the evaluation of the integrals, Ĩ ≈ I, and of possible noise in the sample,
f̃ ≈ f ; the relevant parameters are the fill distance h, and the separation
distance q of the point set X (recall that q ≤ 2h). The cubature error can be
bounded as
In Table 1, we report the two key parameters related to stability of RBF cuba-
ture, for (inverse) Multiquadrics (MQ and IMQ), Gaussians (G), Wendland’s
compactly supported (W2) and Thin-Plate Splines (TPS). For simplicity, we
consider only unscaled RBF (δ = 1).
3
Table 1
RBF cubature with sets of n = 50 and n = 100 uniform random points in [0, 1] 2 :
spectral norm of the inverses of the collocation matrices and 1-norm of the com-
puted weights vectors (average values on 50 independent trials, rounded to the first
significant digit).
] of rnd pts norms MQ IM Q G W2 TPS
n = 50 kA −1
k2 2E+12 3E+11 5E+15 5E+03 6E+03
kw̃k1 7E+01 9E+01 3E+02 2E+00 1E+00
n = 100 kA−1 k2 2E+16 6E+15 3E+17 5E+04 8E+03
kw̃k1 8E+02 5E+02 1E+03 2E+00 1E+00
The situation seems hopeless concerning the use of smooth RBF like Gaussians
for numerical cubature, in view of the expected exponential magnification of
the integration errors. However, the numerical experiments in [8] have shown
that (9) is by far an overestimate. In any case, it turns out that smooth RBF
are much more sensible to integration errors, increase of data density and per-
turbations in the data, whereas TPS and W2 give reasonably accurate and
more stable cubature formulas. Moreover, the quality of cubature by TPS is
weakly sensitive to the scaling parameter, a phenomenon which can be related
to the well-known scale independence of the condition number of interpolation
by polyharmonic splines (cf. [5, §3.8]). Clearly, this property makes TPS cuba-
ture very attractive for automatic integration, since it avoids the complication
of managing/optimizing the scaling parameter.
In [8,9] it has been possible to integrate the basis functions by means of sym-
bolic computation (see [13]), obtaining closed-form formulas for the integrals
{I(φj )}. In fact, concerning integration of RBF over the square, one can re-
sort to radial symmetry (cf. [8]), and more generally integration of TPS over
polygons can be accomplished via Green’s formula, computing a first-level
primitive in one of the variables, and then a second-level primitive along each
side (cf. [9]). In the latter case, the success of the procedure is due to the
peculiarity of the TPS basis and to the fact that the parametrization of each
side is an affine mapping.
Concerning integration of TPS over the disk, the situation is more delicate.
We begin by recalling Green’s formula (cf. [4] and, e.g., [1]), specialized to the
case of the unit disk, i.e.
• Ω = D = {P = (x, y) : x2 + y 2 ≤ 1}
which is not restrictive, in view of the obvious “shift and scale” change of
variables which maps any disk into the unit disk (interpolation and cubature
4
by TPS are weakly sensitive to scaling, as already observed). Now, recall that
we are dealing with
Setting for j = 1, . . . , n
Z
ψj (P ) = φ(|P − Pj |) dx , (10)
where
1 2
ψj1 (P ) = − (x − xj )3 − (x − xj )(y − yj )2 ,
9 3
1
ψj2 (P ) = (x − xj )((x − xj )2 + 3(y − yj )2 ) log (x − xj )2 + (y − yj )2
6
!
2 x − x j
ψj3 (P ) = (y − yj )3 arctan . (13)
3 y − yj
Various choices are possible. In view of the periodicity, the simple trapezoidal
rule is appealing, but we have to take into account that both ψj2 and ψj3 have
low regularity. Indeed, ψj2 has a critical point at P = Pj , and ψj3 has a whole
critical line, y = yj . These generate one possible critical point for ψj2 on the
circle (when Pj is on or close to the circle), and two critical points for ψj3 on
the circle (the intersections with the critical line). Then we chose two different
parametrizations in such a way that the critical points are endpoints of the
parameter intervals, and quadrature formulas that automatically cluster nodes
at the endpoints, like Gauss-Legendre or Clenshaw-Curtis.
5
The one-dimensional integrals to be computed are
I Z θj +2π
ψj2 (P ) dy = ψj2 (cos θ, sin θ) cos θ dθ , θj = arg (Pj ) , (14)
∂D θj
0.8
0.6
0.4
0.2
−0.2
−0.4
−0.6
−0.8
0.5
0
−3 −2 −1 0 1 2 3
Fig. 1. The nonuniformity effect on a uniform random sample of 1000 points on the
unit disk by mapping in the polar rectangle [−π, π] × [0, 1].
6
coordinates, and thus one could simply work from the beginning in such co-
ordinates using the cubature method developed in [8]. In such a case, clearly,
the TPS would be themselves TPS in polar coordinates. However, if we start
for example from a random sample generated by the uniform probability dis-
tribution in cartesian coordinates, the mapping from the disk to the polar
rectangle causes a distortion (see Figure 1): the density of the mapped points
decreases approaching the center of the disk, and this deteriorates the quality
of the approximation. The effect of such nonuniformity will be manifest in the
numerical experiments of the next section (compare “TPS-Green polar” with
“TPS-Green cartesian”).
XZ XZ
= ext
ψj (P ) dy − ψj (P ) dy , (16)
k Γk s Γint
s
whose boundary consists of the two circular arcs |P | = ρi and of the two
segments arg(P ) = αi , i = 1, 2. Here, integration of ψj (P ) along the segments
is explicit, whereas Clenshaw-Curtis quadrature along each arc (the internal
clockwise and the external counterclockwise) is possibly split into two or three
subarcs, to manage as above the critical points.
4 Numerical tests.
7
show the behavior of the formulas on three test functions, (already used in [9]
concerning meshless cubature over polygons), dealing with samples of small
size (in the hundreds). Then, we show how to improve efficiency of TPS-Green
cubature on samples of larger size (in the thousands) by splitting the disk into
sectors or annuli. All the tests have been done in Matlab (cf. [6]), with an Intel-
Centrino Duo 2.3Ghz processor and 1Gb RAM. The corresponding Matlab
code can be found at [10]. Our implementation is truly meshless (no kind of
mesh is required or generated), and it needs only the parameters defining the
disk (or more generally the annular sector, i.e. the center, and the radial and
angular intervals) besides the scattered sample.
These and many other numerical tests (not reported for brevity) show that
8
Table 3
Relative errors of TPS-Green cubature in polar and cartesian coordinates and of
Monte Carlo cubature with n = 100, 200, 400, 800 uniform random points on the
unit disk.
function formula 100 pts 200 pts 400 pts 800 pts
f1 TPS-Green (polar) 3E-03 2E-03 2E-03 3E-04
TPS-Green (cart.) 1E-03 1E-04 1E-05 6E-06
Monte Carlo 4E-02 1E-02 2E-02 1E-03
f2 TPS-Green (polar) 2E-02 1E-02 1E-02 6E-03
TPS-Green (cart.) 3E-02 2E-02 2E-03 6E-04
Monte Carlo 3E-01 1E-01 4E-02 4E-03
f3 TPS-Green (polar) 3E-02 1E-02 1E-02 6E-03
TPS-Green (cart.) 5E-04 4E-04 7E-05 8E-06
Monte Carlo 1E-01 4E-02 2E-02 1E-02
9
Table 4
Relative errors and CPU times (seconds): TPS-Green cubature of f (x, y) =
exp (5(x2 + y 2 )) by 3000 uniform random points on the unit disk, directly and by
subdividing into 16 equal area annuli.
subdivisions error CPU weights CPU basis cub CPU tot speed-up
none 5E-4 17.3 1.1 18.4
16 1E-4 0.3 1.8 2.1 8.8
References
[1] T.M. Apostol, Calculus, vol. II, 2nd edition, Blaisdell, 1969.
[6] The MathWorks, MATLAB Documentation Set, 2006 version (available online
at http://www.mathworks.com).
[7] R. Schaback, Error estimates and condition numbers for radial basis function
interpolation, Adv. Comput. Math. 3 (1995), 251–264.
[12] L.N. Trefethen, Is Gauss quadrature better than Clenshaw-Curtis? , SIAM Rev.,
to appear.
10
[14] H. Wendland, Scattered Data Approximation, Cambridge Monographs on
Applied and Computational Mathematics, vol. 17, Cambridge University Press,
2005.
[15] Wolfram Research, Inc., The Wolfram Integrator , 2006 version (available online
at http://integrals.wolfram.com).
11