Meshfree Approximation Methods With MATLAB
Meshfree Approximation Methods With MATLAB
e o
587?
I
S
Meshfree Approximation
Methods with MATLAB
1
INTERDISCIPLINARY MATHEMATICAL SCIENCES
Published
V o l . 1: G l o b a l A t t r a c t o r s o f N o n a u t o n o m o u s D i s s i p a t i v e D y n a m i c a l Systems
David N. Cheban
V o l . 2: Stochastic D i f f e r e n t i a l E q u a t i o n s : T h e o r y a n d Applications
A V o l u m e i n H o n o r o f Professor B o r i s L . R o z o v s k i i
eds. Peter H. Baxendale & Sergey V. Lototsky
V o l . 3: A m p l i t u d e E q u a t i o n s f o r Stochastic P a r t i a l D i f f e r e n t i a l E q u a t i o n s
Dirk Blomker
V o l . 5: T h e H i l b e r t - H u a n g T r a n s f o r m and Its A p p l i c a t i o n s
Norden E. Huang & Samuel S. P. Shen
G r e g o r y E . F a s s h a u e r r _ s
W r i f l r l ^ H o n t i f i n
. lb. /
Published by
W o r l d
fif-?, Y~ Scientific Publishing Co. Pte. Ltd.
5 Toh Tuck Link, Singapore 596224
U S A c e : 2 7 W a r r e n
/ t>&^~ ^ Street, Suite 401-402, Hackensack, NJ 07601
/] UK office: 57 Shelton Street, Covent Garden, London W C 2 H 9 H E
M E S H F R E E APPROXIMATION M E T H O D S W I T H MATLAB
(With CD-ROM)
Interdisciplinary Mathematical Sciences Vol. 6
All rights reserved. This book, or parts thereof, may not be reproduced in any form or by any means, electronic or
mechanical, including photocopying, recording or any information storage and retrieval system now known or to
be invented, without written permission from the Publisher.
For photocopying of material in this volume, please pay a copying fee through the Copyright Clearance Center,
Inc., 222 Rosewood Drive, Danvers, M A 01923, U S A . In this case permission to photocopy is not required from
the publisher.
ISBN-13 978-981-270-633-1
ISBN-10 981-270-633-X
ISBN-13 978-981-270-634-8 (pbk)
ISBN-10 981-270-634-8 (pbk)
vii
viii Meshfree Approximation Methods with M A T L A B
as M A T L A B ? H O W d o t h e y c o m p a r e w i t h t r a d i t i o n a l m e t h o d s ? H o w d o t h e v a r i o u s
flavors o f meshfree m e t h o d s differ f r o m one a n o t h e r , a n d h o w are t h e y s i m i l a r t o one
a n o t h e r ? Is t h e r e a g e n e r a l f r a m e w o r k t h a t c a p t u r e s a l l o f these m e t h o d s ? What
s o r t o f a p p l i c a t i o n s are t h e y e s p e c i a l l y w e l l s u i t e d for?
W h i l e w e d o p r e s e n t m u c h o f t h e u n d e r l y i n g t h e o r y for R B F a n d M L S ap-
proximation methods, t h e e m p h a s i s i n t h i s b o o k is n o t o n p r o o f s . For read-
ers w h o are interested i n all the mathematical details and intricacies of the
t h e o r y we r e c o m m e n d t h e t w o e x c e l l e n t recent monographs [ B u h m a n n (2003);
W e n d l a n d (2005a)]. I n s t e a d , o u r o b j e c t i v e is t o m a k e t h e t h e o r y accessible t o a
w i d e a u d i e n c e t h a t i n c l u d e s g r a d u a t e s t u d e n t s a n d p r a c t i t i o n e r s i n a l l s o r t s o f sci-
ence a n d e n g i n e e r i n g fields. W e w a n t t o p u t t h e m a t h e m a t i c a l t h e o r y i n t h e c o n t e x t
o f a p p l i c a t i o n s a n d p r o v i d e M A T L A B i m p l e m e n t a t i o n s w h i c h g i v e t h e r e a d e r a n easy
e n t r y i n t o meshfree a p p r o x i m a t i o n m e t h o d s . T h e s k i l l e d r e a d e r s h o u l d t h e n easily
be able t o m o d i f y t h e p r o g r a m s p r o v i d e d here for h i s / h e r specific p u r p o s e s .
I n a c e r t a i n sense t h e present b o o k was i n s p i r e d b y t h e b e a u t i f u l l i t t l e b o o k [ T r e -
f e t h e n ( 2 0 0 0 ) ] . W h i l e t h e present b o o k is m u c h m o r e e x p a n s i v e ( f i l l i n g m o r e t h a n
1 2
five h u n d r e d pages w i t h f o r t y - s e v e n M A T L A B p r o g r a m s , one M a p l e p r o g r a m , one
h u n d r e d figures, m o r e t h a n f i f t y t a b l e s , a n d m o r e t h a n five h u n d r e d references), i t is
o u r a i m t o p r o v i d e t h e reader w i t h r e l a t i v e l y s i m p l e M A T L A B c o d e t h a t i l l u s t r a t e s
j u s t a b o u t e v e r y aspect discussed i n t h e b o o k .
A l l M A T L A B p r o g r a m s p r i n t e d i n t h e t e x t (as w e l l as a few m o d i f i c a t i o n s dis-
cussed) are also i n c l u d e d o n t h e enclosed C D . T h e f o l d e r MATLAB c o n t a i n s M - f i l e s
a n d d a t a files o f t y p e M A T t h a t h a v e b e e n w r i t t e n a n d t e s t e d w i t h M A T L A B 7. F o r
t h o s e readers w h o d o n o t have access t o M A T L A B 7, t h e folder MATLAB6 c o n t a i n s
versions o f these files t h a t are c o m p a t i b l e w i t h t h e o l d e r M A T L A B release. The
m a i n difference b e t w e e n t h e t w o v e r s i o n s is t h e use o f a n o n y m o u s f u n c t i o n s i n t h e
M A T L A B 7 code as c o m p a r e d t o i n l i n e f u n c t i o n s i n t h e M A T L A B 6 v e r s i o n . T w o
packages f r o m t h e M A T L A B C e n t r a l F i l e E x c h a n g e [ M C F E ] are used t h r o u g h o u t t h e
b o o k : t h e f u n c t i o n h a l t o n s e q w r i t t e n b y D a n i e l D o u g h e r t y a n d used t o g e n e r a t e
sequences o f H a l t o n p o i n t s ; t h e /cd-tree l i b r a r y ( g i v e n as a set o f M A T L A B M E X - f i l e s )
w r i t t e n b y G u y Shechter a n d used t o g e n e r a t e t h e kd-tvee data structure underlying
o u r sparse m a t r i c e s based o n c o m p a c t l y s u p p o r t e d basis f u n c t i o n s . B o t h o f these
packages are discussed i n A p p e n d i x A a n d need t o be d o w n l o a d e d separately. The
folder M a p l e o n t h e C D c o n t a i n s t h e one M a p l e file m e n t i o n e d a b o v e .
T h e m a n u s c r i p t for t h i s b o o k a n d some o f i t s e a r l i e r i n c a r n a t i o n s h a v e b e e n
used i n g r a d u a t e l e v e l courses a n d s e m i n a r s a t N o r t h w e s t e r n U n i v e r s i t y , V a n d e r b i l t
U n i v e r s i t y , a n d t h e I l l i n o i s I n s t i t u t e o f T e c h n o l o g y . S p e c i a l t h a n k s are d u e t o J o n
1
M A T L A B is a trademark of T h e MathWorks, Inc. and is used with permission. T h e Math-
Works does not warrant the accuracy of the text or exercises in this book. T h i s book's use or
discussion of M A T L A B software or related products does not constitute endorsement or sponsor-
ship by T h e MathWorks of a particular pedagogical approach or particular use of the M A T L A B
software.
2
M a p l e is a registered trademark of Waterloo Maple Inc.
Preface ix
C h e r r i e , J o h n E r i c k s o n , P a r i t o s h M o k h a s i , L a r r y S c h u m a k e r , a n d J a c k Z h a n g for
reading various p o r t i o n s of t h e m a n u s c r i p t a n d / o r M A T L A B code a n d p r o v i d i n g
h e l p f u l feedback. F i n a l l y , t h a n k s are d u e t o a l l t h e p e o p l e a t W o r l d Scientific
P u b l i s h i n g C o . w h o h e l p e d m a k e t h i s p r o j e c t a success: R a j e s h B a b u , Y i n g O i
Chiew, L i n d a K w a n , R o k T i n g Tan, and Yubing Zhai.
Greg Fasshauer
Chicago, I L , J a n u a r y 2007
Contents
Preface vii
1. Introduction 1
s
1.1 M o t i v a t i o n : Scattered D a t a I n t e r p o l a t i o n i n K 2
1.1.1 The Scattered D a t a I n t e r p o l a t i o n P r o b l e m 2
1.1.2 Example: I n t e r p o l a t i o n w i t h Distance Matrices 4
1.2 Some H i s t o r i c a l R e m a r k s 13
2. R a d i a l Basis F u n c t i o n I n t e r p o l a t i o n i n M A T L A B 17
2.1 R a d i a l (Basis) F u n c t i o n s 17
2.2 R a d i a l Basis F u n c t i o n I n t e r p o l a t i o n 19
4.1 E x a m p l e 1: G a u s s i a n s 37
4.2 E x a m p l e 2: L a g u e r r e - G a u s s i a n s 38
4.3 E x a m p l e 3: P o i s s o n R a d i a l F u n c t i o n s 39
4.4 E x a m p l e 4: M a t e r n F u n c t i o n s 41
4.5 E x a m p l e 5: G e n e r a l i z e d Inverse M u l t i q u a d r i c s 41
4.6 E x a m p l e 6: T r u n c a t e d P o w e r F u n c t i o n s 42
4.7 E x a m p l e 7: P o t e n t i a l s a n d W h i t t a k e r R a d i a l F u n c t i o n s 43
4.8 E x a m p l e 8: I n t e g r a t i o n A g a i n s t S t r i c t l y P o s i t i v e
Definite Kernels 45
xi
xii Meshfree Approximation Methods with MATLAB
4.9 Summary 45
6. Scattered D a t a I n t e r p o l a t i o n w i t h P o l y n o m i a l Precision 53
8.1 E x a m p l e 1: G e n e r a l i z e d M u l t i q u a d r i c s 67
8.2 E x a m p l e 2: R a d i a l P o w e r s 69
8.3 E x a m p l e 3: T h i n P l a t e Splines 70
10.1 C o n d i t i o n a l l y P o s i t i v e D e f i n i t e F u n c t i o n s a n d p-Norms 79
10.2 Scattered D a t a F i t t i n g o n Manifolds 83
10.3 Remarks 83
11. C o m p a c t l y S u p p o r t e d R a d i a l Basis F u n c t i o n s 85
11.1 O p e r a t o r s for R a d i a l F u n c t i o n s a n d D i m e n s i o n W a l k s 85
11.2 Wendland's Compactly Supported Functions 87
Contents xiii
12.1 A s s e m b l y o f t h e Sparse I n t e r p o l a t i o n M a t r i x 95
12.2 Numerical Experiments w i t h CSRBFs 99
17.1.2 T h e P o w e r F u n c t i o n as I n d i c a t o r for a G o o d S h a p e
Parameter 142
17.1.3 Choosing a G o o d Shape P a r a m e t e r v i a Cross V a l i d a t i o n . 1 4 6
17.1.4 The Contour-Pade A l g o r i t h m 151
17.1.5 Summary 152
17.2 Non-stationary Interpolation 153
17.3 Stationary Interpolation 155
B. l Some I m p o r t a n t C o n c e p t s f r o m M e a s u r e T h e o r y 431
B.2 A Brief S u m m a r y of Integral Transforms 432
xviii Meshfree Approximation Methods with MATLAB
B. 3 T h e S c h w a r t z Space a n d t h e G e n e r a l i z e d F o u r i e r T r a n s f o r m . . . 433
C. l M A T L A B Programs 435
C. 2 Maple Programs 440
Bibliography 451
Index 491
Chapter 1
Introduction
l
2 Meshfree Approximation Methods with MATLAB
Since m a n y o f these a p p l i c a t i o n s e i t h e r c o m e d o w n t o a f u n c t i o n a p p r o x i m a t i o n
p r o b l e m , o r i n c l u d e f u n c t i o n a p p r o x i m a t i o n as a f u n d a m e n t a l c o m p o n e n t , we w i l l
b e g i n o u r discussion w i t h a n d i n fact base a l a r g e p a r t o f t h e c o n t e n t s o f t h i s
book on the multivariate scattered data i n t e r p o l a t i o n problem.
s
1.1 Motivation: Scattered Data Interpolation in M
i . .ft
1. Introduction 3
T h e o r e m 1.1 ( M a i r h u b e r - C u r t i s ) . If Q, C R, s
s > 2 , contains an interior
point, then there exist no Haar spaces of continuous functions except for one-
dimensional ones.
4 Meshfree Approximation Methods with MATLAB
I n o r d e r t o u n d e r s t a n d t h i s t h e o r e m w e need
N o t e t h a t existence o f a H a a r space g u a r a n t e e s i n v e r t i b i l i t y o f t h e i n t e r p o l a t i o n
m a t r i x A, i.e., existence a n d uniqueness o f a n i n t e r p o l a n t o f t h e f o r m (1.1) t o
d a t a specified a t XI,...,XN f r o m t h e space B. A s m e n t i o n e d above, u n i v a r i a t e
p o l y n o m i a l s o f degree N 1 f o r m a n A ^ - d i m e n s i o n a l H a a r space for d a t a g i v e n a t
X i , . . . , X N .
T h e M a i r h u b e r - C u r t i s t h e o r e m t e l l s us t h a t i f w e w a n t t o have a w e l l - p o s e d
m u l t i v a r i a t e scattered d a t a i n t e r p o l a t i o n p r o b l e m we can no longer fix i n advance
t h e set o f basis f u n c t i o n s w e p l a n t o use for i n t e r p o l a t i o n o f a r b i t r a r y s c a t t e r e d d a t a .
For e x a m p l e , i t is n o t possible t o p e r f o r m u n i q u e i n t e r p o l a t i o n w i t h ( m u l t i v a r i a t e )
2
p o l y n o m i a l s o f degree N t o d a t a g i v e n a t a r b i t r a r y l o c a t i o n s i n M . Instead, the
basis s h o u l d d e p e n d o n t h e d a t a l o c a t i o n s . W e w i l l g i v e a s i m p l e e x a m p l e o f s u c h
a n i n t e r p o l a t i o n scheme i n t h e n e x t s u b s e c t i o n .
f (x)
a
s
= 4 ]^[a:d(l - x d ) , X = ( X ! , . . . , x a ) e [o, i ] .s
d=l
1. Introduction 5
S
T h i s f u n c t i o n is zero o n t h e b o u n d a r y o f t h e u n i t c u b e i n R a n d has a m a x i m u m
v a l u e o f one at t h e center o f t h e c u b e . A s i m p l e M A T L A B s c r i p t d e f i n i n g f s is g i v e n
as P r o g r a m C . l i n A p p e n d i x C .
We w i l l use a set o f u n i f o r m l y s c a t t e r e d d a t a sites i n t h e u n i t c u b e a t w h i c h
w e sample o u r t e s t f u n c t i o n f . T h i s w i l l be a c c o m p l i s h e d here ( a n d i n m a n y o t h e r
s
2
Fig. 1.1 289 Halton points in the unit square in R .
A s e x p l a i n e d i n t h e p r e v i o u s s u b s e c t i o n we are i n t e r e s t e d i n c o n s t r u c t i n g a ( c o n -
t i n u o u s ) f u n c t i o n Vf t h a t interpolates t h e samples o b t a i n e d f r o m f s a t t h e set o f
H a l t o n p o i n t s , i.e., s u c h t h a t
Vf(xj) f (xj),
s Xj a Halton point.
A s p o i n t e d o u t above, i f s = 1, t h e n t h i s p r o b l e m is o f t e n s o l v e d u s i n g u n i v a r i a t e
p o l y n o m i a l s or splines. F o r a s m a l l n u m b e r o f d a t a sites p o l y n o m i a l s m a y w o r k
s a t i s f a c t o r i l y . H o w e v e r , i f t h e n u m b e r o f p o i n t s increases, i.e., t h e p o l y n o m i a l degree
g r o w s , t h e n i t is w e l l k n o w n t h a t one s h o u l d use splines ( o r piecewise p o l y n o m i a l s )
t o a v o i d o s c i l l a t i o n s . T h e s i m p l e s t s o l u t i o n is t o use a c o n t i n u o u s piecewise l i n e a r
spline, i.e., t o " c o n n e c t t h e d o t s " . I t is also w e l l k n o w n t h a t one possible basis f o r
t h e space o f piecewise l i n e a r splines i n t e r p o l a t i n g d a t a at a g i v e n set o f p o i n t s i n
[0,1] consists o f t h e shifts o f t h e a b s o l u t e v a l u e f u n c t i o n t o t h e d a t a sites. I n o t h e r
w o r d s , we c a n c o n s t r u c t t h e piecewise l i n e a r s p l i n e i n t e r p o l a n t b y a s s u m i n g Vf is
of the form
N
V (x)
f = ^Tc \x k - x \,
k are [0,1],
fc=i
6 Meshfree Approximation Methods with MATLAB
V {xj)
f = h{ ), Xj j = l,...,N.
(1.3)
\X N - ml \X N - X2\ \x N - XN -CN _
Vf( ) x
= Y2 W Ck x
~ x
k h , xe[0,iy (1.4)
fc=i
1. Introduction 7
Fig. 1.2 A typical basis function for the Euclidean distance matrix centered at the origin in R .
Program 1.1. D i s t a n c e M a t r i x . m
% DM = DistanceMatrix(dsites,ctrs)
% Forms t h e d i s t a n c e m a t r i x of two s e t s o f p o i n t s in R"s,
% i.e., DM(i,j) = II datasite_i - center_j I I_2.
% Input
% dsites: Mxs m a t r i x r e p r e s e n t i n g a set of M data s i t e s in R~s
7, (i.e., each row c o n t a i n s one s-dimensional point)
7o ctrs: Nxs m a t r i x r e p r e s e n t i n g a set of N centers in R~s
7o (one center per row)
7. O u t p u t
7. DM: MxN m a t r i x w h o s e i , j p o s i t i o n c o n t a i n s the Euclidean
7o d i s t a n c e between the i - t h data site and j - t h c e n t e r
8 Meshfree Approximation Methods with MATLAB
1 f u n c t i o n DM = D i s t a n c e M a t r i x ( d s i t e s , c t r s )
2 [M,s] = s i z e ( d s i t e s ) ; [N,s] = size(ctrs);
3 DM = zeros(M,N);
% Accumulate sum of s q u a r e s of c o o r d i n a t e differences
% The n d g r i d command produces two MxN matrices:
'/ . d r , c o n s i s t i n g of N i d e n t i c a l columns ( e a c h containing
% the d-th coordinate of t h e M d a t a sites)
7o c c , c o n s i s t i n g of M i d e n t i c a l rows ( e a c h containing
% the d-th coordinate of t h e N c e n t e r s )
4 f o r d=l:s
5 [dr.cc] = n d g r i d ( d s i t e s ( : , d ) , c t r s ( : , d ) ) ;
6 DM = DM + ( d r - c c ) . " 2 ;
7 end
8 DM = sqrt(DM);
N o t e t h a t t h i s s u b r o u t i n e c a n easily b e m o d i f i e d t o p r o d u c e a p - n o r m d i s t a n c e
m a t r i x b y m a k i n g t h e o b v i o u s changes t o lines 6 a n d 8 o f t h e code i n P r o g r a m 1.1.
W e w i l l come back t o t h i s idea i n C h a p t e r 10.
O u r first m a i n s c r i p t is P r o g r a m 1.2. T h i s s c r i p t c a n be u s e d t o c o m p u t e the
distance m a t r i x interpolant to d a t a sampled f r o m the test function / s provided by
P r o g r a m C l . W e use H a l t o n p o i n t s a n d are a b l e t o select t h e space d i m e n s i o n
s and number of points N b y e d i t i n g lines 1 a n d 2 o f t h e code. The subrou-
t i n e MakeSDGrid.m w h i c h w e use t o c o m p u t e t h e e q u a l l y spaced p o i n t s i n t h e s-
dimensional u n i t cube o n line 6 o f D i s t a n c e M a t r i x F i t .mis p r o v i d e d i n A p p e n d i x C.
T h e s e e q u a l l y spaced p o i n t s are used as e v a l u a t i o n p o i n t s a n d t o c o m p u t e errors.
N o t e t h a t since t h e d i s t a n c e m a t r i x i n t e r p o l a n t is o f t h e f o r m ( 1 . 4 ) i t s s i m u l t a n e o u s
e v a l u a t i o n a t t h e e n t i r e set o f e v a l u a t i o n p o i n t s a m o u n t s t o a m a t r i x - v e c t o r p r o d u c t
o f t h e e v a l u a t i o n m a t r i x EM a n d t h e coefficients c. H e r e t h e e v a l u a t i o n m a t r i x has
t h e same s t r u c t u r e as t h e i n t e r p o l a t i o n m a t r i x a n d c a n also be c o m p u t e d u s i n g t h e
subroutine Distancematrix.m ( o n l y u s i n g e v a l u a t i o n p o i n t s i n place o f t h e d a t a
sites, see l i n e 9 o f D i s t a n c e M a t r i x F i t .m). T h e coefficient v e c t o r c is s u p p l i e d d i -
r e c t l y as s o l u t i o n o f t h e l i n e a r s y s t e m Ac = f (see ( 1 . 3 ) a n d t h e M A T L A B e x p r e s s i o n
IM\rhs o n l i n e 1 0 o f t h e p r o g r a m ) . T h e e v a l u a t i o n p o i n t s are s u b s e q u e n t l y used
for t h e e r r o r c o m p u t a t i o n i n lines 1 1 - 1 3 a n d are also u s e d for p l o t t i n g p u r p o s e s i n
t h e last p a r t o f t h e p r o g r a m (lines 1 6 - 3 5 ) . N o t e t h a t for t h i s e x a m p l e w e k n o w t h e
function f s t h a t g e n e r a t e d t h e d a t a , a n d t h e r e f o r e are a b l e t o c o m p u t e t h e e r r o r i n
o u r r e c o n s t r u c t i o n . T h e s u b r o u t i n e s t h a t p r o d u c e t h e 2 D a n d 3 D p l o t s o n lines 2 4
3 2 are p r o v i d e d i n A p p e n d i x C . N o t e t h a t t h e use o f r e s h a p e o n lines 2 2 - 2 3 and
2 7 - 2 9 c o r r e s p o n d s t o t h e use o f meshgrid for p l o t t i n g p u r p o s e s .
P r o g r a m 1.2. D i s t a n c e M a t r i x F i t .m
% DistanceMatrixFit
% S c r i p t that uses E u c l i d e a n d i s t a n c e matrices t o perform
1. Introduction
% s c a t t e r e d d a t a i n t e r p o l a t i o n f o r a r b i t r a r y space dimensions
% C a l l s on: D i s t a n c e M a t r i x , MakeSDGrid, t e s t f u n c t i o n
/ Uses:
0 h a l t o n s e q ( w r i t t e n by D a n i e l Dougherty from MATLAB
% C e n t r a l F i l e Exchange)
1 s = 3;
2 k = 2; N = ( 2 ~ k + l ) ~ s ;
3 n e v a l = 10; M = n e v a l ' s ;
% Use Halton p o i n t s a s d a t a s i t e s and c e n t e r s
4 d s i t e s = haltonseq(N,s);
5 ctrs = dsites;
% Create n e v a l ~ s e q u a l l y spaced e v a l u a t i o n l o c a t i o n s i n t h e
% s-dimensional u n i t cube
6 e p o i n t s = MakeSDGrid(s,neval);
% Create right-hand side vector,
% i . e . , evaluate the t e s t function a t the data s i t e s
7 rhs= testfunction(s,dsites);
% Compute d i s t a n c e m a t r i x f o r t h e d a t a s i t e s and c e n t e r s
8 IM = D i s t a n c e M a t r i x ( d s i t e s , c t r s ) ;
% Compute d i s t a n c e m a t r i x f o r e v a l u a t i o n p o i n t s and c e n t e r s
9 EM = D i s t a n c e M a t r i x ( e p o i n t s , c t r s ) ;
% E v a l u a t e t h e i n t e r p o l a n t on e v a l u a t i o n p o i n t s
/ ( e v a l u a t i o n m a t r i x * s o l u t i o n of i n t e r p o l a t i o n system)
0
10 Pf = EM * ( I M \ r h s ) ;
% Compute exact s o l u t i o n ,
% i . e . , e v a l u a t e t e s t f u n c t i o n on e v a l u a t i o n p o i n t s
11 exact = t e s t f u n c t i o n ( s , e p o i n t s ) ;
% Compute maximum and RMS e r r o r s on e v a l u a t i o n g r i d
12 maxerr = n o r m ( P f - e x a c t , i n f ) ;
13 rms.err = n o r m ( P f - e x a c t ) / s q r t ( M ) ;
J
14 f p r i n t f ( R M S e r r o r : 7 e\n', r m s _ e r r )
0
0
15 f p r i n t f ('Maximum e r r o r : / e\n', maxerr)
0
16 s w i t c h s
17 case 1
18 plot(epoints, Pf)
19 figure; plot(epoints, abs(Pf-exact))
20 case 2
21 fview = [-30,30];
22 xe = r e s h a p e ( e p o i n t s ( : , 2 ) , n e v a l , n e v a l ) ;
23 ye = r e s h a p e ( e p o i n t s ( : , 1 ) , n e v a l , n e v a l ) ;
24 PlotSurf(xe,ye,Pf,neval,exact.maxerr,fview);
25 PlotError2D(xe,ye,Pf,exact,maxerr,neval,fview);
26 case 3
10 Meshfree Approximation Methods with M A T L A B
27 xe = reshapeCepoints(:,2),neval,neval,neval);
38 ye = reshape(epoints(:,1),neval,neval,neval);
29 ze = reshape(epoints(:,3),neval,neval,neval);
30 xslice = .25:.25:1; yslice = 1; zslice = [0,0.5];
31 PlotSIices(xe,ye,ze,Pf,neval,xslice,yslice,zslice);
32a PlotErrorSlices(xe,ye,ze,Pf,exact,neval,...
32b xslice,yslice,zslice);
33 otherwise
34 disp('Cannot display plots for s>3')
35 end
RMS-error (1.5)
s
Table 1.1 Distance matrix fit to N Halton points in [0, l ] , s 1, 2, 3.
ID 2D 3D
X X
Fig. 1.3 F i t (left) and absolute error (right) for 5 point distance matrix interpolation in I D .
y 0 0 x y 0 0
Fig. 1.4 F i t s (left) and errors (right) for distance matrix interpolation with 289 points in 2D
(top), and 729 points in 3D (bottom).
s
Table 1.2 Distance matrix fit to N Halton points in [0, l ] , s 4, 5, 6.
4D 5D 6D
metric. Second, as t h e M A T L A B s c r i p t s s h o w , t h e m e t h o d is e x t r e m e l y s i m p l e t o
i m p l e m e n t for a n y space d i m e n s i o n s. For example, no u n d e r l y i n g c o m p u t a t i o n a l
m e s h is r e q u i r e d t o c o m p u t e t h e i n t e r p o l a n t . T h e process o f m e s h g e n e r a t i o n is
a m a j o r f a c t o r w h e n w o r k i n g i n h i g h e r space d i m e n s i o n s w i t h polynomial-based
m e t h o d s such as splines o r finite e l e m e n t s . A l l t h a t is r e q u i r e d for o u r m e t h o d is
t h e p a i r w i s e d i s t a n c e b e t w e e n t h e d a t a sites. T h e r e f o r e , w e h a v e w h a t is k n o w n as
a meshfree (or meshless) method.
T h i r d , t h e a c c u r a c y o f t h e m e t h o d i m p r o v e s i f w e a d d m o r e d a t a sites. I n f a c t ,
i t seems t h a t t h e R M S - e r r o r i n T a b l e s 1.1 a n d 1.2 is r e d u c e d b y a f a c t o r o f a b o u t
s
t w o f r o m one r o w t o t h e n e x t . Since w e use (2* + l ) uniformly distributed random
1. Introduction 13
D o n a l d S h e p a r d , w h o as a n u n d e r g r a d u a t e s t u d e n t a t H a r v a r d U n i v e r s i t y ,
suggested t h e use o f w h a t are n o w c a l l e d Shepard functions in the late
1960s (see C h a p t e r 22). T h e p u b l i c a t i o n [Shepard (1968)] discusses t h e
basic inverse d i s t a n c e w e i g h t e d S h e p a r d m e t h o d a n d some m o d i f i c a t i o n s
thereof. T h e m e t h o d was a t t h e t i m e i n c o r p o r a t e d i n t o a c o m p u t e r p r o -
g r a m , S Y M A P , for m a p m a k i n g .
R o l l a n d H a r d y , w h o was a geodesist at I o w a S t a t e U n i v e r s i t y . H e i n t r o -
d u c e d t h e so-called multiquadrics ( M Q s ) i n t h e e a r l y 1970s (see, e.g., [ H a r d y
(1971)] or C h a p t e r 8 ) . H a r d y ' s w o r k was p r i m a r i l y c o n c e r n e d w i t h a p p l i -
c a t i o n s i n geodesy a n d m a p p i n g .
Meshfree Approximation Methods with MATLAB
R o b e r t L . H a r d e r a n d R o b e r t N . D e s m a r a i s , w h o w e r e aerospace engineers
at M a c N e a l - S c h w e n d l e r C o r p o r a t i o n ( M S C S o f t w a r e ) , a n d N A S A ' s L a n g l e y
Research C e n t e r . T h e y i n t r o d u c e d t h e s o - c a l l e d thin plate splines (TPSs)
i n 1972 (see, e.g., [ H a r d e r a n d D e s m a r a i s ( 1 9 7 2 ) ] o r C h a p t e r 8 ) . T h e i r w o r k
was c o n c e r n e d m o s t l y w i t h a i r c r a f t d e s i g n .
Jean Duchon, a m a t h e m a t i c i a n at the Universite Joseph Fourier i n Greno-
ble, France. D u c h o n suggested a v a r i a t i o n a l a p p r o a c h minimizing the
2 2
integral of V / in R w h i c h also leads t o t h e t h i n p l a t e splines. This
w o r k was d o n e i n t h e m i d 1970s a n d is c o n s i d e r e d t o b e t h e foundation
o f t h e v a r i a t i o n a l a p p r o a c h t o r a d i a l basis f u n c t i o n s (see [ D u c h o n ( 1 9 7 6 ) ;
D u c h o n (1977); D u c h o n (1978); D u c h o n (1980)]) or C h a p t e r 13).
Jean Meinguet, a mathematican a t U n i v e r s i t e C a t h o l i q u e de L o u v a i n i n
L o u v a i n , B e l g i u m . M e i n g u e t i n t r o d u c e d w h a t he c a l l e d surface splines in
t h e l a t e 1970s. Surface splines a n d t h i n p l a t e splines f a l l u n d e r w h a t w e
w i l l refer t o as polyharmonic splines (see, e.g., [ M e i n g u e t ( 1 9 7 9 a ) ; M e i n g u e t
(1979b); M e i n g u e t (1979c); M e i n g u e t (1984)] or C h a p t e r 8).
P e t e r L a n c a s t e r a n d K e s Salkauskas, m a t h e m a t i c i a n s at t h e U n i v e r s i t y o f
Calgary, Canada. T h e y p u b l i s h e d [ L a n c a s t e r a n d Salkauskas ( 1 9 8 1 ) ] i n -
t r o d u c i n g t h e moving least squares method (a g e n e r a l i z a t i o n o f S h e p a r d
functions).
R i c h a r d Franke, a m a t h e m a t i c i a n at the N a v a l Postgraduate School i n M o n -
terey, C a l i f o r n i a . I n [ F r a n k e (1982a)] he c o m p a r e d v a r i o u s s c a t t e r e d d a t a
i n t e r p o l a t i o n methods, a n d concluded M Q s a n d T P S s were the best. Franke
also c o n j e c t u r e d t h a t t h e i n t e r p o l a t i o n m a t r i x for M Q s is i n v e r t i b l e .
W o l o d y m y r ( W a l l y ) M a d y c h , a m a t h e m a t i c i a n at the U n i v e r s i t y of C o n -
necticut, and Stuart A l a n Nelson, a m a t h e m a t i c i a n from Iowa State Univer-
sity. I n 1983 t h e y c o m p l e t e d t h e i r m a n u s c r i p t [ M a d y c h a n d N e l s o n (1983)]
i n w h i c h t h e y p r o v e d Franke's conjecture ( a n d m u c h more) based o n a varia-
t i o n a l approach. However, t h i s m a n u s c r i p t was never published. O t h e r fun-
d a m e n t a l p a p e r s b y these t w o a u t h o r s are, e.g., [ M a d y c h a n d N e l s o n ( 1 9 8 8 ) ;
M a d y c h and Nelson (1990a); M a d y c h and Nelson (1992)].
Charles Micchelli, a m a t h e m a t i c i a n at the I B M W a t s o n Research Center.
M i c c h e l l i p u b l i s h e d t h e p a p e r [ M i c c h e l l i ( 1 9 8 6 ) ] . H e also p r o v e d F r a n k e ' s
conjecture. H i s p r o o f s are r o o t e d i n t h e w o r k o f [ B o c h n e r ( 1 9 3 2 ) ; B o c h n e r
(1933)] a n d [Schoenberg ( 1 9 3 7 ) ; S c h o e n b e r g ( 1 9 3 8 a ) ; S c h o e n b e r g ( 1 9 3 8 b ) ]
on positive definite a n d c o m p l e t e l y m o n o t o n e functions. T h i s is also t h e
approach we w i l l follow t h r o u g h o u t m u c h of this book.
G r a c e W a h b a , a s t a t i s t i c i a n a t t h e U n i v e r s i t y o f W i s c o n s i n . She s t u d i e d t h e
use o f t h i n p l a t e splines for s t a t i s t i c a l p u r p o s e s i n t h e c o n t e x t o f s m o o t h i n g
noisy data a n d d a t a o n spheres, a n d i n t r o d u c e d t h e A N O V A a n d cross
v a l i d a t i o n a p p r o a c h e s t o t h e r a d i a l basis f u n c t i o n s e t t i n g ( s e e , e.g., [Wahba
1. Introduction 15
(1979); W a h b a ( 1 9 8 1 ) ; W a h b a a n d W e n d e l b e r g e r ( 1 9 8 0 ) ] ) . O n e o f t h e first
m o n o g r a p h s o n t h e s u b j e c t is [ W a h b a ( 1 9 9 0 b ) ] .
R o b e r t Schaback, a m a t h e m a t i c i a n a t t h e U n i v e r s i t y o f G o t t i n g e n , Ger-
many. Compactly supported radial basis functions ( C S R B F s ) were i n t r o -
d u c e d i n [Schaback ( 1 9 9 5 a ) ] , a n d a v e r y p o p u l a r f a m i l y o f C S R B F s was
presented b y H o l g e r W e n d l a n d (also a m a t h e m a t i c i a n i n G o t t i n g e n ) i n his
P h . D . thesis (see also [ W e n d l a n d (1995)] a n d C h a p t e r 1 1 ) . B o t h o f these
a u t h o r s have c o n t r i b u t e d e x t e n s i v e l y t o t h e field o f r a d i a l basis f u n c t i o n s .
W e m e n t i o n p a r t i c u l a r l y t h e recent m o n o g r a p h [ W e n d l a n d ( 2 0 0 5 a ) ] .
Chapter 2
A s a first e x a m p l e we p i c k a f u n c t i o n w e l l - r e p r e s e n t e d i n m a n y branches o f m a t h e -
matics, namely the Gaussian
2
^( )= -(^) ,
r e r e i
2
O u r shape parameter e is r e l a t e d t o t h e v a r i a n c e a of the normal distribution
2 2
function by e = l/(2o~ ). I f we c o m p o s e t h e G a u s s i a n w i t h t h e E u c l i d e a n d i s t a n c e
s
f u n c t i o n 11 - j12 we o b t a i n for a n y f i x e d center x k GR a multivariate function
3
$ (sc) = e - " -
fc
e a a ! a ? f c
ll2, x e R .
^fc(x) = (p(\\x - x \\ ).
k 2
S
D e f i n i t i o n 2.1. A f u n c t i o n $ : R > R is c a l l e d radial p r o v i d e d t h e r e exists a
univariate f u n c t i o n <p : [0, 00) > R s u c h t h a t
a n d || || is some n o r m o n M u s u a l l y t h e E u c l i d e a n n o r m .
s
17
18 Meshfree Approximation Methods with MATLAB
u is
2
Fig. 2.1 Gaussian with e = 1 (left) and e = 3 (right) centered at the origin in R .
D e f i n i t i o n 2.1 a n d t h e d i s c u s s i o n l e a d i n g u p t o i t s h o w a g a i n w h y i t m a k e s sense
t o c a l l ip t h e basic f u n c t i o n , a n d &k(\\ H2) (centered at x ) k a r a d i a l basis f u n c t i o n .
O n e single basic f u n c t i o n generates a l l o f t h e basis f u n c t i o n s t h a t are u s e d i n t h e
expansion (1.1).
R a d i a l f u n c t i o n i n t e r p o l a n t s h a v e t h e nice p r o p e r t y o f b e i n g i n v a r i a n t u n d e r a l l
Euclidean transformations (i.e., translations, rotations, a n d reflections). B y this
w e m e a n t h a t i t does n o t m a t t e r w h e t h e r w e first c o m p u t e t h e R B F i n t e r p o l a n t
a n d t h e n a p p l y a E u c l i d e a n t r a n s f o r m a t i o n , o r i f w e first t r a n s f o r m t h e d a t a a n d
t h e n c o m p u t e t h e i n t e r p o l a n t . T h i s is a n i m m e d i a t e consequence o f t h e fact t h a t
E u c l i d e a n t r a n s f o r m a t i o n s are c h a r a c t e r i z e d by orthogonal transformation matri-
ces a n d are t h e r e f o r e 2 - n o r m - i n v a r i a n t . I n v a r i a n c e u n d e r t r a n s l a t i o n , r o t a t i o n a n d
r e f l e c t i o n is o f t e n d e s i r a b l e i n a p p l i c a t i o n s .
Moreover, the application of radial functions to the solution of the scattered data
i n t e r p o l a t i o n p r o b l e m (as w e l l as m a n y o t h e r m u l t i v a r i a t e a p p r o x i m a t i o n p r o b l e m s )
benefits f r o m t h e fact t h a t t h e i n t e r p o l a t i o n p r o b l e m b e c o m e s i n s e n s i t i v e t o the
2. Radial Basis Function Interpolation in M A T L A B 19
d i m e n s i o n s o f t h e space i n w h i c h t h e d a t a sites l i e . I n s t e a d o f h a v i n g t o d e a l w i t h
a multivariate function $ (whose c o m p l e x i t y w i l l increase w i t h i n c r e a s i n g space
d i m e n s i o n s) w e c a n w o r k w i t h t h e same u n i v a r i a t e f u n c t i o n ip for a l l choices o f s.
I n s t e a d o f u s i n g s i m p l e d i s t a n c e m a t r i c e s as w e d i d earlier, w e n o w use a r a d i a l
s
basis f u n c t i o n e x p a n s i o n t o solve t h e s c a t t e r e d d a t a i n t e r p o l a t i o n p r o b l e m i n M. b y
assuming
N
s
V (x)
f = J2ck<p(\\x-x \\ ), k 2 x e R . (2.1)
fc=i
T h e coefficients c k are f o u n d b y e n f o r c i n g t h e i n t e r p o l a t i o n c o n d i t i o n s , a n d t h u s
solving the linear system
A s t h e s o l u t i o n o f t h e s c a t t e r e d d a t a i n t e r p o l a t i o n p r o b l e m hinges e n t i r e l y o n t h e
solution of this system of linear equations we w i l l devote t h e next chapter t o the
q u e s t i o n o f w h e n (i.e., for w h a t t y p e o f basic f u n c t i o n s <p) t h e s y s t e m m a t r i x is
non-singular.
F o r t h e n u m e r i c a l e x a m p l e p r e s e n t e d b e l o w w e r e s t r i c t ourselves t o t h e t w o -
d i m e n s i o n a l case s = 2. A s basic f u n c t i o n ip w e w i l l use b o t h Gaussians a n d t h e
l i n e a r f u n c t i o n <p(r) = r w h i c h gives rise t o t h e E u c l i d e a n d i s t a n c e m a t r i x a p p r o a c h
used earlier.
T h e code o f t h e MATLAB script RBFInterpolation2D.m (see P r o g r a m 2.1)
w e use t o p e r f o r m R B F i n t e r p o l a t i o n i n 2 D is v e r y s i m i l a r t o t h e earlier s c r i p t
D i s t a n c e M a t r i x F i t .m. I t also m a k e s use o f t h e s u b r o u t i n e D i s t a n c e M a t r i x . m .
W h i l e i t is easy t o w r i t e a v e r s i o n o f t h e i n t e r p o l a t i o n s c r i p t t h a t w o r k s for a n y
space d i m e n s i o n s ( j u s t as w e d i d i n D i s t a n c e M a t r i x F i t .m) w e w i l l s t i c k w i t h a
basic 2 D v e r s i o n here.
I n l i n e 1 we define t h e G a u s s i a n R B F as a M A T L A B a n o n y m o u s f u n c t i o n t h a t
accepts a m a t r i x a r g u m e n t ( n a m e l y t h e o u t p u t f r o m D i s t a n c e M a t r i x ) a l o n g w i t h
its shape p a r a m e t e r . N o t e t h a t t h i s f e a t u r e is o n l y a v a i l a b l e since M A T L A B Re-
lease 7. For older M A T L A B versions w e suggest u s i n g a n i n l i n e f u n c t i o n i n s t e a d
(see t h e p r o g r a m s i n t h e f o l d e r M a t l a b 6 o f t h e enclosed C D ) . I f e x e c u t i o n speed
is i m p o r t a n t , t h e n one s h o u l d e x p l i c i t l y p r o v i d e t h e f u n c t i o n ( e i t h e r h a r d c o d e d d i -
r e c t l y w h e r e needed, o r as a n M - f i l e ) . T h i s l a t t e r a p p r o a c h w i l l a l w a y s be m o r e
efficient t h a n t h e i n l i n e o r e v e n a n o n y m o u s f u n c t i o n a p p r o a c h . H o w e v e r , t h e n t h e
i n t e r p o l a t i o n p r o g r a m is n o l o n g e r as generic.
20 Meshfree Approximation Methods with MATLAB
W e c a n replace t h e d e f i n i t i o n o f t h e G a u s s i a n o n l i n e 1 b y t h e d e f i n i t i o n o f t h e
l i n e a r f u n c t i o n <p(r) = r o r a n y o t h e r a d m i s s i b l e R B F w e w i l l e n c o u n t e r l a t e r . In
lines 2 - 6 w e define a t e s t f u n c t i o n t h a t w e w i l l s a m p l e s i m i l a r l y t o t h e function
f
s used i n t h e i n t r o d u c t o r y e x a m p l e . H e r e ( a n d i n m a n y l a t e r e x a m p l e s ) w e use
Franke's function
ffay) = ^ - l / 4 ( ( 9 . r - 2 ) + (9s/-2) )
e
2 2
+ 3 _(l/49)(9a +l) -(l/10)(9 /+l)
e ;
2
!
2
2 2 2 2
+ I - l / 4 ( ( 9 x - 7 ) + (9j/-3) ) _ l _ (
e e 9 a ; -4) -(9y-7)
2 5
w h i c h is a s t a n d a r d t e s t f u n c t i o n f o r 2 D s c a t t e r e d d a t a fitting. N o t e t h a t we used
2
(x,y) t o d e n o t e t h e t w o c o m p o n e n t s o f a; G M . T h e g r a p h o f Franke's function
over t h e u n i t s q u a r e is s h o w n i n F i g u r e 2.2.
f c 2
{(2 + l) } = { 9 , 2 5 , 8 1 , 2 8 9 , 1 0 8 9 , 4 2 2 5 , . . . } . T h e characters u or h ( i n place o f
/ s) are used t o d e n o t e e i t h e r u n i f o r m l y s p a c e d p o i n t s , o r H a l t o n p o i n t s i n t h e u n i t
0
s q u a r e . T h e set o f d a t a p o i n t s is d e f i n e d a n d l o a d e d i n lines 7 a n d 8. A s i n t h e e a r l i e r
e x a m p l e w e consider here o n l y t h e case w h e r e t h e centers f o r t h e R B F s c o i n c i d e
w i t h the d a t a locations (line 9 ) .
A g r i d o f e v a l u a t i o n p o i n t s used t o e v a l u a t e o u r i n t e r p o l a n t for t h e p u r p o s e s
o f r e n d e r i n g a n d e r r o r c o m p u t a t i o n is d e f i n e d i n l i n e s 10 a n d 1 1 . T h e t e s t data
( r i g h t - h a n d side o f t h e i n t e r p o l a t i o n e q u a t i o n s ) are c o m p u t e d o n l i n e 12 w h e r e t h e
t e s t f u n c t i o n is s a m p l e d a t t h e d a t a sites.
T h e m a i n p a r t o f t h e code is g i v e n b y lines 1 3 - 1 7 . N o t e t h a t t h i s p a r t is v e r y
similar t o t h e corresponding segment ( l i n e s 7 - 9 ) i n D i s t a n c e M a t r i x F i t .m. The
o n l y difference is t h a t w e n o w a p p l y t h e basic f u n c t i o n <p t o t h e e n t i r e distance
matrices i n order to o b t a i n the i n t e r p o l a t i o n a n d evaluation matrices.
2. Radial Basis Function Interpolation in MATLAB 21
P r o g r a m 2.1. RBFInterpolation2D.m
% RBFInterpolation2D
S c r i p t t h a t performs b a s i c 2D RBF i n t e r p o l a t i o n
% C a l l s on: D i s t a n c e M a t r i x
/ Define t h e G a u s s i a n RBF and shape parameter
1 r b f = @(e,r) e x p ( - ( e * r ) . ~ 2 ) ; ep = 21.1;
% Define Franke's f u n c t i o n as t e s t f u n c t i o n
2 f l = @(x,y) 0 . 7 5 * e x p ( - ( ( 9 * x - 2 ) . ~ 2 + ( 9 * y - 2 ) . " 2 ) / 4 ) ;
3 f 2 = <3(x,y) 0 . 7 5 * e x p ( - ( ( 9 * x + l ) . ~ 2 / 4 9 + ( 9 * y + l ) . ~ 2 / 1 0 ) ) ;
4 f 3 = @(x,y) 0 . 5 * e x p ( - ( ( 9 * x - 7 ) . ~ 2 + ( 9 * y - 3 ) . ~ 2 ) / 4 ) ;
5 f 4 = @(x,y) 0 . 2 * e x p ( - ( ( 9 * x - 4 ) . ~ 2 + ( 9 * y - 7 ) . " 2 ) ) ;
6 t e s t f u n c t i o n = @(x,y) f l ( x , y ) + f 2 ( x , y ) + f 3 ( x , y ) - f 4 ( x , y ) ;
7 N = 1089; g r i d t y p e = 'h';
% Load d a t a p o i n t s
0
8 name = s p r i n t f ( 'Data2D_y d / s' ,N,gridtype) ; load(name)
o 0
9 ctrs = dsites;
10 n e v a l = 40; g r i d = l i n s p a c e ( 0 , 1 , n e v a l ) ;
11 [xe,ye] = m e s h g r i d ( g r i d ) ; e p o i n t s = [ x e ( : ) y e ( : ) ] ;
% Evaluate the t e s t function a t the data points
12 r h s = t e s t f u n c t i o n ( d s i t e s ( : , 1 ) , d s i t e s ( : , 2 ) ) ;
% Compute d i s t a n c e m a t r i x between t h e d a t a s i t e s and c e n t e r s
13 DM_data = D i s t a n c e M a t r i x ( d s i t e s , c t r s ) ;
% Compute i n t e r p o l a t i o n m a t r i x
14 IM = rbf(ep,DM_data);
% Compute d i s t a n c e m a t r i x between e v a l u a t i o n p o i n t s and c e n t e r s
15 DM_eval = D i s t a n c e M a t r i x ( e p o i n t s , c t r s ) ;
% Compute e v a l u a t i o n m a t r i x
16 EM = rbf(ep,DM_eval);
% Compute RBF i n t e r p o l a n t
% ( e v a l u a t i o n m a t r i x * s o l u t i o n of i n t e r p o l a t i o n system)
17 Pf = EM * ( I M \ r h s ) ;
% Compute exact s o l u t i o n , i . e . ,
% e v a l u a t e t e s t f u n c t i o n on e v a l u a t i o n p o i n t s
18 exact = t e s t f u n c t i o n ( e p o i n t s ( : , 1 ) , e p o i n t s ( : , 2 ) ) ;
0/ Compute e r r o r s on e v a l u a t i o n g r i d
19 maxerr = n o r m ( P f - e x a c t , i n f ) ;
20 rms.err = n o r m ( P f - e x a c t ) / n e v a l ;
21 f p r i n t f ( ' R M S e r r o r : /,e\n', r m s . e r r )
22 f p r i n t f ('Maximum e r r o r : /e\n', maxerr)
0
h = h ,n x s u p m i n ||aj (2.3)
a n d i t i n d i c a t e s h o w w e l l t h e d a t a i n t h e set X fill o u t t h e d o m a i n Q. A g e o m e t r i c
i n t e r p r e t a t i o n o f t h e fill d i s t a n c e is g i v e n b y t h e r a d i u s o f t h e largest possible e m p t y
b a l l t h a t c a n be p l a c e d a m o n g t h e d a t a l o c a t i o n s i n s i d e fl (see F i g u r e 2 . 3 ) . Some-
t i m e s t h e s y n o n y m covering radius is used. I n o u r M A T L A B code w e c a n estimate
t h e fill d i s t a n c e v i a
hX = m a x C m i n C D M - e v a l ' ) ) (2.4)
w h e r e DM_eval is t h e m a t r i x c o n s i s t i n g o f p a i r w i s e d i s t a n c e s b e t w e e n t h e e v a l u a t i o n
p o i n t s ( p l a c e d o n a fine u n i f o r m g r i d i n Q) a n d t h e d a t a sites X (c.f. l i n e 15 o f
P r o g r a m 2 . 1 ) . N o t e t h a t we t r a n s p o s e t h e n o n - s y m m e t r i c e v a l u a t i o n m a t r i x . T h i s
corresponds t o finding for each e v a l u a t i o n p o i n t t h e d i s t a n c e t o t h e c o r r e -
s p o n d i n g closest d a t a site, a n d t h e n s e t t i n g hx,n as t h e w o r s t o f t h o s e d i s t a n c e s .
F i g u r e 2.3 i l l u s t r a t e s t h e fill d i s t a n c e for a set o f 25 H a l t o n p o i n t s . Note that in
t h i s case t h e largest "hole" i n t h e d a t a is n e a r t h e b o u n d a r y .
0.8
0.6
0.4
0.2
Fig. 2.4 Gaussian R B F interpolant with e = 21.1 at N = 289 (left) and at N = 1089 Halton
points (right).
24 Meshfree Approximation Methods with M A T L A B
I f we l o o k a t t h e e n t r i e s i n T a b l e 2 . 1 t h e n w e see t h a t c o n t r a r y t o w h a t w e
a n n o u n c e d e a r l i e r t h e r e s u l t s b a s e d o n t h e d i s t a n c e m a t r i x f i t are m o r e a c c u r a t e
t h a n those o b t a i n e d w i t h Gaussians. T h i s w i l l change, however, i f we t r y t o o p t i m i z e
our choice o f t h e shape p a r a m e t e r e (see t h e r e s u l t s o f t h e n e x t e x p e r i m e n t i n
Table 2.2).
I n a second e x p e r i m e n t w e c o n s i d e r t h e same t e s t f u n c t i o n a n d G a u s s i a n basis
functions. N o w , h o w e v e r , w e w a n t t o s t u d y t h e effects o f t h e s h a p e parameter.
T h e r e f o r e , i n F i g u r e 2.5 w e d i s p l a y b o t h t h e m a x i m u m a n d R M S e r r o r s as a f u n c t i o n
o f t h e s h a p e p a r a m e t e r e f o r four f i x e d d a t a sets ( 8 1 , 289, 1089 a n d 4225 H a l t o n
points). T h e s e curves r e v e a l s o m e o f t h e p r o b l e m s a s s o c i a t e d w i t h r a d i a l basis
function i n t e r p o l a t i o n especially w h e n w o r k i n g w i t h globally s u p p o r t e d basis
f u n c t i o n s , i.e., dense m a t r i c e s . W e see t h a t t h e e r r o r s decrease w i t h d e c r e a s i n g e
(of course, t h e y also decrease w i t h d e c r e a s i n g f i l l d i s t a n c e b u t t h a t is n o t w h a t
we are c o n c e r n e d w i t h n o w ) . H o w e v e r , t h e e r r o r c u r v e s are n o t m o n o t o n i c . W e c a n
i d e n t i f y a n o p t i m a l v a l u e o f e for w h i c h b o t h e r r o r s are m i n i m a l ( t h e m i n i m a o f
t h e t w o e r r o r c u r v e s o c c u r a t a l m o s t t h e s a m e p l a c e ) . M o r e o v e r , t h e r e is a v a l u e o f
e at w h i c h t h e c o m p u t a t i o n a l results become u n p r e d i c t a b l e , a n d t h e error curves
b e c o m e e r r a t i c . T h i s p o i n t is a s s o c i a t e d w i t h severe i l l - c o n d i t i o n i n g o f t h e s y s t e m
m a t r i x . Since M A T L A B issues a w a r n i n g w h e n a t t e m p t i n g t o solve a n i l l - c o n d i t i o n e d
l i n e a r s y s t e m , we refer t o t h e s m a l l e s t v a l u e o f e for w h i c h w e d o n o t see a M A T L A B
w a r n i n g as t h e "safe" v a l u e o f e ( f o r a g i v e n set X o f d a t a sites a n d basic f u n c t i o n
<p>). T h e i n t e r e s t i n g fact a b o u t t h e f o u r p l o t s d i s p l a y e d i n F i g u r e 2.5 is t h a t for t h e
s m a l l e r d a t a sets (N = 81 and N = 289) t h e m i n i m u m e r r o r s are o b t a i n e d f o r a
"safe" e, w h i l e for t h e l a r g e r sets ( i V = 1089 a n d N = 4225) the m i n i m u m errors
are o b t a i n e d i n t h e "unsafe" r a n g e . T h e r e f o r e , w e are c o m p u t i n g i n a c e r t a i n " g r a y
zone". W e are o b t a i n i n g h i g h l y a c c u r a t e s o l u t i o n s f r o m severely i l l - c o n d i t i o n e d
l i n e a r systems. W e w i l l c o m e b a c k l a t e r t o t h i s i n t e r e s t i n g f e a t u r e o f r a d i a l basis
f u n c t i o n i n t e r p o l a t i o n ( c a l l e d uncertainty o r trade-off principle). I t is c o n c e i v a b l e
(and i n fact possible [ F o r n b e r g a n d W r i g h t ( 2 0 0 4 ) ] ) t o o b t a i n even m o r e a c c u r a t e
r e s u l t s b y u s i n g a m o r e s t a b l e w a y t o e v a l u a t e t h e r a d i a l basis f u n c t i o n i n t e r p o l a n t
(see t h e d i s c u s s i o n i n C h a p t e r s 16 a n d 1 7 ) .
10
10 jl
10
10"
10"
10
10 15 20
Fig. 2.5 Maximum (dashed/top curve) and R M S (solid/bottom curve) errors vs. e for 81 (top
left), 289 (top right), 1089 (bottom left), and 4225 Halton points (bottom right).
Ac = y,
N N
Y^CjC A >Q
k jk (3.1)
3= 1 k=l
T N
for c = [ c i , . . .,c ] N G R .
I f t h e q u a d r a t i c f o r m ( 3 . 1 ) is zero o n l y for c = 0, t h e n A is c a l l e d positive
definite.
A n i m p o r t a n t p r o p e r t y o f p o s i t i v e d e f i n i t e m a t r i c e s is t h a t a l l t h e i r eigenvalues
are p o s i t i v e , a n d t h e r e f o r e a p o s i t i v e d e f i n i t e m a t r i x is n o n - s i n g u l a r ( b u t c e r t a i n l y
n o t vice v e r s a ) .
27
28 Meshfree Approximation Methods with MATLAB
D e f i n i t i o n 3.2. A c o m p l e x - v a l u e d c o n t i n u o u s f u n c t i o n <fr : R s
- C is c a l l e d positive
definite on K. i fs
N N
(3.2)
3= 1 k=l
XN &
s N
for a n y N p a i r w i s e different p o i n t s x i , . . . , R , and c = [ c i , . . . , CJV] T
<C .
s
T h e f u n c t i o n <E> is c a l l e d strictly positive definite on M. i f t h e q u a d r a t i c form
(3.2) is zero o n l y for c = 0 .
E x a m p l e 3.1. H e r e , a n d t h r o u g h o u t t h i s b o o k , we w i l l d e n o t e t h e s t a n d a r d i n n e r
t x y
product of x and y i n R s
b y x y. W i t h t h i s n o t a t i o n t h e f u n c t i o n <fr(cc) = e ,
3. Positive Definite Functions 29
for y G R s
fixed, is p o s i t i v e d e f i n i t e o n R s
since t h e q u a d r a t i c f o r m i n D e f i n i t i o n 3.2
becomes
N N N N
3=1 k=l
2
N
> 0.
3= 1
3= 1
is also positive definite. Moreover, if at least one of the <&j is strictly positive
definite and the corresponding c - > 0, then $ is strictly
3 positive definite.
(2) $ ( 0 ) > 0.
(3) $ ( - J T ) - $(aj).
(4) Any positive definite function is bounded. In fact,
for e v e r y c G C. T a k i n g c = 1 a n d c = z ( w h e r e i = y/ 1 ) , r e s p e c t i v e l y , w e c a n see
t h a t b o t h <3?(a;) + <&(ic) a n d z ( $ ( x ) <&(cc)) m u s t be r e a l . T h i s , h o w e v e r , is o n l y
possible i f <E>(x) = <fr(x).
F o r t h e p r o o f o f (4) w e l e t N = 2, X\ 0, x 2 = x, a n d choose c\ = | $ ( a ; ) | a n d
c 2 = Q(x). T h e n t h e q u a d r a t i c f o r m i n D e f i n i t i o n 3.2 is
2 2
^ r ^ T c j - c ^ ^ - x) k = 2<Z>(0)\$(x)\ 2 2
- $ ( - a j ) $ ( x ) | $ ( x ) | - $ (x)\(x)\ > 0.
j=ik=i
2 3
2$(0)\$(x)\ - 2\(x)\ > 0.
2
I f | $ ( x ) | > 0, w e d i v i d e b y |<3?(;E)| a n d t h e s t a t e m e n t f o l l o w s i m m e d i a t e l y . I n case
|<E>(a?)| = 0 t h e s t a t e m e n t h o l d s t r i v i a l l y .
P r o p e r t y (5) f o l l o w s i m m e d i a t e l y f r o m ( 4 ) , a n d P r o p e r t y (6) is a consequence o f a
t h e o r e m b y Schur i n t h e field o f l i n e a r a l g e b r a w h i c h s t a t e s t h a t t h e e l e m e n t w i s e (or
H a d a m a r d ) p r o d u c t o f p o s i t i v e ( s e m i - ) d e f i n i t e m a t r i c e s is p o s i t i v e ( s e m i - ) d e f i n i t e .
For m o r e d e t a i l s w e refer t h e r e a d e r t o [ C h e n e y a n d L i g h t (1999)] o r [ W e n d l a n d
(2005a)].
N N
c c
^2 j k<&(xj - x k ) > 0 (3.4)
3 = 1 fc=l
s T N
for any N pairwise different points Xi,..., x^ G M. , and c = [ c i , . . . , C j v ] G M. .
The function $ is strictly positive definite on R s
if the quadratic form (3.4) is
zero only for c = 0.
3. Positive Definite Functions 31
O n e o f t h e m o s t c e l e b r a t e d r e s u l t s o n p o s i t i v e d e f i n i t e f u n c t i o n s is t h e i r c h a r a c t e r -
i z a t i o n i n t e r m s o f F o u r i e r t r a n s f o r m s e s t a b l i s h e d b y B o c h n e r i n 1932 (for s = 1)
a n d 1933 (for g e n e r a l s).
S
T h e o r e m 3 . 3 ( B o c h n e r ) . A (complex-valued) function <E> e C ( I R ) is positive def-
s
inite on R if and only if it is the Fourier transform of a finite non-negative Borel
s
measure fi on R , i.e.
<2>(cc) = jl(x)
1
J ,ixy x e
N N
1
J E Cj e -zxj-y
E
fc=i
Cite
ix y
k
dLi(y)
Jut*
J=l
J E N
Cje
-txj-y dfj,(y) > 0.
32 Meshfree Approximation Methods with MATLAB
t x y
R e m a r k 3 . 1 . W e c a n see f r o m T h e o r e m 3.3 t h a t t h e f u n c t i o n $(x) = e of
E x a m p l e 3.1 c a n be c o n s i d e r e d as t h e fundamental positive definite function since
a l l o t h e r p o s i t i v e d e f i n i t e f u n c t i o n s are o b t a i n e d as ( i n f i n i t e ) l i n e a r c o m b i n a t i o n s o f
t h i s f u n c t i o n . W h i l e P r o p e r t y (1) o f T h e o r e m 3.1 i m p l i e s t h a t l i n e a r c o m b i n a t i o n s
o f <& w i l l a g a i n b e p o s i t i v e d e f i n i t e , t h e r e m a r k a b l e c o n t e n t o f B o c h n e r ' s Theorem
is t h e fact t h a t i n d e e d all p o s i t i v e d e f i n i t e f u n c t i o n s are g e n e r a t e d b y
X \ \ J { 0 : O is o p e n a n d fi(0) = 0}.
s
T h e o r e m 3 . 4 . Let /J, be a non-negative finite Borel measure on R whose carrier
is a set of nonzero Lebesgue measure. Then the Fourier transform of /j, is strictly
s
positive definite on R .
N o w let v/(2ir) h
AT
c e i X i v
g{y) = Y. i ~ ' '
3= 1
r e m a i n i n g w a y t o m a k e t h e a b o v e i n e q u a l i t y a n e q u a l i t y is i f t h e c a r r i e r o f fi is
c o n t a i n e d i n t h e zero set o f g, i.e., has Lebesgue m e a s u r e zero. T h i s , however, is
ruled out i n the hypothesis o f the theorem.
s
C o r o l l a r y 3 . 1 . Let f be a continuous non-negative function in Li(R ) which is not
s
identically zero. Then the Fourier transform of f is strictly positive definite on M. .
//() = ( f(x)dx.
JB
T h e n t h e c a r r i e r o f fi is e q u a l t o t h e (closed) s u p p o r t o f / . H o w e v e r , since / is
n o n - n e g a t i v e a n d n o t i d e n t i c a l l y e q u a l t o zero, i t s s u p p o r t has p o s i t i v e L e b e s g u e
measure, a n d hence t h e F o u r i e r t r a n s f o r m o f / is s t r i c t l y p o s i t i v e d e f i n i t e b y t h e
preceding theorem.
F i n a l l y , a c r i t e r i o n t o check w h e t h e r a g i v e n f u n c t i o n is s t r i c t l y p o s i t i v e d e f i n i t e
is g i v e n i n [ W e n d l a n d ( 2 0 0 5 a ) ] .
s
T h e o r e m 3.5. Let <& be a continuous function in L i ( R ) . <& is strictly positive
definite if and only if $ is bounded and its Fourier transform is non-negative and
not identically equal to zero.
T h e o r e m 3.5 is o f f u n d a m e n t a l i m p o r t a n c e a n d we w i l l c o m e b a c k t o t h i s t h e o r e m
several t i m e s l a t e r o n . I n f a c t , t h e p r o o f o f T h e o r e m 3.5 i n [ W e n d l a n d (2005a)] shows
t h a t i f <& ^ 0 ( w h i c h i m p l i e s t h a t t h e n also <E ^ 0) w e need t o ensure o n l y
t h a t <l> be n o n - n e g a t i v e i n o r d e r for <3> t o be s t r i c t l y p o s i t i v e d e f i n i t e .
Here
for s = 1,
for s>2,
5
and J ( _ 2 ) / 2 ^ the classical
s Bessel function of the first kind of order (s 2 ) / 2 .
T h e o r e m 3.7. A continuous function <p : [0, oo) * R such that r t> r ~ cp(r) s 1
e
s
L\[0, oo) is strictly positive definite and radial on R if and only if the s-dimensional
Fourier transform
Jo
where fi is a finite non-negative Borel measure on [0, oo) not concentrated at the
origin.
Since t h e e x p o n e n t i a l f u n c t i o n is p o s i t i v e a n d t h e m e a s u r e is n o n - n e g a t i v e , i t f o l l o w s
t h a t /J, m u s t be t h e zero m e a s u r e . H o w e v e r , t h e n cp is i d e n t i c a l l y e q u a l t o zero.
S
T h e r e f o r e , a n o n - t r i v i a l f u n c t i o n cp t h a t is p o s i t i v e d e f i n i t e a n d r a d i a l o n R for a l l
s c a n have n o zeros. T h i s i m p l i e s i n p a r t i c u l a r t h a t
4.1 E x a m p l e 1: Gaussians
W e c a n n o w show t h a t t h e Gaussian
2 x | 1 2
&(x) = e- H , > 0 , (4.1)
is s t r i c t l y p o s i t i v e d e f i n i t e ( a n d r a d i a l ) o n K s
for a n y s. T h i s is d u e t o t h e fact t h a t
t h e F o u r i e r t r a n s f o r m o f a G a u s s i a n is essentially a G a u s s i a n . I n fact,
, 1
a n d t h i s is p o s i t i v e i n d e p e n d e n t o f t h e space d i m e n s i o n s. I n p a r t i c u l a r , for e =
w e have <E> = P l o t s o f G a u s s i a n R B F s were p r e s e n t e d i n F i g . 2 . 1 . C l e a r l y , t h e
Gaussians are i n f i n i t e l y d i f f e r e n t i a b l e . S o m e o f i t s d e r i v a t i v e s (as w e l l as t h o s e o f
m a n y o t h e r R B F s ) are c o l l e c t e d i n A p p e n d i x D .
37
38 Meshfree Approximation Methods with MATLAB
A n o t h e r a r g u m e n t t o s h o w t h a t G a u s s i a n s are s t r i c t l y p o s i t i v e d e f i n i t e a n d r a d i a l
S
on R for a n y s t h a t avoids d e a l i n g w i t h F o u r i e r t r a n s f o r m s w i l l b e c o m e a v a i l a b l e
l a t e r . I t w i l l m a k e use o f c o m p l e t e l y m o n o t o n e f u n c t i o n s .
R e c a l l t h a t P r o p e r t y ( 1 ) o f T h e o r e m 3.1 shows t h a t a n y finite n o n - n e g a t i v e l i n -
ear c o m b i n a t i o n o f ( s t r i c t l y ) p o s i t i v e d e f i n i t e f u n c t i o n s is a g a i n ( s t r i c t l y ) p o s i t i v e
d e f i n i t e . M o r e o v e r , w e j u s t saw t h a t G a u s s i a n s are s t r i c t l y p o s i t i v e d e f i n i t e a n d r a -
S
d i a l o n a l l R . N o w , t h e S c h o e n b e r g c h a r a c t e r i z a t i o n o f f u n c t i o n s t h a t are ( s t r i c t l y )
S
p o s i t i v e d e f i n i t e a n d r a d i a l o n a n y R , T h e o r e m 3.8, s t a t e s t h a t all s u c h f u n c t i o n s
are g i v e n as i n f i n i t e l i n e a r c o m b i n a t i o n s o f G a u s s i a n s . T h e r e f o r e , t h e G a u s s i a n s c a n
be v i e w e d as t h e f u n d a m e n t a l m e m b e r o f t h e f a m i l y o f f u n c t i o n s t h a t are s t r i c t l y
S
positive definite and radial on R for a l l s.
Since Gaussians p l a y a c e n t r a l r o l e i n s t a t i s t i c s t h i s is a g o o d p l a c e t o m e n t i o n
t h a t p o s i t i v e d e f i n i t e f u n c t i o n s are u p t o a n o r m a l i z a t i o n $ ( 0 ) = 1 i d e n t i c a l
w i t h characteristic functions of d i s t r i b u t i o n functions i n statistics.
4.2 E x a m p l e 2: L a g u e r r e - G a u s s i a n s
I n o r d e r t o o b t a i n a g e n e r a l i z a t i o n o f G a u s s i a n s w e s t a r t w i t h t h e generalized La-
2
guerre polynomials L % / o f degree n a n d o r d e r s/2 d e f i n e d b y t h e i r R o d r i g u e s f o r m u l a
(see, e.g., f o r m u l a (6.2.1) i n [ A n d r e w s et al. ( 1 9 9 9 ) ] )
tj. s/2 JTl . .
L / 2 ( i ) = i e < n + / 2
V ^ ( " ' ' ) ' "
A n e x p l i c i t f o r m u l a for t h e g e n e r a l i z e d L a g u e r r e p o l y n o m i a l s is
a n d list t h e i r F o u r i e r t r a n s f o r m s as
_ H"ll 2
n n | | 2 l '
N o t e t h a t t h e d e f i n i t i o n o f t h e L a g u e r r e - G a u s s i a n s d e p e n d s o n t h e space d i m e n s i o n
S
s. T h e r e f o r e t h e y are s t r i c t l y p o s i t i v e d e f i n i t e a n d r a d i a l o n R ( a n d b y L e m m a 3.1
C T
also o n R for a n y a < s).
Laguerre-Gaussian f u n c t i o n s for some s p e c i a l choices o f s a n d n are l i s t e d i n
T a b l e 4 . 1 . F i g u r e 4 . 1 shows a L a g u e r r e - G a u s s i a n for s l , n = 2, a n d for s =
2 , n = 2 d i s p l a y e d w i t h a shape p a r a m e t e r e = 3 a n d scaled so t h a t <&(0) = 1.
M o r e o v e r , t h e L a g u e r r e - G a u s s i a n s are i n f i n i t e l y s m o o t h for a l l choices o f n a n d s.
N o t e t h a t t h e L a g u e r r e - G a u s s i a n s ( w h i l e b e i n g s t r i c t l y p o s i t i v e d e f i n i t e func-
t i o n s ) are n o t p o s i t i v e . Since t h e L a g u e r r e - G a u s s i a n s are o s c i l l a t o r y f u n c t i o n s w e
^ 1
4- Examples of Strictly Positive Definite Radial Functions 39
k n o w f r o m T h e o r e m 3.9 t h a t t h e y c a n n o t be s t r i c t l y p o s i t i v e d e f i n i t e a n d r a d i a l o n
s
R for a l l s. W e w i l l e n c o u n t e r these f u n c t i o n s l a t e r i n t h e c o n t e x t o f a p p r o x i m a t e
m o v i n g least squares a p p r o x i m a t i o n (c.f. Chapter 26).
s n = 1 n = 2
Fig. 4.1 Laguerre-Gaussians with s = l,n = 2 (left) and s = 2, n = 2 (right) centered at the
origin.
4.3 E x a m p l e 3: P o i s s o n R a d i a l Functions
A n o t h e r class o f o s c i l l a t o r y f u n c t i o n s t h a t are s t r i c t l y p o s i t i v e d e f i n i t e a n d r a d i a l
s CT
on R (and all R for a < s) w e r e r e c e n t l y s t u d i e d b y F o r n b e r g a n d c o - w o r k e r s (see
[ F o r n b e r g et al. (2004)] a n d also [ F l y e r ( 2 0 0 6 ) ] ) . T h e s e f u n c t i o n s are o f t h e f o r m
*(*> = ^ P . (*<)
^1. t
40 Meshfree Approximation Methods with MATLAB
T h e o r e m 3.6 a n d t h e r e f o r e c a n be v i e w e d as t h e f u n d a m e n t a l m e m b e r o f t h e f a m i l y
S
o f f u n c t i o n s t h a t are s t r i c t l y p o s i t i v e d e f i n i t e a n d r a d i a l o n R for f i x e d s.
S c h o e n b e r g s h o w e d t h a t t h e f u n c t i o n s f 2 are g i v e n b y
s
1 S
w h e r e co -i
s denotes t h e area o f t h e u n i t s p h e r e S**" i n R , a n d da d e n o t e s t h e
s - 1
usual measure o n S ' .
T h e Poisson f u n c t i o n s are a n o t h e r g e n e r a l i z a t i o n o f G a u s s i a n s ( t h e f u n d a m e n t a l
S
s t r i c t l y positive definite radial function o n R for a l l s) since t h e f o l l o w i n g l i m i t -
i n g r e l a t i o n due t o J o h n v o n N e u m a n n h o l d s (see t h e d i s c u s s i o n i n [Schoenberg
(1938a)]):
- 7 - 2
l i m n (rV2s)
s = e .
s>oo
Since t h e P o i s s o n r a d i a l f u n c t i o n s are d e f i n e d i n t e r m s o f Bessel f u n c t i o n s t h e y are
also band-limited, i.e., t h e i r F o u r i e r t r a n s f o r m has c o m p a c t s u p p o r t . I n fact, t h e
F F
F o u r i e r t r a n s f o r m o f <E> i n R , a < s, is g i v e n b y (see [ F l y e r ( 2 0 0 6 ) ] )
s = 2 s = 3 s = 4 s = 5
2
Fig. 4.2 Poisson functions with s = 2 (left) and s 3 (right) centered at the origin in R .
4- Examples of Strictly Positive Definite Radial Functions 41
4.4 E x a m p l e 4: M a t e r n Functions
A f o u r t h e x a m p l e o f s t r i c t l y p o s i t i v e d e f i n i t e f u n c t i o n s is g i v e n b y t h e class o f
Matern functions w h i c h are q u i t e c o m m o n i n t h e s t a t i s t i c s l i t e r a t u r e (see, e.g.,
[ M a t e r n (1986)] or [Stein ( 1 9 9 9 ) ] )
2
(1+11*11)6-11*11 (3 +311*11+ ||a || )e3
4.5 E x a m p l e 5: G e n e r a l i z e d I n v e r s e Multiquadrics
2
Fig. 4.3 Matern functions with B = i (left) and B = ^5 (right) centered at the origin in R .
f u n c t i o n s w e w i l l be able t o s h o w t h a t i n f a c t w e n e e d t o r e q u i r e o n l y 8 > 0, a n d
S
t h e r e f o r e t h e g e n e r a l i z e d inverse m u l t i q u a d r i c s are s t r i c t l y p o s i t i v e d e f i n i t e o n ]R
for a n y s.
T h e " o r i g i n a l " inverse m u l t i q u a d r i c was i n t r o d u c e d b y H a r d y i n t h e e a r l y 1970s
a n d c o r r e s p o n d s t o t h e value 8 1/2. T h e s p e c i a l choice 8=1 was r e f e r r e d t o as
inverse quadratic i n v a r i o u s p a p e r s o f F o r n b e r g a n d c o - w o r k e r s (see, e.g., [Fornberg
a n d W r i g h t ( 2 0 0 4 ) ] ) . T h e s e t w o f u n c t i o n s are d i s p l a y e d i n F i g u r e 4.4 u s i n g a s h a p e
p a r a m e t e r e = 5.
1-. r , 1
Fig. 4.4 Inverse multiquadric (/3 = ^, left) and inverse quadratic (8=1, right) centered at the
2
origin in R .
4.6 E x a m p l e 6: T r u n c a t e d P o w e r Functions
W e n o w present a n e x a m p l e o f a f a m i l y o f s t r i c t l y p o s i t i v e d e f i n i t e f u n c t i o n s w i t h
compact support. N o t e t h a t d u e t o t h e o b s e r v a t i o n m a d e i n T h e o r e m 3.9 a t t h e e n d
S
of t h e p r e v i o u s c h a p t e r , t h e y c a n n o t be s t r i c t l y p o s i t i v e d e f i n i t e o n R for a l l s.
4- Examples of Strictly Positive Definite Radial Functions 43
ipi(r) = ( 1 - r ) i+ (4.7)
s
give rise t o s t r i c t l y p o s i t i v e d e f i n i t e a n d r a d i a l f u n c t i o n s o n M p r o v i d e d I satisfies
t > L f J + 1- F i n d i n g t h e F o u r i e r t r a n s f o r m o f t h e t r u n c a t e d p o w e r f u n c t i o n is
r a t h e r i n v o l v e d . F o r d e t a i l s we refer t o [ W e n d l a n d ( 2 0 0 5 a ) ] . W e w i l l l a t e r use a
s i m p l e r t e s t based o n m u l t i p l y m o n o t o n e f u n c t i o n s t o e s t a b l i s h t h e s t r i c t p o s i t i v e
definiteness o f t h e t r u n c a t e d p o w e r f u n c t i o n s . I n (4.7) we used t h e cutoff function
() + w h i c h is defined b y
x, for x > 0,
0, for x < 0.
T h e c u t o f f f u n c t i o n c a n be i m p l e m e n t e d c o n v e n i e n t l y i n M A T L A B u s i n g t h e max
f u n c t i o n , i.e., i f f x is a v e c t o r o f f u n c t i o n values o f / for d i f f e r e n t choices o f x, t h e n
m a x ( f x , 0 ) c o m p u t e s (f(x)) . + W e also p o i n t o u t t h a t t h e expressions o f t h e f o r m
( 1 r) e
+ are t o be i n t e r p r e t e d as ( ( 1 r)+)*, i.e., we first a p p l y t h e c u t o f f f u n c t i o n ,
and then the power.
T w o different t r u n c a t e d p o w e r f u n c t i o n s ( w i t h i = 2 , 4 ) are d i s p l a y e d i n F i g -
u r e 4.5. W h i l e n o n e o f t h e t r u n c a t e d p o w e r f u n c t i o n s are d i f f e r e n t i a b l e a t t h e o r i g i n ,
t h e s m o o t h n e s s a t t h e b o u n d a r y o f t h e s u p p o r t increases w i t h I .
Fig. 4.5 Truncated power function with i = 2 (left) and = 4 (right) centered at the origin in
4.7 E x a m p l e 7: P o t e n t i a l s a n d W h i t t a k e r R a d i a l F u n c t i o n s
(4.8)
^1 it.
44 Meshfree Approximation Methods with MATLAB
s
T h e n <& = ip(\\ ||) is s t r i c t l y p o s i t i v e d e f i n i t e a n d r a d i a l o n E p r o v i d e d k > |_|J + 2
(see also T h e o r e m 5.5 b e l o w ) . T h i s c a n be v e r i f i e d b y c o n s i d e r i n g t h e quadratic
form
N N oo N N
- 1
EEw^ *!^ /
3= 1 k=l J
3= 1
c
^2^2 jCkVk-i(t\\xj
k=l
-x \\)f(t)dt
k
w h i c h is n o n - n e g a t i v e since t h e t r u n c a t e d p o w e r f u n c t i o n ^ _ i ( | | | | ) is s t r i c t l y
p o s i t i v e d e f i n i t e b y E x a m p l e 6, a n d / is n o n - n e g a t i v e . Since / is also a s s u m e d t o
be n o t i d e n t i c a l l y e q u a l t o zero, t h e o n l y w a y for t h e q u a d r a t i c f o r m t o e q u a l zero
is i f c = 0 , a n d therefore ip is s t r i c t l y p o s i t i v e d e f i n i t e .
For e x a m p l e , i f we t a k e f(t) = t@, 8 > 0, t h e n we get
- r(fc)r(/3 + 1 )
{ X } ( 4 9 )
~ T{k + 8 + l)\\x\\^- -
W h i l e these f u n c t i o n s are s t r i c t l y p o s i t i v e d e f i n i t e a n d r a d i a l t h e y are also s i n g u l a r
a t t h e o r i g i n a n d therefore n o t useful for o u r p u r p o s e s . H o w e v e r , these f u n c t i o n s
are u p t o s c a l i n g g e n e r a l i z a t i o n s o f t h e Coulomb potential (for 3 = 0 ) , a n d
c a n therefore be g i v e n a p h y s i c a l i n t e r p r e t a t i o n .
a 1
A n o t h e r p o s s i b i l i t y is t o t a k e f(t) = t e~^ , a > 0,/5 > 0. T h e n we get
$ f x = |Ml t f c Q )
- ^r(i+a)r fc) -^ ( e x u 1 Q )
* W /3i+(fc+)/2r(fc+<*+2) e x
i *-- ; L U
(kM ^ ,(k+a+l)/2
{a k)/2 (|Tij) + ( l + o ) M i _ ( f c _ )/
a 2 i ( f c + Q + i)/2 (|NT)) "
Here M M ) I / is t h e W h i t t a k e r - M f u n c t i o n , a c o n f l u e n t h y p e r g e o m e t r i c f u n c t i o n (see,
e.g., Chapter 13 o f [ A b r a m o w i t z a n d S t e g u n (1972)]). W h e n v is a h a l f - i n t e g e r
( w h i c h is, e.g., t h e case for integer k a n d a) f o r m u l a (4.10) s i m p l i f i e s s i g n i f i c a n t l y .
E x a m p l e s for v a r i o u s integer values o f k a n d a are l i s t e d i n T a b l e 4.4. N o t e t h a t
these f u n c t i o n s are n o t defined a t t h e o r i g i n . H o w e v e r , t h e y c a n be m a d e ( o n l y )
c o n t i n u o u s a t t h e o r i g i n . P l o t s o f t w o o f these f u n c t i o n s are p r o v i d e d i n F i g u r e 4.6.
N o t e t h a t o n l y t h e f u n c t i o n s for k > 3 are g u a r a n t e e d t o be s t r i c t l y p o s i t i v e d e f i n i t e
3
and r a d i a l on IR .
Table 4.4 Whittaker radial functions <I> for various choices of k and a.
a fc = 2 fc = 3
2 2
P- 2||a;| + (/? + 2 | | * | | ) e ~ T W 2
P - 4/3j *|| + 6 | x\\
2
- (2/3\\x\\ + 6 | | * | | ) e " T i r 2
1
3 i
P P
Fig. 4.6 Whittaker radial functions for a = 0 and 3 = 1 with k = 2 (left) and k = 3 (right)
2
centered at the origin in R .
4.8 E x a m p l e 8: I n t e g r a t i o n A g a i n s t S t r i c t l y P o s i t i v e
Definite K e r n e l s
<p{r)= / K(t,r)f(t)dt
Jo
S
gives rise t o $ = tp(\\ ||) b e i n g s t r i c t l y p o s i t i v e definite o n R . B y c h o o s i n g / and
K a p p r o p r i a t e l y we can o b t a i n b o t h g l o b a l l y s u p p o r t e d a n d c o m p a c t l y supported
functions.
For example, t h e m u l t i p l y m o n o t o n e f u n c t i o n s i n W i l l i a m s o n ' s c h a r a c t e r i z a t i o n
1
T h e o r e m 5.4 are covered b y t h i s general t h e o r e m b y t a k i n g K(t, r) = (l rt)^T and
/ a n a r b i t r a r y p o s i t i v e f u n c t i o n i n L \ so t h a t dfi(t) = f(t)dt. Also, functions t h a t
S
are s t r i c t l y p o s i t i v e definite a n d r a d i a l o n R for a l l s (or e q u i v a l e n t l y c o m p l e t e l y
rt
m o n o t o n e f u n c t i o n s ) are covered b y c h o o s i n g K(t,r) = e~ .
4.9 Summary
T o s u m m a r i z e t h e t h e o r y s u r v e y e d t h u s far w e c a n say t h a t a n y m u l t i v a r i a t e ( r a d i a l )
f u n c t i o n $ whose F o u r i e r t r a n s f o r m is n o n - n e g a t i v e can be used t o g e n e r a t e a basis
for t h e s c a t t e r e d d a t a i n t e r p o l a t i o n p r o b l e m b y s h i f t i n g i t t o t h e d a t a sites. The
f u n c t i o n $ can be p o s i t i v e , o s c i l l a t o r y , o r have c o m p a c t s u p p o r t . H o w e v e r , i f $ has
S
any zeros t h e n i t c a n n o t be s t r i c t l y p o s i t i v e d e f i n i t e o n R for a l l choices of s.
Chapter 5
W e b e g i n w i t h t h e f o r m e r case. T o t h i s e n d we n o w i n t r o d u c e a class o f f u n c t i o n s
t h a t is v e r y closely r e l a t e d t o p o s i t i v e d e f i n i t e r a d i a l f u n c t i o n s a n d leads t o a s i m p l e
c h a r a c t e r i z a t i o n o f such f u n c t i o n s .
_ e r
E x a m p l e 5 . 2 . T h e f u n c t i o n </?(r) = e , e > 0, is c o m p l e t e l y m o n o t o n e o n [ 0 , o o )
since
W r
(-l)V ( r ) = e e- > 0, t = 0,1,2,....
Some p r o p e r t i e s o f c o m p l e t e l y m o n o t o n e f u n c t i o n s t h a t c a n be f o u n d i n [Cheney
a n d L i g h t (1999); Feller ( 1 9 6 6 ) ; W i d d e r (1941)] are:
(1) A non-negative f i n i t e l i n e a r c o m b i n a t i o n o f c o m p l e t e l y m o n o t o n e f u n c t i o n s is
completely monotone.
(2) T h e p r o d u c t o f t w o c o m p l e t e l y m o n o t o n e f u n c t i o n s is c o m p l e t e l y m o n o t o n e .
47
48 Meshfree Approximation Methods with M A T L A B
T h e o r e m 5.2. A function <p is completely monotone on [0, oo) if and only if <> =
2 s
<p(\\ \\ ) is positive definite and radial on R for all s.
2
w i t h a finite n o n - n e g a t i v e B o r e l m e a s u r e / i . T h e r e f o r e , <&(x) = <^(||cc|j ) has the
representation
/OO
Jo
s
T o see t h a t t h i s f u n c t i o n is p o s i t i v e d e f i n i t e o n a n y R w e consider t h e q u a d r a t i c
form
N N r oo N N
j=l k=l J
j=l k=l
_ e r
E x a m p l e 5.4. Since we showed above t h a t t h e f u n c t i o n s <p(r) = e , s > 0, a n d
p(r) = 1 / ( 1 + r)@, 8 > 0, are c o m p l e t e l y m o n o t o n e o n [0, o o ) , a n d since t h e y are
2
also n o t c o n s t a n t we k n o w f r o m T h e o r e m 5.3 t h a t t h e Gaussians <&(cc) = <>(||cc|| ) =
2 2
e - ^ I M I ^ e > 0, a n d inverse m u l t i q u a d r i c s $(cc) = ^ ( | | a ; | | ) = 1 / ( 1 + | | c c | | ) ^ , 8 > 0,
s
are s t r i c t l y p o s i t i v e d e f i n i t e a n d r a d i a l o n R. for a l l s. N o t o n l y is t h e test for
c o m p l e t e m o n o t o n i c i t y a s i m p l e r one t h a n c a l c u l a t i o n o f t h e F o u r i e r t r a n s f o r m s ,
b u t we also are able t o v e r i f y s t r i c t p o s i t i v e definiteness o f t h e inverse m u l t i q u a d r i c s
w i t h o u t a n y dependence o f s o n 8.
r r 2 r i r
Since c o n v e x i t y o f tp m e a n s t h a t < ^ ( i + ) < ^ ( ) + ^ ( 2 ) ; o r s i p l y p"(r)
m > 0 if
ip" exists, a m u l t i p l y m o n o t o n e f u n c t i o n is i n essence j u s t a c o m p l e t e l y m o n o t o n e
f u n c t i o n whose m o n o t o n i c i t y is " t r u n c a t e d " .
E x a m p l e 5 . 5 . T h e t r u n c a t e d p o w e r f u n c t i o n (c.f. (4.7))
e
<Pi(r) = (1 - r) +
W e saw i n S e c t i o n 4.6 t h a t t h e t r u n c a t e d p o w e r f u n c t i o n s l e a d t o r a d i a l f u n c t i o n s
s
t h a t are s t r i c t l y p o s i t i v e d e f i n i t e o n R p r o v i d e d > [s/2\ + 1.
E x a m p l e 5 . 6 . I f w e define t h e i n t e g r a l o p e r a t o r I b y
/OO
1
p(r)= / (l-r*)*- ^*), (5.2)
( a n d is e q u i v a l e n t p r o v i d e d we e x t e n d W i l l i a m s o n ' s w o r k t o i n c l u d e c o n t i n u i t y a t
the origin).
W e c a n see f r o m Sections 4.6 a n d 4.7 t h a t m u l t i p l y m o n o t o n e f u n c t i o n s give rise
to positive definite r a d i a l functions. S u c h a c o n n e c t i o n was first n o t e d i n [ A s k e y
(1973)] ( a n d i n t h e o n e - d i m e n s i o n a l case b y P o l y a ) u s i n g t h e t r u n c a t e d p o w e r func-
t i o n s o f S e c t i o n 4.6.
I n t h e R B F l i t e r a t u r e t h e f o l l o w i n g t h e o r e m was s t a t e d i n [ M i c c h e l l i ( 1 9 8 6 ) ] ,
a n d t h e n refined i n [ B u h m a n n (1993a)]:
2 e
F^(r) = - 7 = f / (1 - t ) t^J_ (rt)dt
+ 1/2
vi Jo 1
= \/f J
1
(1 - t )2 e
cos(rt)dt
52 Meshfree Approximation Methods with M A T L A B
As we m e n t i o n e d i n t h e i n t r o d u c t i o n i t is n o t a n easy m a t t e r t o use p o l y n o m i a l s
t o p e r f o r m m u l t i v a r i a t e s c a t t e r e d d a t a i n t e r p o l a t i o n . O n l y i f t h e d a t a sites are i n
c e r t a i n special l o c a t i o n s c a n we g u a r a n t e e well-posedness o f m u l t i v a r i a t e p o l y n o m i a l
i n t e r p o l a t i o n . W e n o w address t h i s p r o b l e m .
S
D e f i n i t i o n 6 . 1 . W e c a l l a set o f p o i n t s X = {x\,... ,x^} C R m-unisolvent if
t h e o n l y p o l y n o m i a l o f t o t a l degree at m o s t m i n t e r p o l a t i n g zero d a t a o n X is t h e
zero p o l y n o m i a l .
T h i s d e f i n i t i o n guarantees a u n i q u e s o l u t i o n for i n t e r p o l a t i o n t o g i v e n d a t a at a
subset o f c a r d i n a l i t y M = ( * ) m s
f t n e
p o i n t s x \ , . . . , XN b y a p o l y n o m i a l o f degree
m. Here M is t h e d i m e n s i o n o f t h e linear space o f p o l y n o m i a l s o f t o t a l degree
less t h a n or equal t o m i n s variables.
S
For p o l y n o m i a l i n t e r p o l a t i o n a t N d i s t i n c t d a t a sites i n R t o be a w e l l - p o s e d
p r o b l e m , t h e p o l y n o m i a l degree needs t o be chosen a c c o r d i n g l y , i.e., we need M =
N, a n d t h e d a t a sites need t o f o r m a n m - u n i s o l v e n t set. T h i s is r a t h e r r e s t r i c t i v e .
2
For example, t h i s i m p l i e s t h a t p o l y n o m i a l i n t e r p o l a t i o n at N = 7 points i n R
can n o t be done i n a u n i q u e w a y since we c o u l d either a t t e m p t t o use b i v a r i a t e
q u a d r a t i c p o l y n o m i a l s (for w h i c h M = 6 ) , or b i v a r i a t e c u b i c p o l y n o m i a l s ( w i t h
M = 10). T h e r e exists n o space o f b i v a r i a t e p o l y n o m i a l s for w h i c h M = 7.
W e w i l l see i n t h e n e x t c h a p t e r t h a t m - u n i s o l v e n t sets p l a y a n i m p o r t a n t role i n
t h e c o n t e x t o f c o n d i t i o n a l l y p o s i t i v e definite f u n c t i o n s . T h e r e , however, even t h o u g h
we w i l l be interested i n i n t e r p o l a t i n g N pieces o f d a t a , t h e p o l y n o m i a l degree w i l l
be s m a l l ( u s u a l l y m = 1, 2, 3 ) , a n d t h e r e s t r i c t i o n s i m p o s e d o n t h e l o c a t i o n s o f t h e
d a t a sites b y t h e u n i s o l v e n c y c o n d i t i o n s w i l l be r a t h e r m i l d .
A sufficient c o n d i t i o n ( t o be f o u n d i n [ C h u i (1988)], C h . 9) o n t h e points
X \ , . . . , xpj t o f o r m a n m - u n i s o l v e n t set i n R 2
is
2
T h e o r e m 6 . 1 . Suppose {Lo,..., L m } is a set o / m + 1 distinct lines in R , and that
U = . . . , UM} is a set of M = ( m + l ) ( m + 2 ) / 2 distinct points such that the
53
54 Meshfree Approximation Methods with M A T L A B
first point lies on L Q , the next two points lie on L \ but not on L Q , and so on, so that
the last m + 1 points lie on L m but not on any of the previous lines LQ, . . . , L m _ i .
Then there exists a unique interpolation polynomial of total degree at most m to
arbitrary data given at the points in U. Furthermore, if the data sites {x,..., x^}
2
contain U as a subset then they form an m-unisolvent set on R .
Proof. W e use i n d u c t i o n o n m . F o r m = 0 t h e r e s u l t is t r i v i a l . T a k e R t o be t h e
m a t r i x a r i s i n g f r o m p o l y n o m i a l i n t e r p o l a t i o n a t t h e p o i n t s i n IA, i.e.,
p(t*i)=0, i = l,...,M,
t h e n p is t h e zero p o l y n o m i a l .
For each i = 1 , . . . , m, let t h e e q u a t i o n o f t h e l i n e Li be g i v e n b y
OHX + fay = 7 i ,
2
w h e r e x = (x, y) R .
Suppose n o w t h a t p i n t e r p o l a t e s zero d a t a at a l l t h e p o i n t s U i as s t a t e d above.
Since p reduces t o a u n i v a r i a t e p o l y n o m i a l o f degree m o n L m w h i c h vanishes a t
m + 1 distinct points on L m , i t follows t h a t p vanishes i d e n t i c a l l y o n L m , a n d so
p(x, y) = (a xm + 3y
m - ~/m)q(x, y),
w h e r e q is a p o l y n o m i a l o f degree m 1. B u t n o w q satisfies t h e h y p o t h e s i s o f t h e
x
t h e o r e m w i t h m r e p l a c e d b y m 1 a n d U r e p l a c e d b y U c o n s i s t i n g o f t h e first ( " ^ )
p o i n t s o f U. B y i n d u c t i o n , therefore q = 0, a n d t h u s p = 0. T h i s establishes t h e
uniqueness o f t h e i n t e r p o l a t i o n p o l y n o m i a l . T h e l a s t s t a t e m e n t o f t h e t h e o r e m is
obvious.
A s i m i l a r t h e o r e m was a l r e a d y p r o v e d i n [ C h u n g a n d Y a o ( 1 9 7 7 ) ] . T h e o r e m 6.1
S
c a n be generalized t o R b y using hyperplanes. T h e p r o o f is c o n s t r u c t e d w i t h t h e
h e l p o f a n a d d i t i o n a l i n d u c t i o n o n s. C h u i also gives a n e x p l i c i t expression for t h e
d e t e r m i n a n t o f t h e m a t r i x associated w i t h ( p o l y n o m i a l ) i n t e r p o l a t i o n a t t h e set o f
p o i n t s U.
R e m a r k 6.1. F o r l a t e r reference w e n o t e t h a t ( m l ) - u n i s o l v e n c y o f t h e p o i n t s
x\,..., XN is e q u i v a l e n t t o t h e fact t h a t t h e m a t r i x P w i t h
has f u l l ( c o l u m n - ) r a n k . F o r N = M t h i s is t h e p o l y n o m i a l i n t e r p o l a t i o n m a t r i x .
2
Example 6.1. A s can easily be v e r i f i e d , t h r e e c o l l i n e a r p o i n t s i n R are n o t 1-
u n i s o l v e n t , since a linear i n t e r p o l a n t , i.e., a p l a n e t h r o u g h t h r e e a r b i t r a r y h e i g h t s
a t these t h r e e c o l l i n e a r p o i n t s is n o t u n i q u e l y d e t e r m i n e d . O n t h e o t h e r h a n d , i f a
2
set o f p o i n t s i n R c o n t a i n s t h r e e n o n - c o l l i n e a r p o i n t s , t h e n i t is 1-unisolvent.
x 4-
6. Scattered Data Interpolation with Polynomial Precision 55
6.2 E x a m p l e : R e p r o d u c t i o n of L i n e a r F u n c t i o n s U s i n g
Gaussian RBFs
I f we do insist o n r e p r o d u c t i o n o f l i n e a r f u n c t i o n s t h e n t h e t o p p a r t o f F i g u r e 6.1
shows a Gaussian R B F i n t e r p o l a n t (e = 6) t o t h e b i v a r i a t e l i n e a r f u n c t i o n f(x,y) =
(x + y)/2 based o n 1089 u n i f o r m l y spaced p o i n t s i n t h e u n i t square a l o n g w i t h
t h e absolute error. C l e a r l y t h e i n t e r p o l a n t is n o t c o m p l e t e l y p l a n a r n o t even t o
m a c h i n e precision.
F o r t u n a t e l y , t h e r e is a s i m p l e r e m e d y for t h i s p r o b l e m . A l l we need t o d o
is a d d t h e p o l y n o m i a l f u n c t i o n s x i> 1, x i x, and x t> y t o the- basis
_ e - X l _ e - X J V
{e H' H ,...,e H' H } we have t h u s far been u s i n g t o o b t a i n o u r i n t e r -
polant. However, n o w we have N + 3 u n k n o w n s , n a m e l y t h e coefficients c,
k
k = 1 , . . . , N + 3, i n t h e e x p a n s i o n
N
e 2 x 2 2
V (x)
f = ^ 2 c e - k ^ - ^ + c N + 1 + c N + 2 x + c N + 3 y, x = {x,y) e M ,
fc=i
a n d we have o n l y N c o n d i t i o n s t o d e t e r m i n e t h e m , n a m e l y t h e i n t e r p o l a t i o n con-
ditions
V {x )
S 3 = f( ) Xj = ( Xj + )/2,Vj j = 1 , . . . , N.
W h a t can we do t o o b t a i n a ( n o n - s i n g u l a r ) square system? A s we w i l l see b e l o w ,
we can a d d t h e f o l l o w i n g t h r e e c o n d i t i o n s :
N
^ c f c = 0,
fc=i
56 Meshfree Approximation Methods with M A T L A B
^CkXk = 0,
fc=l
N
y^c ?/fc = o.
fc
fc=i
How do we have t o m o d i f y o u r e x i s t i n g M A T L A B p r o g r a m for s c a t t e r e d data
i n t e r p o l a t i o n t o i n c o r p o r a t e these m o d i f i c a t i o n s ? I f we p r e v i o u s l y d e a l t w i t h t h e
solution of
Ac = y,
T
with A jk = e -e*\\ - \\^
Xj Xk j k = i , . . . c = [ C l ,... ) C 7 v] , and y =
t
[ / ( c c i ) , . . . , / ( C J V ) ] , t h e n we n o w have t o solve t h e augmented system
' A P~ c V
(6.1)
P T
O d 0
P r o g r a m 6 . 1 . R B F I n t e r p o l a t i o n 2 D l i n e a r .m
/ R B F I n t e r p o l a t i o n 2 D l i n e a r
0
% S c r i p t t h a t performs 2D RBF i n t e r p o l a t i o n w i t h r e p r o d u c t i o n of
% l i n e a r functions
% C a l l s on: D i s t a n c e M a t r i x
% Define t h e Gaussian RBF and shape parameter
1 r b f = @(e,r) e x p ( - ( e * r ) . ~ 2 ) ; ep = 6;
% Define l i n e a r t e s t f u n c t i o n
2 t e s t f u n c t i o n = @(x,y) (x+y)/2;
% Number and type of d a t a p o i n t s
5
3 N = 9; g r i d t y p e = ' u ;
% Load d a t a p o i n t s
5
4 name = s p r i n t f ( Data2D_y d%s' ,N, g r i d t y p e ) ; l o a d (name)
o
5 ctrs = dsites;
6 neval = 4 0 ; M = neval~2; g r i d = l i n s p a c e ( 0 , 1 , n e v a l ) ;
7 [xe.ye] = m e s h g r i d ( g r i d ) ; e p o i n t s = [ x e ( : ) y e ( : ) ] ;
% Evaluate the t e s t function a t the data p o i n t s .
8 rhs = testfunction(dsites(:,1).dsites(:,2));
6. Scattered Data Interpolation with Polynomial Precision 57
/ Add z e r o s f o r l i n e a r (2D) r e p r o d u c t i o n
0
9 rhs = [rhs; z e r o s ( 3 , l ) ] ;
% Compute d i s t a n c e m a t r i x between t h e d a t a s i t e s and c e n t e r s
10 DM_data = D i s t a n c e M a t r i x ( d s i t e s , c t r s ) ;
% Compute i n t e r p o l a t i o n m a t r i x
11 IM = rbf(ep,DM_data);
% Define 3-column m a t r i x P f o r l i n e a r r e p r o d u c t i o n
12 PM = [ones(N.l) d s i t e s ] ;
% Augment i n t e r p o l a t i o n m a t r i x
J
13 IM = [IM PM; [PM z e r o s ( 3 , 3 ) ] ] ;
% Compute d i s t a n c e m a t r i x between e v a l u a t i o n p o i n t s and c e n t e r s
14 DM_eval = D i s t a n c e M a t r i x ( e p o i n t s , c t r s ) ;
% Compute e v a l u a t i o n m a t r i x
15 EM = rbf(ep,DM_eval);
% Add column f o r constant r e p r o d u c t i o n
16 PM = [ones(M,l) e p o i n t s ] ; EM = [EM PM];
/ Compute RBF i n t e r p o l a n t
0
% ( e v a l u a t i o n matrix * s o l u t i o n of i n t e r p o l a t i o n system)
17 Pf = EM * ( I M \ r h s ) ;
/ Compute maximum e r r o r on e v a l u a t i o n g r i d
0
18 exact = t e s t f u n c t i o n ( e p o i n t s ( : , 1 ) , e p o i n t s ( : , 2 ) ) ;
19 maxerr = n o r m ( P f - e x a c t , i n f ) ;
20 rms_err = norm(Pf-exact)/neval;
21 fprintf('RMS e r r o r : %e\n', rms_err)
5
22 fprintf('Maximum e r r o r : % e \ n , maxerr)
23 fview = [-30,30];
24 plotsurf(xe,ye,Pf,neval,exact,maxerr,fview);
25 ploterror2D(xe,ye,Pf,exact,maxerr,neval,fview);
Fig. 6.1 Top: Gaussian interpolant to bivariate linear function with N = 1089 (left) and as-
sociated abolute error (right). Bottom: Interpolant based on linearly augmented Gaussians to
bivariate linear function with N = 9 (left) and associated abolute error (right).
" A P~ c y
(6.3)
d 0
9 rhs = [rhs; 0 ] ;
12 PM = o n e s ( N , l ) ;
13 IM = [IM PM; [PM' 0 ] ] ;
16 PM = ones(M,l); EM = [EM PM];
a n d for r e p r o d u c t i o n o f b i v a r i a t e q u a d r a t i c p o l y n o m i a l s we c a n use
W e n o w need t o i n v e s t i g a t e w h e t h e r t h e a u g m e n t e d s y s t e m m a t r i x i n (6.3) is n o n -
singular. T h e special case m = 1 ( i n a n y space d i m e n s i o n s), i.e., r e p r o d u c t i o n o f
constants, is covered b y s t a n d a r d results f r o m l i n e a r algebra, a n d w e discuss i t f i r s t .
for a l l c = [ c i , . . . , C N ] T
R N
t h a t satisfy
3= 1
3= 1
T
Proof. A s s u m e [c, d] is a s o l u t i o n o f t h e homogeneous l i n e a r system, i.e., with
T T
y = 0 . W e show t h a t [c, d] = 0 is t h e o n l y possible s o l u t i o n .
T
M u l t i p l i c a t i o n o f t h e t o p b l o c k o f t h e (homogeneous) l i n e a r s y s t e m b y c yields
T T
c Ac + dc P = 0.
T T
F r o m t h e b o t t o m b l o c k o f t h e s y s t e m we k n o w P c = cP = 0, a n d therefore
T
c Ac = 0.
Since t h e m a t r i x A is c o n d i t i o n a l l y p o s i t i v e d e f i n i t e o f o r d e r one b y a s s u m p t i o n we
get t h a t c = 0 . F i n a l l y , t h e t o p b l o c k o f t h e h o m o g e n e o u s linear s y s t e m u n d e r
c o n s i d e r a t i o n states t h a t
Ac + dP = 0,
so t h a t c = 0 a n d t h e fact t h a t P is a v e c t o r o f ones i m p l y d = 0.
6. Scattered Data Interpolation with Polynomial Precision 61
for a n y N p a i r w i s e d i s t i n c t p o i n t s x \ , . . . , XN R , a n d c = [ c i , . . . , c y v ]
S T
& N
satisfying
N
^2cjP(xj) = 0,
3= 1
for any c o m p l e x - v a l u e d p o l y n o m i a l p o f degree at m o s t m 1. T h e f u n c t i o n <E> is
S
called strictly conditionally positive definite of order m on 1R. i f t h e q u a d r a t i c f o r m
(7.1) is zero o n l y for c = 0.
A n i m m e d i a t e o b s e r v a t i o n is
63
64 Meshfree Approximation Methods with M A T L A B
satisfying
N
^r p( ) Cj Xj = 0,
3= 1
for any real-valued polynomial p of degree at most m 1. The function <fr is called
s
s t r i c t l y conditionally positive definite of order m on M if the quadratic form (7.2)
is zero only for c = 0.
T
Proof. T h e p r o o f is a l m o s t i d e n t i c a l t o t h e p r o o f o f T h e o r e m 6.2. A s s u m e [c, d]
is a s o l u t i o n o f t h e homogeneous l i n e a r s y s t e m , i.e., w i t h y = 0. W e show that
T
[c, d] = 0 is t h e o n l y possible s o l u t i o n .
T
Multiplication of the top block by c yields
T T
c Ac + c Pd = 0.
T T T
F r o m t h e b o t t o m b l o c k o f (6.3) we k n o w P c 0. T h i s implies c P = 0 , and
therefore
T
c Ac = 0. (7.3)
7. Conditionally Positive Definite Functions 65
Since t h e f u n c t i o n $ is s t r i c t l y c o n d i t i o n a l l y p o s i t i v e d e f i n i t e o f o r d e r m b y a s s u m p -
T
t i o n we k n o w t h a t t h e q u a d r a t i c f o r m o f A ( w i t h coefficients such t h a t P c = 0)
above is zero o n l y for c = 0. T h e r e f o r e (7.3) tells us t h a t c = 0. T h e u n i s o l v e n c y o f
t h e d a t a sites, i.e., t h e l i n e a r independence o f t h e c o l u m n s o f P (c.f. R e m a r k 6.1),
a n d t h e fact t h a t c = 0 g u a r a n t e e d = 0 f r o m t h e t o p b l o c k
Ac + Pd = 0
of (6.3).
T h e o r e m 7.3 states t h a t s t r i c t l y c o n d i t i o n a l l y p o s i t i v e d e f i n i t e f u n c t i o n s o n W
are characterized b y t h e o r d e r o f t h e s i n g u l a r i t y o f t h e i r generalized F o u r i e r t r a n s -
f o r m at t h e o r i g i n , p r o v i d e d t h a t t h i s generalized F o u r i e r t r a n s f o r m is n o n - n e g a t i v e
a n d non-zero.
Since i n t e g r a l c h a r a c t e r i z a t i o n s s i m i l a r t o Schoenberg's T h e o r e m s 3.6 a n d 3.8
are so c o m p l i c a t e d i n t h e c o n d i t i o n a l l y p o s i t i v e d e f i n i t e case we do n o t p u r s u e t h e
concept o f a c o n d i t i o n a l l y p o s i t i v e definite r a d i a l f u n c t i o n here. The interested
reader is referred t o [ G u o et al. (1993a)] for details. W e w i l l discuss some e x a m -
ples o f r a d i a l f u n c t i o n s v i a t h e F o u r i e r t r a n s f o r m a p p r o a c h i n t h e n e x t c h a p t e r ,
a n d i n C h a p t e r 9 we w i l l e x p l o r e t h e c o n n e c t i o n between c o m p l e t e l y a n d m u l t i p l y
m o n o t o n e f u n c t i o n s a n d c o n d i t i o n a l l y p o s i t i v e definite r a d i a l f u n c t i o n s .
1
Chapter 8
8.1 E x a m p l e 1: G e n e r a l i z e d M u l t i q u a d r i c s
T h e generalized multiquadrics
2 0 s
$(x) = ( l + WxW ) , x e R, 3 e R \ N ,
0 (8.1)
have generalized F o u r i e r t r a n s f o r m s
9I+/3
/ 3 s / 2
<&M = f 7z^ii^ir - ^ / 3 + s /2(ii^ii)> # ,
67
68 Meshfree Approximation Methods with M A T L A B
Fig. 8.1 Hardy's multiquadric with 3 = | (left) and a generalized multiquadric with 3 = |
2
(right) centered at the origin in R .
8.2 E x a m p l e 2: R a d i a l P o w e r s
T h e radial powers
S
{x) = \\x\f, x e 3R , 0 < 3 2 N , (8.2)
have generalized F o u r i e r t r a n s f o r m s
20+S/2Y(S0\
= L_2j.|| ,||-/3-*
a u=AO
{ J 11 11
T(-3/2) ' ^ '
of order m = \3/2~\. Therefore, the functions
$(x) = ( - 1 ) ^ / 2 1 \\xf, 0</32N,
are s t r i c t l y c o n d i t i o n a l l y p o s i t i v e d e f i n i t e o f o r d e r m = \8/2~\ ( a n d h i g h e r ) .
T h i s shows t h a t t h e basic f u n c t i o n $(cc) = ||a?||2 used for t h e d i s t a n c e m a t r i x
fits i n t h e i n t r o d u c t o r y c h a p t e r are s t r i c t l y c o n d i t i o n a l l y p o s i t i v e d e f i n i t e o f o r d e r
one. A c c o r d i n g t o T h e o r e m 7.2 we s h o u l d have used these basic f u n c t i o n s t o g e t h e r
w i t h an a p p e n d e d c o n s t a n t . H o w e v e r , T h e o r e m 9.7 b e l o w p r o v i d e s t h e j u s t i f i c a t i o n
for t h e i r use as a p u r e distance m a t r i x .
I n F i g u r e 8.2 we show r a d i a l cubics {3 = 3, i.e., s t r i c t l y c o n d i t i o n a l l y p o s i t i v e
definite of o r d e r 2) a n d q u i n t i c s (8 = 5, i.e., s t r i c t l y c o n d i t i o n a l l y p o s i t i v e d e f i n i t e
of order 3 ) .
N o t e t h a t we h a d t o exclude even powers i n ( 8 . 2 ) . T h i s is clear since a n even
power c o m b i n e d w i t h t h e square r o o t i n t h e d e f i n i t i o n o f t h e E u c l i d e a n n o r m results
i n a p o l y n o m i a l a n d we have a l r e a d y d e c i d e d t h a t p o l y n o m i a l s c a n n o t be used
for i n t e r p o l a t i o n at a r b i t r a r i l y s c a t t e r e d m u l t i v a r i a t e sites.
N o t e t h a t r a d i a l powers are n o t affected b y a s c a l i n g o f t h e i r a r g u m e n t . I n o t h e r
w o r d s , r a d i a l powers are shape parameter free. T h i s has t h e advantage t h a t t h e
user need n o t w o r r y a b o u t f i n d i n g a " g o o d " value o f e. O n t h e o t h e r h a n d , w e w i l l
see below t h a t r a d i a l powers w i l l n o t be able t o achieve t h e s p e c t r a l convergence
rates t h a t are possible w i t h some o f t h e o t h e r basic f u n c t i o n s such as Gaussians a n d
generalized (inverse) m u l t i q u a d r i c s .
2
Fig. 8.2 Radial cubic (left) and quintic (right) centered at the origin in R .
70 Meshfree Approximation Methods with M A T L A B
8.3 E x a m p l e 3: T h i n P l a t e Splines
have generalized F o u r i e r t r a n s f o r m s
0 + 1 2 l 3 1 + s 2 s 213
= {-l) 2 - / r(B + s/2)8\\\u>\\- -
of o r d e r m = 3 + 1. T h e r e f o r e , t h e f u n c t i o n s
+ 1 2
$(x) = (-l)0 ||x|| 01og||a;||, /?GN,
are s t r i c t l y c o n d i t i o n a l l y p o s i t i v e d e f i n i t e o f o r d e r m = 3 + 1. I n p a r t i c u l a r , we can
use
N
2 2
Vf(x) = "Y^CkHx - c c | | l o g ||cc - x \\
fc k + di + d x 2 + d y, 3 x = (x,y) G R,
fc=i
together w i l l the constraints
N N N
Fig. 8.3 "Classical" thin plate spline (left) and order 3 thin plate spline (right) centered at the
2
origin in R .
2
T h e o r e m 9 . 1 . Let p> G C [ 0 , oo) n C ( 0 , o o ) . Then the function $ = p(\\ | | ) is
S
conditionally positive definite of order m and radial on R for all s if and only if
m m
(l) <>( ) is completely monotone on ( 0 , o o ) .
Proof. T h e fact t h a t c o m p l e t e m o n o t o n i c i t y i m p l i e s c o n d i t i o n a l p o s i t i v e d e f i n i t e -
ness was p r o v e d i n [ M i c c h e l l i (1986)]. M i c c h e l l i also c o n j e c t u r e d t h a t t h e converse
holds a n d gave a s i m p l e p r o o f for t h i s i n t h e case m = 1. For m = 0 t h i s is Schoen-
S
berg's c h a r a c t e r i z a t i o n o f p o s i t i v e definite r a d i a l functions o n R for a l l s i n t e r m s o f
c o m p l e t e l y m o n o t o n e f u n c t i o n s ( T h e o r e m 5.2). T h e r e m a i n i n g p a r t o f t h e t h e o r e m
is s h o w n i n [Guo et al. (1993a)].
73
74 Meshfree Approximation Methods with M A T L A B
E x a m p l e 9.1. T h e f u n c t i o n s
imply
r / 3 1 e
^)(r) = (-l) W - 1) [8 - I + 1 ) ( 1 + rf-
so t h a t
(_i)r/3i^(r/3i) ( r ) ( / 5 _ ^ + 1 ) ( i + r ) /3-r/3i
E x a m p l e 9.2. T h e f u n c t i o n s
2 2
<p(r) = ( - 1 ) ^ / V ^ , 0<8<2N,
imply
^>(r) = ( - 1 ) ^ 1 f - l ) - . . r ^ 2
^
2
so t h a t ( l ) r ^ / l ^ ( r / 3 / 2 l ) j s c o m p l e t e l y m o n o t o n e a n d m = \B/2~\ is t h e smallest
7 7 1
possible m such t h a t ( l ) ^ ) is c o m p l e t e l y m o n o t o n e . Since /? is n o t a n even
integer ip is n o t a p o l y n o m i a l , a n d therefore, t h e r a d i a l powers (c.f. ( 8 . 2 ) )
W 2 ]
*(||*||) = (-l) \\xf, 3>0, 82N,
S
are s t r i c t l y c o n d i t i o n a l l y p o s i t i v e d e f i n i t e o f o r d e r m > \8/2\ and radial on R for
a l l s.
Therefore, we l e t
w h i c h is o b v i o u s l y n o t a p o l y n o m i a l . D i f f e r e n t i a t i n g ip we get
pW(r) +1
= {-lf (3{(3 - l ) . . . ( 8 - e + iy-< logr + p {r),
e 1<<P,
w i t h pe a p o l y n o m i a l o f degree (3 1. T h e r e f o r e , t a k i n g i = (3 we have
<pW(r) = BWogr + C
and
.09+D( ) = ( - l ) / 3 + i [
r >
w h i c h is c o m p l e t e l y m o n o t o n e o n (0, o o ) .
J u s t as we showed earlier t h a t c o m p a c t l y s u p p o r t e d r a d i a l f u n c t i o n s c a n n o t b e
s
s t r i c t l y p o s i t i v e definite o n R for a l l s, i t is i m p o r t a n t t o n o t e t h a t t h e r e are n o
t r u l y c o n d i t i o n a l l y p o s i t i v e definite f u n c t i o n s w i t h c o m p a c t s u p p o r t . M o r e precisely
(see [ W e n d l a n d (2005a)]),
S
T h e o r e m 9 . 4 . Assume that the complex-valued function $ G C ( R ) has compact
support. If & is strictly conditionally positive definite of (minimal) order m, then
m is necessarily zero, i.e., $ is already strictly positive definite.
? r r
Example 9.4. T h e f u n c t i o n v fe( ) = ( 1 ~ )+ is fc-times m o n o t o n e (see E x -
a m p l e 5.5 i n S e c t i o n 5.2). To avoid the i n t e g r a t i o n constant for t h e compactly
s u p p o r t e d t r u n c a t e d p o w e r f u n c t i o n we c o m p u t e t h e a n t i - d e r i v a t i v e v i a t h e i n t e g r a l
o p e r a t o r I of E x a m p l e 5.6 i n S e c t i o n 5.2, i.e.,
oo poo / i \fc
/
Mt)dt = j ( l ~ t ) l d t = ) ~ ^ ( l - r ) k
+
+ 1
.
I f we a p p l y m - f o l d a n t i - d i f f e r e n t i a t i o n we get
(
I-Mr) = / / - W ) = ( , + 1 ) ( f c ; 2 > , , ( + m ) ( l- r ) ^ .
T h e r e f o r e , b y T h e o r e m 9.3, t h e f u n c t i o n
<p(r) = ( 1 - r ) * +
s
is s t r i c t l y c o n d i t i o n a l l y p o s i t i v e d e f i n i t e o f o r d e r m a n d r a d i a l o n R for [s/2\ <
s
k + rn 2, a n d b y T h e o r e m 9.4 i t is even s t r i c t l y p o s i t i v e d e f i n i t e a n d r a d i a l o n M. .
T h i s was also observed i n E x a m p l e 6 o f C h a p t e r 4. I n fact, we saw t h e r e t h a t <p is
s
s t r i c t l y p o s i t i v e d e f i n i t e a n d r a d i a l o n R. for [s/2j < k + m 1.
W e see t h a t we c a n c o n s t r u c t s t r i c t l y p o s i t i v e d e f i n i t e c o m p a c t l y supported
radial functions by anti-differentiating the t r u n c a t e d power f u n c t i o n . T h i s is es-
sentially the approach taken by Wendland to construct his p o p u l a r compactly
s u p p o r t e d r a d i a l basis f u n c t i o n s . W e p r o v i d e m o r e d e t a i l s o f his c o n s t r u c t i o n i n
Chapter 11.
Since a n N x N m a t r i x t h a t is c o n d i t i o n a l l y p o s i t i v e d e f i n i t e o f o r d e r one is p o s i t i v e
d e f i n i t e o n a subspace o f d i m e n s i o n N 1 i t has t h e i n t e r e s t i n g p r o p e r t y that
at least N 1 o f i t s eigenvalues are p o s i t i v e . T h i s follows i m m e d i a t e l y f r o m the
C o u r a n t - F i s c h e r t h e o r e m o f l i n e a r a l g e b r a (see e.g., p . 550 o f [ M e y e r ( 2 0 0 0 ) ] ) :
and
T
Afc = min max x Ax.
dimV=iV-fc+l <*ev
II <= | | = i
9. Conditionally Positive Definite Radial Functions 77
W i t h an a d d i t i o n a l a s s u m p t i o n o n A we c a n m a k e a n even s t r o n g e r s t a t e m e n t .
XN-I = max m i n x Ax T
> min T
c Ac > 0,
dimV=iV-l =>=V c: E--k=
II a> 11 = 1 l|c||=l
the matrix A with entries Ajk = &{xj x)k has N 1 positive and one negative
eigenvalue, and is therefore non-singular.
Proof. S i m p l y consider
N N N N N N
Yl J2 j k[$(xj
c c
- x) k + C] = E ^CjCk&ixj - Xk) + E ^CjCkC.
3=1 k=l 3=1 fc=l j=l fc=l
T h e second t e r m o n t h e r i g h t is zero since <3> is c o n d i t i o n a l l y p o s i t i v e d e f i n i t e o f
c = a n
o r d e r one, i.e., X ^ y L i j 0' d thus the statement follows.
Chapter 10
I n C h a p t e r 1 we used i n t e r p o l a t i o n w i t h d i s t a n c e m a t r i c e s as a m u l t i v a r i a t e g e n e r a l -
i z a t i o n o f t h e piecewise l i n e a r a p p r o a c h . O u r choice o f t h e distance m a t r i x a p p r o a c h
was m o t i v a t e d b y t h e fact t h a t t h e associated basis f u n c t i o n s , &j{x) = \\x X j \ \
w o u l d satisfy t h e dependence o n t h e d a t a sites i m p o s e d o n a m u l t i v a r i a t e i n t e r p o -
lation m e t h o d by the M a i r h u b e r - C u r t i s theorem. We made the (natural?) choice
o f u s i n g t h e E u c l i d e a n ( 2 - n o r m ) d i s t a n c e f u n c t i o n , a n d t h e n showed i n subsequent
chapters t h a t t h e f u n c t i o n &(x) = \\x\\2 is s t r i c t l y c o n d i t i o n a l l y p o s i t i v e d e f i n i t e
s
of o r d e r one a n d r a d i a l o n R , a n d t h u s o u r distance m a t r i x a p p r o a c h was i n d e e d
well-posed v i a M i c c h e l l i ' s T h e o r e m 9.7.
W e n o w b r i e f l y consider s o l v i n g t h e s c a t t e r e d d a t a i n t e r p o l a t i o n p r o b l e m w i t h
r a d i a l f u n c t i o n s based o n o t h e r p - n o r m s . These n o r m s are defined as u s u a l as
T h e c o n t e n t o f t h i s s e c t i o n is m o s t l y t h e s u b j e c t o f t h e p a p e r [ B a x t e r (1991)].
I f we consider o n l y distance m a t r i c e s , i.e., i n t e r p o l a t i o n m a t r i c e s g e n e r a t e d b y
t h e basic f u n c t i o n <&(cc) = ||cc|| , t h e n i t was s h o w n i n [ D y n et al.
p (1989)] t h a t
t h e choice p = 1 leads t o a s i n g u l a r m a t r i x a l r e a d y for v e r y s i m p l e sets o f d i s t i n c t
interpolation points. For e x a m p l e , i f X = { ( 0 , 0 ) , ( 1 , 0 ) , ( 1 , 1 ) , ( 0 , 1 ) } t h e n t h e 1-
n o r m distance m a t r i x is g i v e n b y
"0 1 2 1 "
10 12
2 10 1
12 10
a n d i t is easy t o v e r i f y t h a t t h i s m a t r i x is s i n g u l a r . T h i s r e s u l t has d i s c o u r a g e d
people f r o m u s i n g 1 - n o r m r a d i a l basis f u n c t i o n s .
However, i f we use, e.g., N H a l t o n p o i n t s , t h e n we have never e n c o u n t e r e d a
s i n g u l a r 1-norm distance m a t r i x i n a l l o f o u r n u m e r i c a l e x p e r i m e n t s . I n fact, t h e
79
80 Meshfree Approximation Methods with M A T L A B
6 DM = DM + a b s ( d r - c c ) . " p ;
8 DM = DM."(l/p);
T h e o r e m 1 0 . 1 . Suppose 1 < p < 2 and let A be the p-norm distance matrix with
entries
T h i s t h e o r e m is d e r i v e d f r o m a m u c h earlier t h e o r e m b y Schoenberg r e l a t i n g
c o n d i t i o n a l l y p o s i t i v e definite m a t r i c e s o f o r d e r one a n d E u c l i d e a n d i s t a n c e m a t r i -
ces. W h e n Schoenberg first s t u d i e d c o n d i t i o n a l l y p o s i t i v e d e f i n i t e m a t r i c e s o f o r d e r
one t h i s was i n c o n n e c t i o n w i t h i s o m e t r i c e m b e d d i n g s . Based o n earlier w o r k b y
K a r l M e n g e r [Menger (1928)] Schoenberg d e r i v e d t h e f o l l o w i n g result c h a r a c t e r i z i n g
c e r t a i n c o n d i t i o n a l l y p o s i t i v e definite m a t r i c e s as E u c l i d e a n distance m a t r i c e s (see
[Schoenberg (1937)]).
Ajk = I I ^ -Vk\\l-
N
These points are the vertices of a simplex in ~R .
I n t h e t h i r d r o w o f F i g u r e 10.2 we d i s p l a y t h e i n t e r p o l a n t s t o t h e test f u n c t i o n
2
f(x, y) = (x+y)/2 o n [0, l ] u s i n g distance m a t r i x i n t e r p o l a t i o n based o n 25 e q u a l l y
spaced p o i n t s a n d p - n o r m s w i t h p = 1.001 a n d p = 2. Since we use a p l a i n d i s t a n c e
i n t e r p o l a n t , i.e., $(x) = ||aj|| p i t is r e m a r k a b l e t h a t t h e e r r o r u s i n g t h e p = 1.001-
n o r m is a b o u t t w o orders o f m a g n i t u d e smaller t h a n t h e n e x t best p - n o r m d i s t a n c e
m a t r i x fit a m o n g o u r e x p e r i m e n t s ( w h i c h we o b t a i n e d for p = 100, c.f. F i g u r e 10.2).
T h e use o f different p - n o r m s for different a p p l i c a t i o n s has n o t been s t u d i e d
carefully i n t h e l i t e r a t u r e .
T w o o t h e r results r e g a r d i n g i n t e r p o l a t i o n w i t h p - n o r m r a d i a l basis f u n c t i o n s
can also be f o u n d i n t h e l i t e r a t u r e . I n [ W e n d l a n d (2005a)] we find a reference t o
[ Z a s t a v n y i (1993)] a c c o r d i n g t o w h i c h for space dimensions s > 3 t h e o n l y
s
f u n c t i o n t h a t is p o s i t i v e d e f i n i t e a n d p - n o r m r a d i a l o n M is t h e zero f u n c t i o n .
A g a i n , s o m e w h a t d i s c o u r a g i n g news. H o w e v e r , t h e r e is also g o o d news. T h e f o l l o w -
i n g r a t h e r p o w e r f u l t h e o r e m comes f r o m [ B a x t e r (1991)]. B a x t e r calls t h e m a t r i x
A o f T h e o r e m 10.2 a n almost negative definite m a t r i x (c.f. the remarks following
D e f i n i t i o n 6.2).
r a
Proof. B y Schoenberg's T h e o r e m 10.2 w e c a n w r i t e Ajk = \\yj f P"
N 2
p r o p r i a t e p o i n t s yj ~R B y a s s u m p t i o n p{ ) is c o n d i t i o n a l l y p o s i t i v e d e f i n i t e o f
o r d e r one a n d r a d i a l , a n d therefore B is c o n d i t i o n a l l y p o s i t i v e s e m i - d e f i n i t e o f o r d e r
one. M o r e o v e r , i f Ajk ^ 0 for a l l o f f - d i a g o n a l elements, t h e n j / i , . . . , ? / A T are d i s t i n c t ,
2
a n d therefore B is s t r i c t l y c o n d i t i o n a l l y p o s i t i v e d e f i n i t e o f o r d e r one p r o v i d e d (p( )
is s t r i c t l y c o n d i t i o n a l l y p o s i t i v e d e f i n i t e o f o r d e r one.
2
Fig. 10.1 p-norm Gaussians for p = 1 (left) and p = 10 (right) centered at the origin in R .
A n o t h e r , closely r e l a t e d t h e o r e m b y B a x t e r is
2 2
T h e o r e m 1 0 . 4 . Suppose p( ) and ip( ) are functions that are conditionally pos-
S 2
itive definite of order one and radial on ~R with ip(0) = 0. Then ip o ip( ) is also
S 2
conditionally positive definite of order one and radial on 1R . Indeed, if ip(- ) is
strictly conditionally positive definite of order one and radial and tp vanishes only
2
at zero, then ip o ip( ) is strictly conditionally positive definite of order one and
radial.
T h i s t h e o r e m is a g e n e r a l i z a t i o n o f a classical r e s u l t i n l i n e a r a l g e b r a b y Schur
(see, e.g., [ H o r n a n d J o h n s o n ( 1 9 9 1 ) ; M i c c h e l l i ( 1 9 8 6 ) ] , w h e r e Schur's t h e o r e m was
e x t e n d e d t o cover s t r i c t n e s s ) .
10. Miscellaneous Theory: Other Norms and Scattered Data Fitting on Manifolds 83
T h e r e exists a sizeable b o d y o f l i t e r a t u r e o n t h e t o p i c o f s c a t t e r e d d a t a i n t e r p o l a t i o n
- 1 s
on m a n i f o l d s , especially t h e sphere S ^ i n M . W e w i l l n o t m e n t i o n a n y specific
results here. I n s t e a d w e refer t h e reader t o t h e b o o k [Freeden et al. (1998)], t h e
survey papers [Cheney (1995a); Fasshauer a n d S c h u m a k e r (1998)], as w e l l as m a n y
o r i g i n a l papers such as [ B a x t e r a n d H u b b e r t (2001); B i n g h a m (1973); Fasshauer
(1995a); Fasshauer (1999b); H u b b e r t a n d M o r t o n (2004a); H u b b e r t a n d M o r t o n
(2004b); Levesley et al. (1999); M e n e g a t t o ( 1 9 9 4 b ) ; N a r c o w i c h a n d W a r d ( 2 0 0 2 ) ;
R a g o z i n a n d Levesley (1996); R o n a n d S u n ( 1 9 9 6 ) ; Schoenberg (1942); Schreiner
(1997); W a h b a (1981); W a h b a (1982); X u a n d C h e n e y ( 1 9 9 2 b ) ] .
R a d i a l basis functions o n m o r e general R i e m a n n i a n m a n i f o l d s are s t u d i e d i n ,
e.g., [ D y n et al. (1997); D y n et al. (1999); Levesley a n d R a g o z i n (2002); N a r c o w i c h
(1995); N a r c o w i c h et al. (2003); S c h i m m i n g a n d Belger (1991)].
T h e r e is also a " p o o r m a n ' s s o l u t i o n " t o i n t e r p o l a t i o n o n m a n i f o l d s , especially
the sphere. O n e can use t h e E u c l i d e a n r a d i a l basis f u n c t i o n m e t h o d s discussed t h u s
far, a n d s i m p l y r e s t r i c t t h e i r e v a l u a t i o n t o t h e m a n i f o l d . T h i s a p p r o a c h is o u t l i n e d
i n Section 6 o f [Fasshauer a n d S c h u m a k e r (1998)].
W e w i l l discuss a n o t h e r , r e l a t e d , i n t e r p o l a t i o n p r o b l e m l a t e r . N a m e l y , i n t e r p o -
3
l a t i o n t o p o i n t c l o u d d a t a i n R . I n t h i s case, t h e u n d e r l y i n g m a n i f o l d is u n k n o w n ,
a n d a n o t h e r a p p r o a c h needs t o be t a k e n . See C h a p t e r 30 for details.
10.3 Remarks
M a n y o f t h e results g i v e n i n t h e p r e v i o u s c h a p t e r s c a n be generalized t o v e c t o r -
v a l u e d or even m a t r i x - v a l u e d f u n c t i o n s . Some results a l o n g these lines c a n be f o u n d
i n [ L o w i t z s c h (2002); L o w i t z s c h (2005); M y e r s (1992); N a r c o w i c h a n d W a r d (1994a);
Schaback (1995a)].
We point out that the approach to solving the interpolation problems taken i n
t h e p r e v i o u s chapters a l w a y s assumes t h a t t h e centers, i.e., the points x , k k =
1,...,N, at w h i c h t h e basis f u n c t i o n s are centered, coincide w i t h t h e d a t a sites.
T h i s is a f a i r l y severe r e s t r i c t i o n , a n d i t has been s h o w n i n examples i n t h e c o n t e x t
o f least squares a p p r o x i m a t i o n o f s c a t t e r e d d a t a (see, e.g., [Franke et al. (1994);
F r a n k e et al. (1995)] or [Fasshauer (1995a)]) t h a t b e t t e r r e s u l t s can be achieved
i f t h e centers are chosen different f r o m t h e d a t a sites. Theoretical results i n this
d i r e c t i o n are v e r y l i m i t e d , a n d are r e p o r t e d i n [ Q u a k et al. (1993)] a n d i n [Sun
(1993a)].
84 Meshfree Approximation Methods with M A T L A B
z
0.5
zo.5
2
0.5-
2
Fig. 10.2 p-norm distance matrix fits to f(x, y) = (x + y)/2 on a 5 X 5 grid in [0, l ] unless noted
otherwise. Top: p = 1 (1089 Halton points). 2nd row: p = 10 (left), p = 100 (right). 3rd row:
p = 1.001 (left), p = 2 (right). Bottom: p-norm Gaussian fits for p = 1 (left) and p = 10 (right).
Chapter 11
Compactly Supported
Radial Basis Functions
/>oo
2
*(x) = F,<p{\\x\\) = Ija-H-C/ <p(t)r' J - (t\\x\\)dt,
(a 2)/2
Jo
11.1 O p e r a t o r s for R a d i a l F u n c t i o n s a n d D i m e n s i o n W a l k s
85
86 Meshfree Approximation Methods with M A T L A B
Definition 11.1.
2
(2) For even <p G C(M) we define t h e differential operator V via
N o t e t h a t t h e i n t e g r a l o p e r a t o r X differs f r o m t h e o p e r a t o r / i n t r o d u c e d earlier
(see (5.1)) b y a f a c t o r t i n t h e i n t e g r a n d .
T h e m o s t i m p o r t a n t p r o p e r t i e s o f t h e m o n t e e a n d descente o p e r a t o r s are (see,
e.g., [Schaback a n d W u (1996)] o r [ W e n d l a n d ( 1 9 9 5 ) ] ) :
Theorem 11.1.
(1) Both T> andX preserve compact support, i.e., if if has compact support, then so
do T>p and Xp.
(2) IfpE C(R) and t ^ t(f>(t) G L i [ 0 , o o ) , then VX<p = (p.
2
(3) Ifpe C (R) (<p^l) is even and <p' G L [0, o o ) , then XVp x = ip.
s x
(4) J / t H t ~ p{t) G L i [ 0 , o o ) and s > 3, then F (<p) s = JF _ (X^).
S 2
2 s
(5) Ifpe C (R) is even and 11-+ t <p'(t) G L i [ 0 , o o ) , then F (ip) 8 = T i{pp).
s+
T h e o p e r a t o r s X a n d V a l l o w us t o express s - v a r i a t e F o u r i e r t r a n s f o r m s as (s2)-
o r ( s + 2 ) - v a r i a t e F o u r i e r t r a n s f o r m s , respectively. I n p a r t i c u l a r , a d i r e c t consequence
o f t h e above p r o p e r t i e s a n d t h e c h a r a c t e r i z a t i o n o f s t r i c t l y p o s i t i v e d e f i n i t e r a d i a l
f u n c t i o n s ( T h e o r e m 3.6) is
Theorem 11.2.
s l
(1) Suppose cp G C(R). Ift ^ t ~ p(t) G Z a [ 0 , o o ) and s > 3, then <p is strictly
s
positive definite and radial on R if and only if X<p is strictly positive definite
s 2
and radial on R~.
2 s
(2) If p e C (R) is even and t H- t <p'(t) L i [ 0 , o o ) , then p is strictly positive
s
definite and radial on R if and only if T>p is strictly positive definite and
s + 2
radial on R .
T h i s a l l o w s us t o c o n s t r u c t n e w s t r i c t l y p o s i t i v e d e f i n i t e r a d i a l f u n c t i o n s from
g i v e n ones b y a " d i m e n s i o n - w a l k " t e c h n i q u e t h a t steps t h r o u g h m u l t i v a r i a t e E u -
c l i d e a n space i n even i n c r e m e n t s . T h e e x a m p l e s p r e s e n t e d i n t h e f o l l o w i n g sections
illustrate this technique.
.1,
11. Compactly Supported Radial Basis Functions 87
e
Definition 11.2. W i t h <pe(r) = ( 1 r) + we define
k(
Vs,k = 1 P\_s/2\+k+l-
s
T h e o r e m 1 1 . 3 . The functions (p kSj are strictly positive definite and radial on R
and are of the form
s k K
^ ' ' \0, r > 1,
2 f e
with a univariate polynomial pk 3t of degree [s/2\ + Sk + 1. Moreover, (p k
Sj C (IR)
are unique up to a constant factor, and the polynomial degree is minimal for given
space dimension s and smoothness 2k.
2k
T h i s t h e o r e m states t h a t a n y o t h e r c o m p a c t l y s u p p o r t e d C p o l y n o m i a l func-
t i o n t h a t is s t r i c t l y p o s i t i v e d e f i n i t e a n d r a d i a l o n W w i l l n o t have a smaller p o l y -
n o m i a l degree. O u r o t h e r e x a m p l e s b e l o w ( W u ' s f u n c t i o n s , G n e i t i n g ' s f u n c t i o n s )
i l l u s t r a t e t h i s fact. T h e s t r i c t p o s i t i v e definiteness of Wendland's functions ip k
Sj
+ 1
>,,i(r) = ( l - r [(* + l ) r + l ] ,
e 2 2 2
Vs,2{r) = ( 1 - r) + [( + 4 + 3 ) r + (3 + 6 ) r + 3] ,
3 3 2 3 2 2
ip (r)
at3 = (1 - rY+ [{ + 9 + 23 + 1 5 ) r + {U + 3Q + 4 5 ) r
+ (15^ + 4 5 ) r + 1 5 ] ,
oo
- l
t(l -
t) dt +
e
= f t(l-t) dt
J r
+ 1
= ( , + 1 )(, + 2 ) ( i - r ) ' [ ( ^ i ) r + i ] ,
w h e r e t h e c o m p a c t s u p p o r t o f <f reduces t h e i m p r o p e r i n t e g r a l t o a d e f i n i t e i n t e g r a l
w h i c h c a n be e v a l u a t e d u s i n g i n t e g r a t i o n b y p a r t s . T h e o t h e r t w o cases are o b t a i n e d
similarly b y repeated application o f X.
a n
Table 11.1 Wendland's compactly supported radial functions v's.fc d *?s,k Vs,fc(l " )
for various choices offcand s 3.
k <P3,k( ) r
&3,k(r) smoothness
r C
0 i
2
1 (1 - r)\ (4r + 1) r\ (5 - 4 r ) C
2 2 4
2 (1 - r)\ ( 3 5 r + 18r + 3) r\ (56 - 88r + 3 5 r ) C
3 2 2 3 6
3 (1 - r)\ ( 3 2 r + 2 5 r + 8r + l ) r \ (66 - 154r + 1 2 1 r - 3 2 r ) C
I n [ W u (1995b)] w e f i n d a n o t h e r w a y t o c o n s t r u c t s t r i c t l y p o s i t i v e d e f i n i t e r a d i a l
functions w i t h compact support. W u starts w i t h t h e f u n c t i o n
2 e
i>(r) = (1 - r ) , + eN,
11. Compactly Supported Radial Basis Functions 89
-oo
2
= f ( l - t Y { l - { 2 r - t Y Y + d t .
T h i s f u n c t i o n is s t r i c t l y p o s i t i v e d e f i n i t e since i t s F o u r i e r t r a n s f o r m is essentially
the square o f t h e F o u r i e r t r a n s f o r m o f ip a n d therefore n o n - n e g a t i v e . J u s t like t h e
W e n d l a n d functions, t h i s f u n c t i o n is a p o l y n o m i a l o n i t s s u p p o r t . I n fact, t h e degree
2e
of t h e p o l y n o m i a l is 4 + 1, a n d ip e e C (R).
N o w , a f a m i l y o f s t r i c t l y p o s i t i v e d e f i n i t e r a d i a l f u n c t i o n s is c o n s t r u c t e d b y a
d i m e n s i o n w a l k u s i n g t h e T> o p e r a t o r .
2 2
D e f i n i t i o n 11.3. W i t h ip {r)e = ( ( 1 - - Y+ * ( 1 - - ) + ) ( 2 r ) we define
k
iP t K = V ip . t
s
T h e f u n c t i o n s ipk,e are s t r i c t l y p o s i t i v e d e f i n i t e a n d r a d i a l o n R for s < 2k + 1,
2 k
are p o l y n o m i a l s o f degree A 2k+l o n t h e i r s u p p o r t a n d i n C ^~ ^ i n the interior
2 k
of t h e s u p p o r t . O n t h e b o u n d a r y t h e smoothness increases t o C ~.
E x a m p l e 1 1 . 2 . For = 3 we c a n c o m p u t e t h e four f u n c t i o n s
k k 2 2
W ) = V ip {r) 3 = V ((l - -f + * (1 - - ) ) ( 2 r ) , + k = 0,1,2,3.
Table 11.2 Wu's compactly supported radial functions ipk,e for various choices of
fc and I = 3.
fc smoothness s
0 2
( l - r ) + ( 5 - r 35r + 101r + 147r + 101r + 3 5 r + 5 r )
3 4 5 6
1
1 2
( 1 - r ) ( 6 + 36r + 8 2 r + 7 2 r + 3 0 r + 5 r )
+
3 4 5
c 4
3
2
2 (1 - r ) + ( 8 + 40r + 4 8 r + 2 5 r + 5 r )
2 3 4
c 5
3 4
(1 - r ) (16 + 29r + 2 0 r + 5 r ) 2 3
c 7
90 Meshfree Approximation Methods with M A T L A B
Table 11.3 Shifted version ipk,e of Wu's compactly supported radial functions tpk,e
for various choices of k and = 3.
r
k ^k,zi ) smoothness s
2 3 4 5 6
0 r ( 4 2 9 - 1287r + 1573r - l O O l r + 3 5 1 r - 6 5 r + 5 r )
+ C 6
1
2 3 4 5
1 r ( 2 3 1 - 561r + 528r - 242r + 5 5 r - 5 r )
+ C 4
3
2 3 4
2 r ( 1 2 6 - 231r + 153r - 4 5 r + 5 r )
+ C 2
5
4 2 3
3 r (70 - 84r + 3 5 r - 5 r ) C 7
Fig. 11.1 Plot of Wendland's functions from Example 11.1 (left) and Wu's functions from E x a m -
ple 11.2 (right).
O t h e r s t r i c t l y p o s i t i v e d e f i n i t e c o m p a c t l y s u p p o r t e d r a d i a l f u n c t i o n s have b e e n p r o -
posed b y G n e i t i n g (see, e.g., [ G n e i t i n g ( 2 0 0 2 ) ] ) . H e s h o w e d t h a t a f a m i l y o f o s c i l l a -
t o r y c o m p a c t l y s u p p o r t e d f u n c t i o n s c a n be c o n s t r u c t e d u s i n g t h e so-called turning
11. Compactly Supported Radial Basis Functions 91
bands operator o f [ M a t h e r o n ( 1 9 7 3 ) ] . S t a r t i n g w i t h a f u n c t i o n ip s t h a t is s t r i c t l y
s
p o s i t i v e definite a n d r a d i a l o n M. for s > 3 t h e t u r n i n g b a n d s o p e r a t o r p r o d u c e s
^ - ( r ) = ^ (r) + ^i^
2 s (11.1)
s _ 2
w h i c h is s t r i c t l y p o s i t i v e d e f i n i t e a n d r a d i a l o n R .
( \ fi V (-\ ^ o ( l + l ) ( l + 2 + s) 2 \
s
w h i c h are s t r i c t l y p o s i t i v e d e f i n i t e a n d r a d i a l o n M p r o v i d e d > (see [ G n e i t i n g
(2002)]). Some specific f u n c t i o n s f r o m t h i s f a m i l y are l i s t e d i n T a b l e 11.4. A l l o f
2
t h e f u n c t i o n s are i n C ( 1 R ) . I f we w a n t s m o o t h e r f u n c t i o n s , t h e n we need t o s t a r t
w i t h a s m o o t h e r W e n d l a n d f a m i l y as d e s c r i b e d b e l o w i n E x a m p l e 11.4.
T r
^ 2,e( ) smoothness
7 i | 5
7/2 (1 - r) ^ (1 + \r - r 2 )
C 2
2 2
5 (1 - r)\ (1 + 5r - 2 7 r ) C
15/2 ( l - r ^ l + f r - _3|i r 2 ) C 2
12 (i - 0 + ( i + 1 2 r
- 104r )
2
C 2
Fig. 11.2 Oscillatory functions of Table 11.4 (left) and Table 11.5 (right).
92 Meshfree Approximation Methods urith M A T L A B
E x a m p l e 1 1 . 4 . A l t e r n a t i v e l y , we c a n o b t a i n a set o f o s c i l l a t o r y f u n c t i o n s t h a t are
3
s t r i c t l y positive definite and r a d i a l o n M b y applying the t u r n i n g bands operator
t o t h e W e n d l a n d f u n c t i o n s </?5,fc t h a t are s t r i c t l y p o s i t i v e d e f i n i t e a n d r a d i a l o n R 5
k Ok(r) smoothness
1 (1 - r)\ (1 + 4 r - 1 5 r ) 2
C 2
2 3 4
2 (1 - r)\ (3 + 18r + 3 r - 1 9 2 r ) C
2 3 4 6
3 (1 - r ) \ (15 + 120r + 2 1 0 r - 8 4 0 r - 3 4 6 5 r ) C
f 27ry 2 f c _ (2r)-r(l-r )
1
2 f c
r. _ -i o q
^ f c + 1 (2r) = K - 1 , 2 , 6 , . . . ,
12(1-r) fc = 0,
for o d d space d i m e n s i o n s s = 2k + 1, a n d as
[ 2 ry 7 2 f c (2r)-TV(l-r2)(l-r ) 2 f c
, _
>2fc+ (2r) = I
2 ^+2 * - 1, A 6,
2 ( a r c c o s r ry/l r) 2
k = 0,
11. Compactly Supported Radial Basis Functions 93
Table 11.6 Euclid's hat functions (defined for 0 < r < 2) for
different values of s.
s V>s(r) smoothness
1 1_ r C
1
2
2
2 ^ ^4arccos (^) r \ / 4 r ^ C
3 1
- sh (( + * ) ~ ) 4 1 6 r r3 c
4 I arccos ( r ) _ _1_^4 - r (20r + r ) 2 3
c
5 1
- 64^ ( t 1 2
+ 8 7 r
+ 3 2 7 r 2
) r 3
~ ( + 2 ? r
) r 3
) c
Fig. 11.3 Euclid's hat functions (left) of Table 11.6 and Buhmann's function of Example 11.6
(right).
A n o t h e r c o n s t r u c t i o n d e s c r i b e d i n [Schaback (1995a)] is t h e r a d i a l i z a t i o n o f t h e
s-fold tensor p r o d u c t o f u n i v a r i a t e 5 - s p l i n e s o f even o r d e r 2m w i t h u n i f o r m k n o t s .
T h e s e f u n c t i o n s d o n o t seem t o have a s i m p l e r e p r e s e n t a t i o n t h a t lends i t s e l f t o
numerical computations. A s c a n be seen f r o m i t s r a d i a l i z e d F o u r i e r t r a n s f o r m , t h e
5
r a d i a l i z e d S - s p l i n e i t s e l f is n o t s t r i c t l y p o s i t i v e d e f i n i t e a n d r a d i a l o n a n y R with
s > 1. For s = 1 o n l y t h e S - s p l i n e s o f even o r d e r are s t r i c t l y p o s i t i v e d e f i n i t e (see,
e.g., [ S c h o l k o p f a n d S m o l a ( 2 0 0 2 ) ] ) .
T h e last f a m i l y o f c o m p a c t l y s u p p o r t e d s t r i c t l y p o s i t i v e d e f i n i t e r a d i a l f u n c t i o n s
we w o u l d like t o m e n t i o n is due t o [ B u h m a n n ( 1 9 9 8 ) ] . B u h m a n n ' s f u n c t i o n s c o n t a i n
94 Meshfree Approximation Methods with M A T L A B
a l o g a r i t h m i c t e r m i n a d d i t i o n t o a p o l y n o m i a l . H i s f u n c t i o n s have t h e g e n e r a l f o r m
/OO
Jo
H e r e 0 < 5 < ^, p > 1, a n d i n o r d e r t o o b t a i n f u n c t i o n s t h a t are s t r i c t l y p o s i t i v e
s
d e f i n i t e a n d r a d i a l o n M for s < 3 t h e c o n s t r a i n t s for t h e r e m a i n i n g p a r a m e t e r s are
A > 0, a n d - 1 < a < =.
W h i l e i t is s t a t e d i n [ B u h m a n n (2000)] t h a t t h e c o n s t r u c t i o n t h e r e encompasses
b o t h W e n d l a n d ' s a n d W u ' s f u n c t i o n s , a n even m o r e g e n e r a l t h e o r e m t h a t shows t h a t
integration of a positive function / L i [ 0 , o o ) against a s t r i c t l y positive definite
k e r n e l K r e s u l t s i n a s t r i c t l y p o s i t i v e d e f i n i t e f u n c t i o n c a n be f o u n d i n [ W e n d l a n d
(2005a)] (see also S e c t i o n 4 . 8 ) . M o r e specifically,
roc
p(r) = / K(t,r)f(t)dt
Jo
is s t r i c t l y p o s i t i v e d e f i n i t e . B u h m a n n ' s c o n s t r u c t i o n t h e n c o r r e s p o n d s t o c h o o s i n g
a s 2
f(t) = t ( l - t )^ a n d K(t, r) = ( 1 - r /t)\.
Chapter 12
We n o w have a n a l t e r n a t i v e w a y t o c o n s t r u c t a n R B F i n t e r p o l a n t t o scattered
s
d a t a i n M. . I f we use t h e c o m p a c t l y s u p p o r t e d r a d i a l f u n c t i o n s o f t h e p r e v i o u s
chapter t h e n t h e m a i n difference t o o u r p r e v i o u s i n t e r p o l a n t s is t h a t n o w t h e i n -
t e r p o l a t i o n m a t r i x c a n be m a d e sparse b y s c a l i n g t h e s u p p o r t o f t h e basic f u n c t i o n
a p p r o p r i a t e l y . T o achieve t h i s w e use as w e d i d earlier t h e basic f u n c t i o n s
(p (r)
e = <p{er). T h u s , a large v a l u e o f e corresponds t o a s m a l l s u p p o r t . I n o t h e r
w o r d s , i f t h e s u p p o r t o f <p is t h e i n t e r v a l [ 0 , 1 ] , t h e n t h e s u p p o r t r a d i u s p o f <p is
We have s t r u c t u r e d t h e s c a t t e r e d d a t a i n t e r p o l a t i o n p r o g r a m i n t h e c o m p a c t l y sup-
p o r t e d case analogous t o t h e code for t h e g l o b a l i n t e r p o l a n t s , i.e., first c o n s t r u c t a
distance m a t r i x , a n d t h e n a p p l y t h e a n o n y m o u s f u n c t i o n r b f t o o b t a i n t h e i n t e r p o -
l a t i o n / e v a l u a t i o n m a t r i x (as o n lines 1 3 - 1 4 a n d 1 5 - 1 6 o f P r o g r a m 2.1). H o w e v e r , i t
t u r n s o u t t h a t i t is easier t o d e a l w i t h t h e c o m p a c t s u p p o r t i f we c o m p u t e t h e "dis-
tance m a t r i x " c o r r e s p o n d i n g t o t h e ( 1 s r ) + t e r m since o t h e r w i s e those entries o f
t h e distance m a t r i x t h a t are zero (since t h e m u t u a l distance between t w o i d e n t i c a l
p o i n t s is zero) w o u l d be "lost" i n t h e sparse r e p r e s e n t a t i o n o f t h e m a t r i x .
T h e M A T L A B code DistanceMatrixCSRBF.m ( P r o g r a m 12.1) c o n t a i n s t w o s i m i -
95
96 Meshfree Approximation Methods with M A T L A B
lar blocks that will be used depending on whether we have more centers than data
sites or vice versa. For example, if there are more data sites than centers (cf. lines 7
16), then we build a kd-txee for the data sites and find for each center x - those 3
data sites within the support of the basis function centered at Xj, i.e., we construct
the (sparse) matrix column by column. In the other case (cf. lines 18-27) we start
with a tree for the centers and build the matrix row by row. This is accomplished by
determining for each data site Xi all centers whose associated^ basis function
covers data site Xi.
The functions kdtree and kdrangequery are provided by the kd-tree library
mentioned above. T h e call in line 7 (respectively 18) of Program 12.1 generates the
kd-txee of all the centers (data sites), and with the call to kdrangequery in line 9
(respectively 20) we find all centers (data sites) that lie within a distance support
of the jth center point (data site). T h e actual distances are returned in the vector
d i s t and the indices into the list of all data sites are provided in idx. T h e distances
for these points only are stored in the matrix DM. For maximum efficiency (in order
to avoid dynamic memory allocation) it is important to have a good estimate of
the number of nonzero entries in the matrix for the allocation statement in lines 4
and 5. The version of the code presented here has the best performance for larger
problems since s p a r s e is only invoked once.
P r o g r a m 12.1. DistanceMatrixCSRBF.m
% DM = D i s t a n c e M a t r i x C S R B F ( d s i t e s , c t r s , e p )
% Forms t h e d i s t a n c e m a t r i x of two s e t s of p o i n t s i n R~s
% f o r compactly supported r a d i a l b a s i s f u n c t i o n s , i . e . ,
7. DM(i,j) = I I d a t a s i t e _ i - c e n t e r _ j I I _2.
7o The CSRBF used with t h i s code must be g i v e n i n s h i f t e d form
7. rbf2(u) = r b f ( r ) , u=l-e*r.
% F o r example, t h e Wendland C2
7o rbf = @(e,r) max(l-e*r , 0 ) . ~ 4 . * ( 4 * e * r + l ) ;
7 becomes
7. r b f 2 = ffl(u) u. "4.*(4*u+5) ;
7o Input
% d s i t e s : Nxs matrix r e p r e s e n t i n g a s e t of N d a t a s i t e s
% i n R"s ( i . e . , each row c o n t a i n s one
7o s-dimensional p o i n t )
% ctrs: Mxs matrix r e p r e s e n t i n g a s e t of M c e n t e r s f o r
7o RBFs i n R~s ( a l s o one c e n t e r p e r row)
7 ep: determines s i z e of support of b a s i s f u n c t i o n .
7o Small ep y i e l d s wide f u n c t i o n ,
7o i . e . , s u p p o r t s i z e = 1/ep
7. Output
7, DM: NxM SPARSE m a t r i x t h a t c o n t a i n s t h e E u c l i d e a n
12. Interpolation with Compactly Supported RBFs in M A T L A B 97
/
0 u - d i s t a n c e ( u = l - e * r ) between t h e i - t h d a t a
% s i t e and t h e j - t h c e n t e r i n t h e i , j p o s i t i o n
% Uses: k-D t r e e package by Guy S h e c h t e r from
'/, MATLAB C e n t r a l F i l e Exchange
1 f u n c t i o n DM = D i s t a n c e M a t r i x C S R B F ( d s i t e s , c t r s , e p )
2 N = size(dsites,1); M = size(ctrs,1);
7 B u i l d k-D t r e e f o r d a t a s i t e s
% F o r each c e n t e r ( b a s i s f u n c t i o n ) , f i n d t h e d a t a s i t e s
% i n i t s support along w i t h u - d i s t a n c e
3 support = 1/ep;
4 nzmax = 25*N; rowidx = zeros(1,nzmax); c o l i d x = zeros(1,nzmax);
5 v a l i d x = zeros(1,nzmax); i s t a r t = 1; i e n d = 0;
6 i f M > N / f a s t e r i f more c e n t e r s than d a t a s i t e s
7 [tmp,tmp,Tree] = k d t r e e ( c t r s , [] ) ;
8 f o r i = 1:N
9 [pts,dist,idx] = kdrangequery(Tree,dsites(i,:),support);
10 newentries = l e n g t h ( i d x ) ;
11 iend = iend + n e w e n t r i e s ;
12 rowidx(istart:iend) = repmat(i,1,newentries);
13 c o l i d x ( i s t a r t : i e n d ) = idx';
14 validx(istart:iend) = l-ep*dist';
15 i s t a r t = i s t a r t + newentries;
16 end
17 e l s e
18 [tmp,tmp,Tree] = k d t r e e ( d s i t e s , [ ] ) ;
19 f o r j = 1:M
20 [pts.dist,idx] = kdrangequery(Tree,ctrs(j,:),support);
21 newentries = l e n g t h ( i d x ) ;
22 iend = iend + n e w e n t r i e s ;
23 rowidx(istart:iend) = idx';
24 c o l i d x ( i s t a r t : i e n d ) = repmat(j,1.newentries);
25 validx(istart:iend) = l-ep*dist';
26 i s t a r t = i s t a r t + newentries;
27 end
f
28 end
29 idx = f i n d ( r o w i d x ) ;
30 DM = s p a r s e ( r o w i d x ( i d x ) , c o l i d x ( i d x ) , v a l i d x ( i d x ) , N , M ) ;
7. Free t h e k-D Tree from memory.
31 kdtree ( [ ] , , Tree) ;
T h e reason for c o d i n g D i s t a n c e M a t r i x C S R B F . m i n t w o different w a y s is so t h a t
we w i l l be able t o speed u p t h e p r o g r a m w h e n d e a l i n g w i t h n o n - s q u a r e ( e v a l u a t i o n )
m a t r i c e s (for e x a m p l e i n t h e c o n t e x t o f M L S a p p r o x i m a t i o n (c.f. Chapter 24).
-3*, *
98 Meshfree Approximation Methods with M A T L A B
1 f u n c t i o n DM = D i s t a n c e M a t r i x C S R B F ( d s i t e s , c t r s , e p )
2 N = size(dsites,l); M = size(ctrs,1);
% B u i l d k-D t r e e f o r d a t a sites
% F o r each c e n t e r ( b a s i s f u n c t i o n ) , f i n d t h e d a t a sites
% i n i t s support along w i t h u - d i s t a n c e
3 support = 1/ep; nzmax = 25*N; DM = spalloc(N,M,nzmax);
4 [tmp, tmp,Tree] = k d t r e e ( d s i t e s , [ ] ) ;
5 f o r j = 1:M
6 Cpts,dist,idx] = kdrangequery(Tree,ctrs(j,:),support);
7 DM(idx.j) = l - e p * d i s t ;
8 end
% F r e e the k-D Tree from memory.
9 kdtree ( [ ] , [ ] , Tree) ;
13 DM_data = D i s t a n c e M a t r i x C S R B F ( d s i t e s , c t r s , e p ) ;
15 DM_eval = D i s t a n c e M a t r i x C S R B F ( e p o i n t s , c t r s , e p ) ;
2
a n d t o define t h e R B F i n s h i f t e d f o r m , i.e., i n s t e a d o f r e p r e s e n t i n g , e.g., t h e C
W e n d l a n d f u n c t i o n c / ^ i o n line 1 b y
1 r b f = @(e,r) m a x ( l - e * r , 0 ) . ~ 4 . * ( 4 * e * r + l ) ; ep=0.7;
we n o w w r i t e
17 c = p c g ( I M , r h s ) ; Pf = EM * c;
e
r a t '"fa--/ *> fc = 2,3,..., (12.1)
ln(/ifc_i/ftfc)
9 1.562729e-001 0.03
25 2.807706e-002 2.4766 0.04
81 4.853006e-003 2.5324 0.12
289 2.006041e-004 4.5965 0.45
1089 1.288000e-005 3.9611 2.75
4225 1.382497e-006 3.2198 47.92
9 1.655969e-001 0.03
25 3.097850e-002 2.4183 0.06
81 4.612941e-003 2.7475 0.20
289 1.305297e-004 5.1432 0.72
1089 4.780575e-006 4.7711 4.06
4225 2.687479e-007 4.1529 55.09
i n t h e sparse s e t t i n g a n d as
S
D e f i n i t i o n 1 3 . 1 . L e t H be a r e a l H i l b e r t space o f f u n c t i o n s / : Q(Q R ) > R w i t h
i n n e r p r o d u c t (-, - ) ^ - A f u n c t i o n K : Q x ft R is called reproducing kernel for Ji
if
\8 f\
x = \f(x)\<--M\\f\\ n
103
104 Meshfree Approximation Methods with M A T L A B
K(x,y) = (K(;y),K(;x)) n
\f(x) - f {x)\
n = \(f - f ,K(-,x)) \
n n < ||/ - f \\ \\K(;x)\\ .
n n n D
N o w i t is i n t e r e s t i n g for us t h a t t h e r e p r o d u c i n g k e r n e l K is k n o w n t o b e p o s i t i v e
definite. Here w e use a s l i g h t g e n e r a l i z a t i o n o f t h e n o t i o n o f a p o s i t i v e d e f i n i t e func-
t i o n t o a p o s i t i v e d e f i n i t e k e r n e l . Essentially, w e replace &(xj X k ) i n D e f i n i t i o n 3.2
b y K(xj, X k ) . A t t h i s p o i n t w e r e m i n d t h e reader t h a t t h e space o f b o u n d e d l i n e a r
f u n c t i o n a l s o n 7i is k n o w n as i t s dual, a n d d e n o t e d b y 7i*.
j=l k=l
N
2
= ||^c -K(-,x )|| ,>0.
J J
j=i
T h u s K is p o s i t i v e d e f i n i t e . T o e s t a b l i s h t h e second c l a i m w e assume K is n o t
s t r i c t l y p o s i t i v e d e f i n i t e a n d show t h a t t h e p o i n t e v a l u a t i o n f u n c t i o n a l s m u s t b e
13. Reproducing Kernel Hilbert Spaces for Strictly Positive Definite Functions 105
linearly dependent. I f K is n o t s t r i c t l y p o s i t i v e d e f i n i t e t h e n t h e r e e x i s t d i s t i n c t
p o i n t s Xi,..., XN a n d n o n z e r o coefficients c - such t h a t 3
N N
c c
Y2Y2 j kK{xj,x ) k = 0.
3=1 k=l
T h e first p a r t o f t h e p r o o f t h e r e f o r e i m p l i e s
3= 1
N o w we t a k e t h e H i l b e r t space i n n e r p r o d u c t w i t h a n a r b i t r a r y f u n c t i o n / 6 H a n d
use t h e r e p r o d u c i n g p r o p e r t y o f K t o o b t a i n
3= 1
N
c K x
= ^2 3(fi (-, 3))n
3= 1
N
3= 1
N
3=1
T h i s , however, i m p l i e s t h e l i n e a r dependence o f t h e p o i n t e v a l u a t i o n f u n c t i o n a l s
S Xj ( / ) f( j)i
x
j 1, ) AT, since t h e coefficients Cj were assumed t o be n o t a l l
zero. A n analogous a r g u m e n t c a n be used t o e s t a b l i s h t h e converse.
T h i s t h e o r e m p r o v i d e s one d i r e c t i o n o f t h e c o n n e c t i o n b e t w e e n s t r i c t l y p o s i t i v e
definite f u n c t i o n s a n d r e p r o d u c i n g kernels. H o w e v e r , we are also i n t e r e s t e d i n t h e
o t h e r d i r e c t i o n . Since t h e R B F s w e have b u i l t o u r i n t e r p o l a t i o n m e t h o d s f r o m are
strictly positive definite functions, we w a n t t o k n o w how t o construct a r e p r o d u c i n g
k e r n e l H i l b e r t space associated w i t h those s t r i c t l y p o s i t i v e d e f i n i t e basic f u n c t i o n s .
11/11* = (f,f)n = ( Y , ^ K { . , X j ) ^ c K { . , x ) )
k k u
3= 1 k=l
N N
S c
= Z2^C3 k{K(-,x ),K(-,x ))n j k
3= 1 k=l
N N
C C K X X
= ^2Yl i k ( 3' k)-
3=1 k=l
Therefore, we define t h e (possibly i n f i n i t e - d i m e n s i o n a l ) space
H (Cl)
K = s p a n { K ( - , y) : y Cl} (13.1)
w i t h a n associated b i l i n e a r f o r m (, )#- g i v e n b y
=
N K N K N K N K
f = ^2cjK(;Xj), XjeCl.
3= 1
Then
N K N K
S s
T h e o r e m 1 3 . 4 . Suppose $ G C ( R ) n L i ( R ) is a real-valued strictly positive def-
inite function. Define
S S 3
g = {fe L (R ) n C(R ):
2 -= e -MR )}
7
ana egwip /ns space with the bilinear form
i ,/ 9 , i / / M I R do;.
Then Q is a real Hilbert space with inner product (, -)g and reproducing kernel
s S
<&( ) . Hence, Q is the native space of & on R , i.e., Q = A / $ ( R ) and both
S
inner products coincide. In particular, every f G A / $ ( R ) can be recovered from its
s S
Fourier transform f G Za(R ) fl L ( R ) . 2
A n o t h e r c h a r a c t e r i z a t i o n o f t h e n a t i v e space is g i v e n i n t e r m s o f t h e eigenfunc-
t i o n s o f a linear o p e r a t o r associated w i t h t h e r e p r o d u c i n g k e r n e l . This operator,
T $ : L 2 ( P ) > L (fl),2 is g i v e n b y
/ $(x,y)(p (y)dy
k = \ <f) (x),
k k A; = 1 , 2 , . . . .
Jn
I n general, M e r c e r ' s t h e o r e m allows us t o c o n s t r u c t a r e p r o d u c i n g k e r n e l H i l b e r t
space 7i b y representing t h e f u n c t i o n s i n 7i as i n f i n i t e linear c o m b i n a t i o n s o f t h e
eigenfunctions, i.e.,
{
oo
/: / = ^ C f c 0 *
108 Meshfree Approximation Methods with M A T L A B
w h e r e we used t h e 7 i - o r t h o g o n a l i t y
(<t>j,4>k)H =
y/Xj^/Xk
of t h e eigenfunctions.
W e n o t e t h a t $ is indeed t h e r e p r o d u c i n g k e r n e l o f Ti since t h e eigenfunction
e x p a n s i o n (13.3) o f <E> a n d t h e o r t h o g o n a l i t y o f t h e eigenfunctions imply
oo oo
(/,$(, x)) n = (Y2cj<pj,^2Xk(f)k<Pk(x))n
j=i k=i
_ CkXk4>k{x)
oo
- ^c <f> ix)
k k = fix).
k=i
a n d t h e n a t i v e space i n n e r p r o d u c t c a n be w r i t t e n as
oo ^
(f,g)rt* = J^T-(/i0fc)L (n)(^,0fc>L (n), a 2 f,g e jV&iQ,).
A k
k=i
13.3 E x a m p l e s o f N a t i v e S p a c e s for P o p u l a r R a d i a l B a s i c
Functions
O n e also f r e q u e n t l y sees t h e d e f i n i t i o n
m a s
W 2 ( f l ) = { / G L ( f i ) n C(Q)
2 : Df G L {Q)
2 for a l l \a\ < m, a GN }, (13.5)
13. Reproducing Kernel Hilbert Spaces for Strictly Positive Definite Functions 109
S
w h i c h applies whenever Q, C R is a b o u n d e d d o m a i n . This interpretation will
make clear t h e c o n n e c t i o n b e t w e e n t h e n a t i v e s spaces o f Sobolev splines a n d t h o s e
3
of p o l y h a r m o n i c splines t o be discussed b e l o w . The n o r m of W ^ R ) is u s u a l l y
given by
I|/IIW7(R-) = { H j D a
/lli (R ) 2
S
||<m
A c c o r d i n g t o ( 1 3 . 4 ) , any s t r i c t l y p o s i t i v e d e f i n i t e f u n c t i o n 3> whose F o u r i e r t r a n s -
f o r m decays o n l y a l g e b r a i c a l l y has a Sobolev space as i t s n a t i v e space. I n p a r t i c u l a r ,
the M a t e r n functions
K -t(\\x\\)\\x\\f>-*
0 8
= ' ^ 2'
of Section 4.4 w i t h F o u r i e r t r a n s f o r m
* () = (i + H | ) -
/9
2 / 9
8
can i m m e d i a t e l y be seen t o have n a t i v e space JV* (R ) P = Wg(R) with B > s/2
( w h i c h is w h y some people refer t o t h e M a t e r n f u n c t i o n s as Sobolev splines).
W e n d l a n d ' s c o m p a c t l y s u p p o r t e d f u n c t i o n s <& fc = <>s,fc(|| l b ) o f C h a p t e r 11 c a n
S]
s 2 + k + 1 2 s
be s h o w n t o have n a t i v e spaces A / $ a k (R ) = W ^ 2 ^ (R ) (where the r e s t r i c t i o n
s > 3 is r e q u i r e d for t h e special case k = 0 ) .
N a t i v e spaces for s t r i c t l y c o n d i t i o n a l l y p o s i t i v e d e f i n i t e f u n c t i o n s c a n also be
c o n s t r u c t e d . H o w e v e r , since t h i s is m o r e t e c h n i c a l , we l i m i t e d t h e discussion a b o v e
t o s t r i c t l y p o s i t i v e d e f i n i t e f u n c t i o n s , a n d refer t h e i n t e r e s t e d reader t o t h e b o o k
[ W e n d l a n d (2005a)] o r t h e p a p e r s [Schaback (1999a); Schaback (2000a)]. W i t h t h e
extension of the theory t o s t r i c t l y c o n d i t i o n a l l y positive definite functions the native
spaces o f t h e r a d i a l powers a n d t h i n p l a t e (or surface) splines o f Sections 8.2 a n d
8.3 c a n be s h o w n t o be t h e so-called Beppo-Levi spaces o f o r d e r k
S S a S s
BL F C ( R ) = { / C{R ) : Df G L (R )
2 for a l l | a | = k, a e N } ,
a
where D denotes a generalized derivative o f o r d e r at (defined i n t h e same s p i r i t as
t h e generalized F o u r i e r t r a n s f o r m , see A p p e n d i x B ) . I n fact, t h e i n t e r s e c t i o n o f a l l
S 3
B e p p o - L e v i spaces B L f c ( R ) o f o r d e r k < m y i e l d s t h e Sobolev space W ^ R ) . In
S
t h e l i t e r a t u r e t h e B e p p o - L e v i spaces B L f c ( R ) are sometimes referred t o as homo-
s
geneous Sobolev spaces of order k. A l t e r n a t i v e l y , t h e B e p p o - L e v i spaces o n R are
defined as
S S S
BL F C ( R ) = { / G C{R ) : /(-)|| | | ? G L (R )},
2
a n d t h e f o r m u l a s g i v e n i n C h a p t e r 8 for t h e F o u r i e r t r a n s f o r m s o f r a d i a l powers a n d
t h i n p l a t e splines show i m m e d i a t e l y t h a t t h e i r n a t i v e spaces are B e p p o - L e v i spaces.
T h e s e m i - n o r m o n BLfc is g i v e n b y
s
Here t h e sine f u n c t i o n is defined for a n y x = (xi,... ,x )
s M as sine a; =
m o r e d e t a i l s o n S h a n n o n ' s s a m p l i n g t h e o r e m see, e.g., Chap-
ter 29 i n t h e b o o k [Cheney a n d L i g h t (1999)] or t h e p a p e r [Unser ( 2 0 0 0 ) ] .
Chapter 14
ill
112 Meshfree Approximation Methods with M A T L A B
order k i f
h) k
\\f-V$ \\ p = 0(h ) for/i-O.
h) k w
M o r e o v e r , i f we c a n also show t h a t | | / - V \\ f p / o(h ), then V has exact
L -approximation
p order k. W e w i l l c o n c e n t r a t e m o s t l y o n t h e case p = oo {i.e.,
p o i n t w i s e estimates), b u t a p p r o x i m a t i o n o r d e r i n o t h e r n o r m s c a n also be s t u d i e d .
I n order t o keep t h e f o l l o w i n g discussion as t r a n s p a r e n t as possible we w i l l r e s t r i c t
ourselves t o s t r i c t l y p o s i t i v e definite f u n c t i o n s . W i t h ( c o n s i d e r a b l y ) m o r e t e c h n i c a l
d e t a i l s t h e f o l l o w i n g can also be f o r m u l a t e d for s t r i c t l y c o n d i t i o n a l l y p o s i t i v e d e f i n i t e
f u n c t i o n s (see [ W e n d l a n d (2005a)] for d e t a i l s ) .
14.2 L a g r a n g e F o r m of t h e I n t e r p o l a n t a n d Cardinal
Basis Functions
Ac = y
T
with Aij = (xi - Xj), i,j = 1,...,N, c = [ci,..., c],
N and y =
T
[f(xi),...,f(xN)] has a u n i q u e s o l u t i o n . I n t h e f o l l o w i n g we w i l l consider the
m o r e general s i t u a t i o n w h e r e $ is a s t r i c t l y p o s i t i v e d e f i n i t e k e r n e l , i.e., t h e entries
of A are g i v e n b y A^ = &(xi,Xj). T h e uniqueness r e s u l t holds i n t h i s case also.
I n order t o o b t a i n t h e c a r d i n a l basis f u n c t i o n s u* , j = 1,... 3 ,N, w i t h the prop-
e r t y u*(xi) = Sij, i.e.,
Uj{Xi) =
we consider t h e linear s y s t e m
S
T h e o r e m 1 4 . 1 . Suppose <fr is a strictly positive definite kernel on I R . Then, for any
distinct points x\,..., XN, there exist functions u* e span{<E>(-, Xj),j = 1,..., N}
such that Uj(xi) = 5ij.
T h e r e f o r e , we can w r i t e t h e i n t e r p o l a n t Vf t o / a t x\,..., XN m t h e c a r d i n a l
form
14- The Power Function and Native Space Error Estimates 113
I t is o f interest t o n o t e t h a t t h e c a r d i n a l f u n c t i o n s d o n o t d e p e n d o n t h e d a t a
values o f t h e i n t e r p o l a t i o n p r o b l e m . O n c e t h e d a t a sites are fixed a n d t h e basic
f u n c t i o n is chosen w i t h a n a p p r o p r i a t e s h a p e p a r a m e t e r (whose o p t i m a l v a l u e w i l l
d e p e n d o n t h e d a t a ) , t h e n t h e c a r d i n a l f u n c t i o n s are d e t e r m i n e d b y t h e l i n e a r s y s t e m
(14.1). W e have p l o t t e d v a r i o u s c a r d i n a l f u n c t i o n s based o n t h e G a u s s i a n basic
f u n c t i o n w i t h shape p a r a m e t e r e = 5 i n F i g u r e s 1 4 . 1 - 1 4 . 3 . T h e dependence o n t h e
d a t a l o c a t i o n s is c l e a r l y a p p a r e n t w h e n c o m p a r i n g t h e different d a t a d i s t r i b u t i o n s
( u n i f o r m l y spaced i n F i g u r e 1 4 . 1 , t e n s o r - p r o d u c t C h e b y s h e v i n F i g u r e 14.2, and
H a l t o n p o i n t s i n F i g u r e 14.3). T h e d a t a sets c a n be seen i n F i g u r e 14.5 b e l o w .
Fig. 14.1 Cardinal functions for Gaussian interpolation (with e = 5) on 81 uniformly spaced
2
points in [0, l ] . Centered at an edge point (left) and at an interior point (right).
Fig. 14.2 Cardinal functions for Gaussian interpolation (with e = 5) on 81 tensor-product Cheby-
2
shev points in [0, l ] . Centered at an edge point (left) and at an interior point (right).
Fig. 14.3 Cardinal functions for Gaussian interpolation (with e = 5) on 81 Halton points in
2
[0, l ] . Centered at an edge point (left) and at an interior point (right).
Fig. 14.4 Cardinal functions for multiquadric interpolation (with e = 5) on 81 Halton points in
2
[0, l ] . Centered at an edge point (left) and at an interior point (right).
P r o g r a m 14.1. RBFCardinalFunction.m
7o R B F C a r d i n a l F u n c t i o n
/ Computes and p l o t s c a r d i n a l f u n c t i o n f o r 2D RBF i n t e r p o l a t i o n
/ C a l l s on: D i s t a n c e M a t r i x
0
1 r b f = @(e,r) e x p ( - ( e * r ) . " 2 ) ; ep = 5 ;
2 N = 81; g r i d t y p e = 'u';
3 neval = 8 0 ; M = neval~2;
14- The Power Function and Native Space Error Estimates 115
/ Load data p o i n t s
0
j=l i=l j = l
Then
s
D e f i n i t i o n 1 4 . 1 . Suppose fiCl a n d $ G C(fl x fl) is s t r i c t l y p o s i t i v e d e f i n i t e
S
on JR . For a n y d i s t i n c t p o i n t s X = {x,..., XN} C fl t h e power function is defined
by
w h e r e u* is t h e v e c t o r o f c a r d i n a l f u n c t i o n s f r o m T h e o r e m 1 4 . 1 .
116 Meshfree Approximation Methods with M A T L A B
U s i n g t h e d e f i n i t i o n o f t h e n a t i v e space n o r m f r o m t h e p r e v i o u s c h a p t e r we c a n
r e w r i t e t h e q u a d r a t i c f o r m Q(u) as
^2 Y2 Yl
N N N
N
2 x $ x
= ($(, x), $ ( - , W n } - )> ("' i))wsi)
N N
+ i j{(-i
u u x
i), H-> x
j))rt*(n)
i=i j=i
N N
3=1 3=1
2
N
(14.2)
3= 1
T T
Q(u) = (x, x) - 2u b(x) 4- u Au. (14.3)
T T
P* (x)
jX = y/Q(u*(x)) = \J${x,x) - 2(u*(x)) b(x) + (u*(x)) Au*(x).
x x x T
P*,x{x) = \/$( , )-(u*( )) b(x)
T
= \J$(x,x) - (u*(x)) Au*(x).
0<P*,*(aO < y / $ ( x , x ) .
P l o t s o f t h e p o w e r f u n c t i o n for t h e G a u s s i a n w i t h e 6 o n t h r e e different p o i n t
sets w i t h N = 81 i n t h e u n i t square are p r o v i d e d i n F i g u r e 14.5. T h e sets o f d a t a
p o i n t s are displayed o n t h e left, w h i l e t h e p l o t s o f t h e power f u n c t i o n are d i s p l a y e d
in the right column. Dependence o f t h e p o w e r f u n c t i o n o n t h e d a t a l o c a t i o n s is
clearly v i s i b l e . I n fact, t h i s c o n n e c t i o n was used i n a recent p a p e r [De M a r c h i et al.
(2005)] t o i t e r a t i v e l y o b t a i n a n o p t i m a l set o f d a t a l o c a t i o n s t h a t are independent
of t h e d a t a values.
A t t h i s p o i n t t h e power f u n c t i o n is m o s t l y a t h e o r e t i c a l t o o l t h a t helps us b e t t e r
u n d e r s t a n d e r r o r estimates since we c a n decouple t h e effects due t o t h e d a t a f u n c t i o n
/ f r o m those due t o t h e basic f u n c t i o n <& a n d t h e d a t a l o c a t i o n s X (see t h e f o l l o w i n g
T h e o r e m 14.2).
T h e power f u n c t i o n is defined i n a n analogous w a y for s t r i c t l y c o n d i t i o n a l l y
p o s i t i v e definite functions.
s s
T h e o r e m 14.2. Let C I , $ e C ( f 2 x f2) be strictly positive definite on R,
and suppose that the points X = {xi,... ,xjy} are distinct. Denote the interpolant
to f G A/$(f2) on X by Vf. Then for every x G O
f(x) = (/,$(", 2 0 ) ^ ( 0 ) .
W e express t h e i n t e r p o l a n t i n i t s c a r d i n a l f o r m a n d a p p l y t h e r e p r o d u c i n g p r o p e r t y
o f 3>. T h i s gives us
N
Vf(x) = J2f(*j)uj(x)
3= 1
N
3= 1
N
118 Meshfree Approximation Methods with M A T L A B
5
z-m-
0 0
1* o o
o o
0.8
0.6
o o
0.4
o o o o
0.2
o o o o o
o o o o o
0*
0.2 0.4 0.6 0.8 0 0
X
0 0
Fig. 14.5 Data sites and power function for Gaussian interpolant with e = 6 based on N = 81
uniformly distributed points (top), tensor-product Chebyshev points (middle), and Halton points
(bottom).
N o w a l l t h a t r e m a i n s t o be done is t o c o m b i n e t h e t w o f o r m u l a s j u s t d e r i v e d a n d
apply the Cauchy-Schwarz inequality. T h u s ,
N
\f(x)-V (x)\
f = (f,&(-,x)-Y2 j( )*(-i j))M-*(n)
u x x
3= 1
14- The Power Function and Native Space Error Estimates 119
<
i=i
= H/II.V(n)-P*,*(aO,
T h i s is analogous t o t h e s t a n d a r d e r r o r e s t i m a t e for p o l y n o m i a l i n t e r p o l a t i o n c i t e d
i n most n u m e r i c a l analysis t e x t s . N o t e , however, t h a t , for a n y g i v e n basic f u n c t i o n
$ , a change o f t h e shape p a r a m e t e r e w i l l have a n effect o n b o t h t e r m s i n t h e e r r o r
b o u n d i n T h e o r e m 14.2 since t h e n a t i v e space n o r m o f / varies w i t h e.
S
T h e o r e m 1 4 . 3 . Let fl C JR , and suppose 3> C(fl x fl) is strictly positive definite
on R . s
Let X = {x\,..., XN} be a set of distinct points in fl, and define the
quadratic form Q(u) as in (14-2). The minimum of Q(u) is given for the vector
u = u*(x) from Theorem 14-1, i-e.,
N
Q(u*(x)) < Q(u) for all u e R .
T T
Q{u) = $(x, x) - 2u b(x) + u Au.
T h e m i n i m u m o f t h i s q u a d r a t i c f o r m is g i v e n b y t h e s o l u t i o n o f t h e linear s y s t e m
Au = b(x).
S
D e f i n i t i o n 1 4 . 2 . A r e g i o n fl C I R satisfies a n interior cone condition i f t h e r e exists
a n angle 6 G ( 0 , 7 r / 2 ) a n d a r a d i u s r > 0 s u c h t h a t for every x fl t h e r e exists a
u n i t v e c t o r (x) such t h a t t h e cone
a T
C={x + Xy: y G E , | | y | | = 1 , y (x)
2 >cosd, AG[0,r]}
is c o n t a i n e d i n fl.
S
Theorem 1 4 . 4 . Suppose fl C I R is bounded and satisfies an interior cone condi-
tion, and let be a non-negative integer. Then there exist positive constants ho, c\,
and C2 such that for all X = {x,..., Ejv} C fl with h ,nx < ho and every x G fl
there exist numbers ui(x),..., ujv(x) with
N
(1) ^^Uj(x)p(xj) = p(x) for all polynomials p GII|,
i=i
N
(2) X>;(a:)| <ci,
3= 1
(3) Uj{x) = 0 if \\x - xj\\ 2 > c h Q.
2 Xj
9 l m
a n d t h e n o t a t i o n D^^iw, ) used b e l o w i n d i c a t e s t h a t t h e o p e r a t o r is a p p l i e d t o
$ ( i y , ) v i e w e d as a f u n c t i o n o f t h e second v a r i a b l e .
14- The Power Function and Native Space Error Estimates 121
T h e m u l t i v a r i a t e T a y l o r e x p a n s i o n o f t h e f u n c t i o n $ ( t o , ) centered a t w is g i v e n
by
$(w,z)= J2 3 i \ z - w f + R(w,z)
\/3\<2k P
'
w i t h remainder
R(w,z)= 2^ /3!
\0\=2k P
'
S
T h e o r e m 14.5. Suppose fl C JR is bounded and satisfies an interior cone condi-
2k
tion. Suppose <& G C (fl x fl) is symmetric and strictly positive definite. Denote
the interpolant to f G A/$(f2) on the set X byVf. Then there exist positive constants
ho and C (independent of x, f and such that
\f(x) - V ( )\
f X < Ch y/C^x)\\f\U^ ,
XtCi a)
provided h ,n
x < ho. Here
Proof. B y T h e o r e m 14.2 we k n o w
\f(x)-Vf(x)\<P*, (*)\\f\U.M- x
Therefore, we n o w derive t h e b o u n d
P*M*) < c h k
x ^ c * { x )
M o r e o v e r , we k n o w f r o m T h e o r e m 14.3 t h a t t h e q u a d r a t i c f o r m Q(u) is m i n i m i z e d
by u u*(x). Therefore, a n y o t h e r coefficient v e c t o r u w i l l y i e l d a n u p p e r b o u n d
on t h e power f u n c t i o n . W e t a k e u = u{x) f r o m T h e o r e m 14.4 so t h a t we are ensured
t o have p o l y n o m i a l p r e c i s i o n o f degree i > 2k 1.
For t h i s specific choice o f coefficients we have
[P^ {x)\
jX
2
< Q(u) = $(x, x) - 2 ^2 Uj$(x : xj) + Y2Y2 u u
i i( iix x
i)i
3 i 3
122 Meshfree Approximation Methods with M A T L A B
Q(u) = ${x,x)-2Y J m ( g
i - x
f R
+ (> x x
i)
\/3\<2k
,/3
D%$(xi,Xi)
W
+ EE * 3
E
\0\<2k
{xj Xi)^ ~\~ R{x>i, Xj)
+* E P
*(* ~ *^ + E E ( i 4 . 5 )
i |/3|<2fc ' i j
Now we c a n a p p l y t h e T a y l o r e x p a n s i o n a g a i n a n d m a k e t h e o b s e r v a t i o n that
D^(xi,Xj)
E
\/3\<2k
0!
(x - Xi) 13
= <E>(xi, x) - R(xi, x). (14.6)
Q(u) = Q(x, x) 23 u
2R(x,
j Xj) ^3 UiR(x{,Xj)
+ 23 U
i [( ii x x
) - R( i, x x
)\ (14.7)
O n e f i n a l T a y l o r e x p a n s i o n we need is ( u s i n g t h e s y m m e t r y o f <E)
$(xi,x) = &(x,Xi)= 2^ ^ ^ ~ ^ - ( x i - x ) p
+ R(x,Xi). (14.8)
\/3\<2k
Q( )u
= _
U
J
R(x, Xj) + R(xj,x) 23 UiR(x Xj)i:
2 k
T h e o r e m 14.5 says t h a t i n t e r p o l a t i o n w i t h a C s m o o t h k e r n e l <E> has approx-
i m a t i o n order k. T h u s , for i n f i n i t e l y s m o o t h s t r i c t l y p o s i t i v e definite functions
such as t h e Gaussians, L a g u e r r e - G a u s s i a n s , P o i s s o n r a d i a l f u n c t i o n s , a n d t h e gen-
eralized inverse m u l t i q u a d r i c s we see t h a t t h e a p p r o x i m a t i o n o r d e r k is a r b i t r a r i l y
h i g h . For s t r i c t l y p o s i t i v e d e f i n i t e f u n c t i o n s w i t h l i m i t e d smoothness such as t h e
M a t e r n f u n c t i o n s , t h e W h i t t a k e r r a d i a l f u n c t i o n s , as w e l l as a l l o f t h e compactly
s u p p o r t e d functions, t h e a p p r o x i m a t i o n o r d e r is l i m i t e d b y t h e smoothness o f t h e
basic f u n c t i o n .
T h e e s t i m a t e i n T h e o r e m 14.5 is s t i l l generic. I t does n o t f u l l y a c c o u n t for t h e
p a r t i c u l a r basic f u n c t i o n <& b e i n g used for t h e i n t e r p o l a t i o n since t h e factor C$(x)
s t i l l depends o n <E. M o r e o v e r , we p o i n t o u t t h a t t h e t e r m C$(x) may include a
h i d d e n dependence o n hx,n- For m o s t basic f u n c t i o n s i t w i l l be possible t o use
C<s>(x) t o "squeeze o u t " a d d i t i o n a l powers o f h. T h i s is t h e reason for s p l i t t i n g t h e
c o n s t a n t i n f r o n t o f t h e fo-power i n t o a generic C a n d a C$(x).
T h e s t a t e m e n t o f T h e o r e m 14.5 c a n be generalized for s t r i c t l y c o n d i t i o n a l l y pos-
i t i v e definite functions a n d also t o cover t h e error for a p p r o x i m a t i n g t h e d e r i v a t i v e s
of / b y derivatives o f Vf. W e state this general theorem w i t h o u t comment (c.f.
[ W e n d l a n d (2005a)] for d e t a i l s ) .
S
Theorem 14.6. Suppose Q C ] R is open and bounded and satisfies an interior
2k
cone condition. Suppose <& C (Q x Q.) is symmetric and strictly conditionally
positive definite of order m on W. Denote the interpolant to f j\f<&(Q) on the
(m 1 )-unisolvent set X by Vf. Fix ex NQ with \ot\ < k. Then there exist positive
constants ho and C (independent of x, f and such that
a a
\D f(x) - D V (x)\ f < C h ^ V C ^ l f U ^ ,
provided h ,n
x < ho- Here
15.1 N a t i v e S p a c e E r r o r B o u n d s for S p e c i f i c B a s i s F u n c t i o n s
\\f--P \\
f Loo(Q) <e*^|/Ufc ( n ) > (15.2)
125
126 Meshfree Approximation Methods with M A T L A B
for all data sites X with sufficiently small fill distance hx,a-
e
Moreover, if ip satisfies even \ipW(r)\ < M, then
e l n l
Wf-PfU^n) <e ^n' ||/|k. n) ( (15-3)
_ e 2 x 2 e T
Example 15.1. For Gaussians &(x) = e H H , e > 0 fixed, we have ip{r) = e~ * ',
e 2 i 2 r 2
so t h a t ipW(r) = (-l) e e- for t > = 0. T h u s , M = e , a n d t h e e r r o r b o u n d
0
(15.3) applies. T h i s k i n d o f e x p o n e n t i a l a p p r o x i m a t i o n o r d e r is u s u a l l y r e f e r r e d t o
as spectral (or even s u p e r - s p e c t r a l ) a p p r o x i m a t i o n o r d e r . W e emphasize t h a t t h i s
nice p r o p e r t y holds o n l y i n t h e n o n - s t a t i o n a r y s e t t i n g a n d for d a t a f u n c t i o n s / t h a t
are i n t h e n a t i v e space of t h e Gaussians such as b a n d - l i m i t e d f u n c t i o n s .
2
Example 15.2. For generalized (inverse) m u l t i q u a d r i c s $(x) = ( 1 + |Ja5|| )^, (3 < 0,
e 6
or 0 < 3 N , we have ip(r) = ( 1 + r ) ^ . I n t h i s case one c a n show t h a t \ip (r)\ < \M
w h e n e v e r ^ > \3~\. H e r e M = 1 + 1/3+11. T h e r e f o r e , t h e e r r o r e s t i m a t e (15.2) applies,
i.e., i n t h e n o n - s t a t i o n a r y s e t t i n g generalized (inverse) m u l t i q u a d r i c s have s p e c t r a l
a p p r o x i m a t i o n order.
/2 2 2 2
E x a m p l e 1 5 . 3 . For L a g u e r r e - G a u s s i a n s $(cc) = L (\\ex\\ )e- ^ , n e > 0 fixed,
2 2 e2r e
w e have ip(r) = Ln (e r)e~ a n d t h e d e r i v a t i v e s ip^ w i l l be b o u n d e d b y ip^ \0) =
2i
Pn{) , where p n is a p o l y n o m i a l o f degree n . T h u s , t h e a p p r o x i m a t i o n p o w e r o f
L a g u e r r e - G a u s s i a n s falls b e t w e e n (15.3) a n d (15.2) a n d L a g u e r r e - G a u s s i a n s have at
least s p e c t r a l a p p r o x i m a t i o n p o w e r .
i n d e p e n d e n t o f x (see [ W e n d l a n d ( 2 0 0 5 a ) ] ) . T h e r e f o r e , t h i s results i n t h e f o l l o w i n g
e r r o r e s t i m a t e s (see, e.g., [ W e n d l a n d ( 2 0 0 5 a ) ] , o r t h e m u c h earlier [ W u a n d Schaback
(1993)] w h e r e o t h e r p r o o f t e c h n i q u e s were used).
K0 > w e e t
E x a m p l e 1 5 . 4 . For t h e M a t e r n f u n c t i o n s <I>(CE) = ~^-^vlt) ' @ '
a
\D~f{x)-D V,{x)\ < Ch -*-\f\^ . x m (15.4)
R a d i a l powers a n d t h i n p l a t e splines c a n be i n t e r p r e t e d as a g e n e r a l i z a t i o n o f u n i -
v a r i a t e n a t u r a l splines. T h e r e f o r e , w e k n o w t h a t t h e a p p r o x i m a t i o n o r d e r e s t i m a t e s
o b t a i n e d v i a t h e n a t i v e space a p p r o a c h are n o t o p t i m a l . For e x a m p l e , for i n t e r -
p o l a t i o n w i t h u n i v a r i a t e piecewise l i n e a r splines ( i . e . , $(cc) = ||cc|| i n x G R ) w e
k n o w t h e a p p r o x i m a t i o n o r d e r t o b e O(h), whereas t h e e s t i m a t e (15.6) y i e l d s o n l y
2 2
a p p r o x i m a t i o n o r d e r 0{h}/ ). S i m i l a r l y , for t h i n p l a t e splines &(x) = ||cc|| l o g ||ic||
2
one w o u l d expect o r d e r 0(h ) i n t h e case o f p u r e f u n c t i o n a p p r o x i m a t i o n . H o w e v e r ,
t h e e s t i m a t e (15.7) yields o n l y 0(h). These t w o e x a m p l e s suggest t h a t i t s h o u l d be
possible t o " d o u b l e " t h e a p p r o x i m a t i o n o r d e r s o b t a i n e d t h u s far.
O n e c a n i m p r o v e t h e e s t i m a t e s for f u n c t i o n s w i t h finite smoothness ( i . e . , M a t e r n
f u n c t i o n s , W e n d l a n d f u n c t i o n s , r a d i a l powers, a n d t h i n p l a t e splines) b y e i t h e r (or
b o t h ) o f t h e f o l l o w i n g t w o ideas:
b y r e q u i r i n g t h e d a t a f u n c t i o n / t o be even s m o o t h e r t h a n w h a t t h e n a t i v e
space prescribes, i.e., b y b u i l d i n g c e r t a i n b o u n d a r y c o n d i t i o n s i n t o t h e n a t i v e
space;
b y u s i n g weaker n o r m s t o m e a s u r e t h e e r r o r .
(1997)])
2k 1+s
11/ - P / I U n ) < Ch + \\f\\ , r s
a ( w k+ + {R3)1 (15.8)
128 Meshfree Approximation Methods with M A T L A B
2 f c + 1 + S S s
w h e r e / is assumed t o lie i n t h e subspace W 2 ( R ) o f Af<j,(R ) = W^"^ . For
r =
e x a m p l e , for t h e p o p u l a r basic f u n c t i o n ^3,1 ( ) 0- ~~ r)+(4r + 1) w e have
6
\\f~V \\ ^ f L <Ch \\f\\ e . w iRs)
N o t e t h a t t h e n u m e r i c a l e x p e r i m e n t s i n T a b l e 12.2 p r o d u c e d R M S - c o n v e r g e n c e r a t e s
o n l y as h i g h as 4.5.
For r a d i a l powers a n d t h i n p l a t e splines o n e o b t a i n s L 2 - e r r o r e s t i m a t e s o f o r -
f3+s 2 k + s
der 0(h ) and 0 ( h ), respectively. T h e s e e s t i m a t e s a r e o p t i m a l , i.e., e x a c t
a p p r o x i m a t i o n orders, as s h o w n i n [ B e j a n c u ( 1 9 9 9 ) ] .
M o r e w o r k o n i m p r o v e d e r r o r b o u n d s c a n b e f o u n d i n , e.g., [ J o h n s o n (2004a)]
or [Schaback ( 1 9 9 9 b ) ] .
T h e e r r o r b o u n d s m e n t i o n e d so f a r were a l l v a l i d u n d e r t h e a s s u m p t i o n t h a t t h e
f u n c t i o n / p r o v i d i n g t h e d a t a c a m e f r o m ( a subspace o f ) t h e n a t i v e space o f t h e
RBF employed i n the interpolation. W e n o w m e n t i o n a f e w recent r e s u l t s that
provide error bounds for i n t e r p o l a t i o n o f functions / not i n t h e n a t i v e space o f
t h e basic f u n c t i o n . I n p a r t i c u l a r , t h e case w h e n / lies i n some S o b o l e v space is o f
great i n t e r e s t . A r a t h e r general t h e o r e m w a s r e c e n t l y g i v e n i n [ N a r c o w i c h et al.
(2005)]. I n t h i s t h e o r e m N a r c o w i c h , W a r d a n d W e n d l a n d p r o v i d e S o b o l e v b o u n d s
for f u n c t i o n s w i t h m a n y zeros. H o w e v e r , since t h e i n t e r p o l a t i o n e r r o r f u n c t i o n is
j u s t such a f u n c t i o n , these b o u n d s have a d i r e c t a p p l i c a t i o n t o o u r s i t u a t i o n . W e
p o i n t o u t t h a t t h i s t h e o r e m a g a i n applies t o t h e n o n - s t a t i o n a r y s e t t i n g .
T h e o r e m 15.2. Let k be a positive integer, 0 < a < l , l < p < 00, 1 < q < 0 0
and let a be a multi-index satisfying k > \ct\ + s/p or, for p = 1, k > \a\ -f- s.
Let X C fl be a discrete set with fill distance h hx,n where fl is a compact set
k+a
with Lipschitz boundary which satisfies an interior cone condition. If u e W (fl)
satisfies u\x = 0, then
k+a a s 1 1
1 , < rh ~\ \- ( /P- /l)+1 | 7/ t ,
k + a
Suppose we have a n i n t e r p o l a t i o n process V : W ' (fl) > V t h a t m a p s S o b o l e v
k + a
f u n c t i o n s t o a f i n i t e - d i m e n s i o n a l subspace V o f W (fl) w i t h t h e a d d i t i o n a l p r o p -
f e + C T
e r t y \pf\ k+a^ w < |/lvK ( f i ) ' t h e n T h e o r e m 15.2 i m m e d i a t e l y y i e l d s t h e e r r o r
estimate
f c + C T s
T h e a d d i t i o n a l p r o p e r t y [Pf\ k+a^ w < |/lw ( n ) * c e r t a i n l y satisfied p r o v i d e d
t h e n a t i v e space o f t h e basic f u n c t i o n is a Sobolev space. T h u s , T h e o r e m 15.2
p r o v i d e s a n a l t e r n a t i v e t o t h e p o w e r f u n c t i o n a p p r o a c h discussed i n t h e p r e v i o u s
15. Refined and Improved Error Bounds 129
ci(l + ||u>||l)- T
< $(w) < c (l + 2 ||a;||l)- , T
- oo, u e R,
s
(15.9)
t h e n t h e above e r r o r e s t i m a t e h o l d s w i t h r = k + a a n d p = 2 p r o v i d e d t h e f i l l
distance is sufficiently s m a l l . E x a m p l e s o f basic f u n c t i o n s w i t h a n a p p r o p r i a t e l y
decaying F o u r i e r t r a n s f o r m are p r o v i d e d b y t h e families o f W e n d l a n d or M a t e r n
functions. I n a d d i t i o n , N a r c o w i c h , W a r d a n d W e n d l a n d s h o w t h a t analogous e r r o r
b o u n d s h o l d for r a d i a l powers a n d t h i n p l a t e splines (whose n a t i v e spaces are B e p p o -
L e v i spaces).
For f u n c t i o n s / outside t h e n a t i v e space o f a basic f u n c t i o n <E> whose F o u r i e r
t r a n s f o r m satisfies (15.9) N a r c o w i c h , W a r d a n d W e n d l a n d p r o v e
T h e o r e m 15.3. Let k and n be integers with 0 < n < k < r and k > s/2, and let
k
f 6 C (fl). Also suppose that X { x i , . . . ,x^} C fl satisfies diam(A') < 1 with
sufficiently small fill distance. Then for any 1 < q < oo we have
We r e m i n d t h e reader t h a t t h e f i l l distance c o r r e s p o n d s t o t h e r a d i u s o f t h e
largest possible e m p t y b a l l t h a t c a n be p l a c e d b e t w e e n t h e p o i n t s i n X. T h e sep-
a r a t i o n distance (c.f. C h a p t e r 16), o n t h e o t h e r h a n d , c a n be i n t e r p r e t e d as t h e
r a d i u s o f t h e largest b a l l t h a t c a n be p l a c e d a r o u n d every p o i n t i n X such t h a t n o
t w o balls o v e r l a p . T h u s , t h e m e s h r a t i o is a measure o f t h e n o n - u n i f o r m i t y o f t h e
d i s t r i b u t i o n o f the points i n X.
S i m i l a r results were o b t a i n e d earlier i n [ B r o w n l e e a n d L i g h t (2004)] (for r a d i a l
powers a n d t h i n p l a t e splines o n l y ) , a n d i n [ Y o o n (2003)] (for shifted surface splines,
see b e l o w ) .
s 2
\f-r \ f L o o <ch^- / \\f\\ c 0 { m
L o w e r b o u n d s o n t h e a p p r o x i m a t i o n o r d e r for a p p r o x i m a t i o n b y p o l y h a r m o n i c
splines were r e c e n t l y p r o v i d e d i n [ M a i o r o v (2005)]. M a i o r o v studies for a n y 1 <
p, q < oo a n d 3/s > (1/p l/q)+ the error E of //^-approximation of functions
b y p o l y h a r m o n i c splines. M o r e precisely,
a s
E(W^{0, l] ),n {p ,3),L {^,lY))>cN-^ ,
N p q
3= 1
where
Ve
h = <p(h-)-
s t u d i e d b y [ B u h m a n n (1989a)] o n i n f i n i t e l a t t i c e s . H o w e v e r , for q u a s i - i n t e r p o l a t i o n
the approximate approximation a p p r o a c h o f M a z ' y a shows t h a t i t is possible t o
choose eo i n such a w a y t h a t t h e level at w h i c h t h e s a t u r a t i o n occurs can be c o n -
t r o l l e d (see, e.g., [ M a z ' y a a n d S c h m i d t ( 1 9 9 6 ) ] ) . T h e r e f o r e , Gaussians m a y v e r y
w e l l be used for s t a t i o n a r y i n t e r p o l a t i o n p r o v i d e d a n a p p r o p r i a t e i n i t i a l shape pa-
rameter is chosen. W e w i l l i l l u s t r a t e t h i s b e h a v i o r i n t h e n e x t c h a p t e r . T h e same
k i n d o f a r g u m e n t also applies t o t h e L a g u e r r e - G a u s s i a n s o f S e c t i o n 4.2.
P<b, ,x{<x)
h < C (e h s^J
h x
E x a m p l e 1 5 . 1 1 . S t a t i o n a r y i n t e r p o l a t i o n w i t h (inverse) m u l t i q u a d r i c s , r a d i a l p o w -
ers a n d t h i n p l a t e splines presents no difficulties. I n fact, [Schaback (1995c)] shows
t h a t t h e n a t i v e space e r r o r b o u n d for t h i n p l a t e splines a n d r a d i a l powers is i n v a r i a n t
under a s t a t i o n a r y scaling. T h e r e f o r e , t h e n o n - s t a t i o n a r y b o u n d o f T h e o r e m 15.3
applies i n t h e s t a t i o n a r y case also. T h e a d v a n t a g e o f scaling t h i n p l a t e splines or
r a d i a l powers comes f r o m t h e a d d e d s t a b i l i t y one can g a i n b y p r e v e n t i n g t h e sepa-
r a t i o n distance f r o m b e c o m i n g t o o s m a l l (see C h a p t e r 16 a n d t h e w o r k o f Iske o n
local p o l y h a r m o n i c spline a p p r o x i m a t i o n , e.g., [Iske ( 2 0 0 4 ) ] ) .
Y o o n p r o v i d e s e r r o r e s t i m a t e s for s t a t i o n a r y a p p r o x i m a t i o n o f r o u g h f u n c t i o n s
(i.e., f u n c t i o n s t h a t are n o t i n t h e n a t i v e space o f t h e basic f u n c t i o n ) b y so-called
shifted surface splines. S h i f t e d surface splines are o f t h e f o r m
I r / 3 S / 2 1 2 7 2
*M = J (- ) " (1 + I N I ) " - , * odd,
1 } 2 s 2 2 1/2
\ ( - l y - ^ + ^ l + \\x\ f~ l log(l + ||a:|| ) > s even,
where s/2 < 6 G N . These f u n c t i o n s i n c l u d e a l l o f t h e (inverse) m u l t i q u a d r i c s ,
r a d i a l powers a n d t h i n p l a t e splines.
Y o o n has t h e f o l l o w i n g t h e o r e m (see [ Y o o n (2003)] for t h e L p case, a n d [ Y o o n
(2001)] for Loo b o u n d s o n l y ) .
have
11/ - V \ \
f L p i a ) < Ch^\f\ , w { R 3 ) , 1 < p < oo,
with
7 p = mm{3,3-s/2 + s/p}.
7 P _ / 3 + Q
I I / - ^ / I I M ) = ^ ) -
15.5 C o n v e r g e n c e w i t h R e s p e c t to the S h a p e P a r a m e t e r
15.6 P o l y n o m i a l I n t e r p o l a t i o n as t h e L i m i t of R B F I n t e r p o l a t i o n
f( )
V x
= Y, M\\ ( - 3)\\)>
C X X x e
W,b]cM,
t o f u n c t i o n values a t N d i s t i n c t d a t a sites t e n d s t o t h e L a g r a n g e i n t e r p o l a t i n g
p o l y n o m i a l o f / as e 0.
T h e m u l t i v a r i a t e case is m o r e c o m p l i c a t e d . However, the l i m i t i n g R B F inter-
p o l a n t ( p r o v i d e d i t exists) is g i v e n b y a low-degree m u l t i v a r i a t e p o l y n o m i a l (see
[Larsson a n d F o r n b e r g ( 2 0 0 5 ) ; Schaback ( 2 0 0 5 ) ; Schaback ( 2 0 0 6 b ) ] ) . F o r e x a m p l e ,
if t h e d a t a sites are l o c a t e d s u c h t h a t t h e y g u a r a n t e e a u n i q u e p o l y n o m i a l i n t e r -
p o l a n t , t h e n t h e l i m i t i n g R B F i n t e r p o l a n t is g i v e n b y t h i s p o l y n o m i a l . I f p o l y n o -
m i a l i n t e r p o l a t i o n is n o t u n i q u e , t h e n t h e R B F l i m i t depends o n t h e choice o f basic
function. H o w e v e r , these s t a t e m e n t s r e q u i r e t h e R B F s t o satisfy a n (unproven)
c o n d i t i o n o n c e r t a i n coefficient m a t r i c e s A j. Pt I n [ L a r s s o n a n d F o r n b e r g (2005)]
t h e a u t h o r s also p r o v i d e a n e x p l a n a t i o n for t h e e r r o r b e h a v i o r for s m a l l values o f
t h e shape p a r a m e t e r , a n d for t h e existence o f a n o p t i m a l ( p o s i t i v e ) value o f e g i v -
ing rise t o a g l o b a l m i n i m u m o f t h e e r r o r f u n c t i o n . F o r t h e special case o f scaled
Gaussians Schaback [Schaback (2005)] shows t h a t t h e R B F i n t e r p o l a n t converges
t o t h e d e B o o r a n d R o n least p o l y n o m i a l i n t e r p o l a n t (see [ d e B o o r a n d R o n ( 1 9 9 0 ) ;
d e B o o r a n d R o n (1992a)] a n d also [ d e B o o r ( 2 0 0 6 ) ] ) as e - > 0.
I n [ F o r n b e r g a n d W r i g h t (2004)] t h e a u t h o r s describe a so-called Contour-Pade
a l g o r i t h m t h a t makes i t possible (for d a t a sets o f r e l a t i v e l y m o d e s t size) t o c o m p u t e
t h e R B F i n t e r p o l a n t for a l l values o f t h e shape p a r a m e t e r e i n c l u d i n g t h e l i m i t i n g
case e -> 0. W e present some n u m e r i c a l r e s u l t o b t a i n e d w i t h G r a d y W r i g h t ' s
M A T L A B toolbox in Chapter 17.
We w i l l later exploit the connection between R B F and p o l y n o m i a l interpolants
t o design n u m e r i c a l solvers for p a r t i a l d i f f e r e n t i a l e q u a t i o n s .
Chapter 16
16.1 S t a b i l i t y a n d C o n d i t i o n i n g of R a d i a l B a s i s Function
Interpolants
A s t a n d a r d c r i t e r i o n for m e a s u r i n g t h e n u m e r i c a l s t a b i l i t y o f a n approximation
m e t h o d is i t s c o n d i t i o n n u m b e r . I n p a r t i c u l a r , for r a d i a l basis f u n c t i o n i n t e r p o l a t i o n
we need t o l o o k at t h e c o n d i t i o n n u m b e r o f t h e i n t e r p o l a t i o n m a t r i x A w i t h entries
Aij = $(xi Xj). For a n y m a t r i x A i t s -condition
2 number is g i v e n b y
1
cond(A) = | | A | | | | A - | |
2 2 = ^ ,
^min
where c r m a x a n d c r i n are t h e largest a n d smallest s i n g u l a r values o f A.
m I f we
c o n c e n t r a t e o n p o s i t i v e d e f i n i t e m a t r i c e s A, t h e n t h e c o n d i t i o n n u m b e r o f A can
also t a k e be c o m p u t e d as t h e r a t i o
Amax
Amin
of t h e largest a n d smallest eigenvalues.
W h a t do we k n o w a b o u t these eigenvalues? F i r s t , G e r s h g o r i n ' s t h e o r e m (see,
e . g . , [Meyer (2000)]) says t h a t
JV
| Amax An | 5: ^ ^ | Aij |
J= I
A m a x < JV$(0)
b y t h e p r o p e r t i e s o f p o s i t i v e d e f i n i t e f u n c t i o n s ( P r o p e r t y (4) i n T h e o r e m 3.1). N o w ,
s
as l o n g as t h e d a t a are n o t t o o w i l d l y d i s t r i b u t e d , N w i l l g r o w as h x Q which
is acceptable. Therefore, t h e m a i n w o r k i n e s t a b l i s h i n g a b o u n d for t h e c o n d i t i o n
n u m b e r o f A lies i n finding lower b o u n d s for A i m n (or c o r r e s p o n d i n g l y u p p e r b o u n d s
135
136 Meshfree Approximation Methods with M A T L A B
_ 1
for t h e n o r m o f t h e inverse | | A | | 2 ) . T h i s is t h e s u b j e c t o f several papers b y B a l l ,
N a r c o w i c h , S i v a k u m a r a n d W a r d [ B a l l et al. (1992); N a r c o w i c h et al. (1994);
N a r c o w i c h a n d W a r d (1991a); N a r c o w i c h a n d W a r d ( 1 9 9 1 b ) ; N a r c o w i c h a n d W a r d
(1992)] w h o m a k e use o f a r e s u l t f r o m [ B a l l (1992)] o n eigenvalues o f distance
m a t r i c e s . B a l l ' s result follows f r o m t h e Rayleigh quotient (or t h e C o u r a n t - F i s c h e r
T h e o r e m 9.5), w h i c h gives t h e smallest eigenvalue o f a s y m m e t r i c p o s i t i v e d e f i n i t e
m a t r i x as
T
c Ac
Amin = mm .
w 1
cK \0 C C
s s
L e m m a 1 6 . 1 . Let X\,..., x^ be distinct points in R and let <3> : R > R be either
strictly positive definite, or strictly conditionally negative definite of order one with
<&(0) < 0. Also, let A be the interpolation matrix with entries A^ = $>(xi Xj). If
the inequality
N N
2
CiCj-Ay > 9\\c\\ 2
i=l j=l
c =
is satisfied whenever the components of c satisfy X^jLi j > then
l
\\A- \\ <6-\ 2
N o t e t h a t for p o s i t i v e d e f i n i t e m a t r i c e s t h e R a y l e i g h q u o t i e n t i m p l i e s 6 = A i n m
qx = \ m i n |jac< - Xj\\ . 2
We c a n p i c t u r e qx as t h e r a d i u s o f t h e largest b a l l t h a t c a n be p l a c e d a r o u n d e v e r y
p o i n t i n X such t h a t no t w o balls o v e r l a p (see F i g u r e 16.1). T h e s e p a r a t i o n d i s t a n c e
is sometimes also referred t o as t h e packing radius. I n our MATLAB code we c a n
c o m p u t e t h e s e p a r a t i o n distance v i a
qX = m i n ( m i n ( D M _ d a t a + e y e ( s i z e ( D M _ d a t a ) ) ) ) / 2
16. Stability and Trade-Off Principles 137
Fig. 16.1 The separation distance for N = 25 Halton points (qx ~ 0.0597).
e 2 2
Example 16.1. For Gaussians &(x) = e~ ^ one o b t a i n s
s 4 0 7 1 s 2
A m i n > C ( v ^ ) - e -
s - / ^ V -
W e see t h a t , for a fixed shape p a r a m e t e r e, t h e lower b o u n d for A i m n goes e x p o -
n e n t i a l l y t o zero as t h e s e p a r a t i o n d i s t a n c e qx decreases. Since we observed above
t h a t t h e c o n d i t i o n n u m b e r o f t h e i n t e r p o l a t i o n m a t r i x A depends o n t h e r a t i o o f
its largest a n d smallest eigenvalues a n d t h e g r o w t h o f A m a x is o f o r d e r N we see
t h a t t h e c o n d i t i o n n u m b e r g r o w s e x p o n e n t i a l l y w i t h decreasing s e p a r a t i o n d i s t a n c e .
T h i s shows t h a t , i f one adds m o r e i n t e r p o l a t i o n p o i n t s i n o r d e r t o i m p r o v e t h e ac-
c u r a c y o f t h e i n t e r p o l a n t ( w i t h i n t h e same d o m a i n fl), t h e n t h e p r o b l e m becomes
138 Meshfree Approximation Methods with M A T L A B
i + i 2 M e
A m i n > C(a, A e ) 4 " e- '/<* )
/ 3 + 1 2 / 3
E x a m p l e 1 6 . 3 . F o r t h i n p l a t e splines $(cc) = ( - l ) ||cc|| l o g \\x\\, 0 G N , one
obtains
s 2
A m i n > C s C / 3 (2M )- - ^^s
2 p
E x a m p l e 1 6 . 4 . F o r t h e r a d i a l powers $ ( J C ) = ( - l ) ^ / ! \\x\\ , 0 < Q 2 N , one
obtains
s / 3
A m i n > C c s / 3 (2M )- - s 4
w i t h a n o t h e r e x p l i c i t l y k n o w n c o n s t a n t c p (different f r o m c p i n E x a m p l e 3 ) . A g a i n ,
t h e decay is o f p o l y n o m i a l order.
E x a m p l e 1 6 . 5 . F o r t h e c o m p a c t l y s u p p o r t e d f u n c t i o n s o f W e n d l a n d $> k(x) Sj
(p k(||x||)
St one o b t a i n s
k+1
A m i n > C(s,k)q%
17.1 I n t e r p o l a t i o n for e 0
T h e e r r o r b o u n d s we r e v i e w e d i n p r e v i o u s c h a p t e r s give us some i n s i g h t i n t o
t h e first issue. I f we k n o w t h a t t h e d a t a come f r o m a v e r y s m o o t h f u n c t i o n , t h e n
a p p l i c a t i o n o f one o f t h e s m o o t h e r basic f u n c t i o n s is called for. O t h e r w i s e , t h e r e
is n o t m u c h t o be g a i n e d f r o m d o i n g so. I n fact, these f u n c t i o n s m a y a d d t o o
m u c h smoothness t o t h e i n t e r p o l a n t . A first a t t e m p t at p r o v i d i n g guidelines for t h e
selection o f a p p r o p r i a t e basic f u n c t i o n s (or kernels) c a n be f o u n d i n [Schaback a n d
W e n d l a n d (2006)]. W e w i l l n o t p u r s u e t h i s issue a n y f u r t h e r .
I n s t e a d we w a n t t o focus o u r a t t e n t i o n o n t h e second q u e s t i o n , i.e., t h e choice o f
t h e shape p a r a m e t e r e. A n u m b e r o f strategies c a n be used t o g u i d e us i n m a k i n g a
decision. W e w i l l assume t h r o u g h o u t t h a t a (fixed) basic f u n c t i o n has been chosen,
a n d t h a t we w i l l use o n l y one value t o scale a l l basis f u n c t i o n s u n i f o r m l y . Clearly,
one can also follow o t h e r strategies such as u s i n g a shape p a r a m e t e r t h a t varies
w i t h j , or even basic f u n c t i o n s t h a t v a r y w i t h j . W h i l e some w o r k has b e e n d o n e
i n these d i r e c t i o n s (see, e.g., [ B o z z i n i et al. ( 2 0 0 2 ) ; K a n s a a n d C a r l s o n (1992);
Schaback a n d W e n d l a n d ( 2 0 0 0 b ) ; F o r n b e r g a n d Z u e v ( 2 0 0 6 ) ] ) , n o t m u c h c o n c r e t e
c a n be said i n these cases.
141
142 Meshfree Approximation Methods with M A T L A B
T h e s i m p l e s t s t r a t e g y is t o p e r f o r m a series o f i n t e r p o l a t i o n e x p e r i m e n t s w i t h v a r y -
i n g shape p a r a m e t e r , a n d t h e n t o p i c k t h e "best" one. T h i s s t r a t e g y c a n be used i f
we k n o w t h e f u n c t i o n / t h a t g e n e r a t e d t h e d a t a , a n d t h e r e f o r e c a n c a l c u l a t e some
s o r t o f e r r o r for t h e i n t e r p o l a n t . O f course, i f we a l r e a d y k n o w / , t h e n t h e exercise
o f f i n d i n g a n i n t e r p o l a n t Vf m a y be m o s t l y p o i n t l e s s . H o w e v e r , t h i s is t h e s t r a t e g y
we used for t h e "academic" examples i n C h a p t e r 2.
I f we do n o t have a n y k n o w l e d g e o f / , t h e n i t becomes v e r y d i f f i c u l t t o decide
w h a t "best" means. O n e ( n o n - o p t i m a l ) c r i t e r i o n w e used i n C h a p t e r 2 was based
o n t h e t r a d e - o f f p r i n c i p l e , i.e., t h e fact t h a t for s m a l l e t h e e r r o r i m p r o v e s w h i l e
t h e c o n d i t i o n n u m b e r g r o w s . W e t h e n defined "best" t o be t h e smallest e for w h i c h
M A T L A B d i d n o t issue a n e a r - s i n g u l a r w a r n i n g .
I n m a n y cases selection o f a n o p t i m a l shape p a r a m e t e r v i a trial and error will
e n d u p b e i n g a r a t h e r s u b j e c t i v e process. H o w e v e r , t h i s m a y p r e s e n t l y be the
approach taken b y most practitioners.
For c o m p a r i s o n w i t h t h e o t h e r s e l e c t i o n m e t h o d s f e a t u r e d b e l o w we present t h r e e
o n e - d i m e n s i o n a l test cases for w h i c h w e k n o w t h e d a t a f u n c t i o n / . W e use
2 2 2 2
JP ( )2 X = | ^ -(9x-2) /4
e + e -(9x+l) /49^ + ^ ~(Qx-7) /4
e _ _Lg-(9x-4) ^
F (x)
3 = ( l - \x - \ \ j (\ + 5\x - \ \ - 27\x - i | 2 ) .
A n o t h e r s t r a t e g y is suggested b y t h e e r r o r a n a l y s i s o f C h a p t e r 14. W e s h o w e d t h e r e
i n T h e o r e m 14.2 t h a t
\f(x)-Vf{x)\<P* (x)\\f\\ ,
tX Wn)
17. Numerical Evidence for Approximation Order Results 143
Table 17.1 Optimal e values based on Gaussian interpolation to various test func-
tions in I D for various choices of N uniform points.
Fi F 2 F 3
Fig. 17.1 Optimal e curves based on Gaussian interpolation in I D for various choices of N uniform
2
points. Data sampled from sine function Fx (left) and C oscillatory function F3 (right).
1
P*,x{x) = ^ ( x , ^ ) - ^ ) ) ^ - ^ ) ,
T
where A is t h e i n t e r p o l a t i o n m a t r i x a n d 6 = [ $ ( - , x i ) , . . . , $ ( - , C j v ) ] . T h i s f o r m u l a
is i m p l e m e n t e d o n lines 1 5 - 1 8 i n t h e M A T L A B p r o g r a m P o w e r f u n c t i o n 2 D .m. W e
c o m p u t e t h e inverse o f A u s i n g t h e f u n c t i o n p i n v w h i c h is based o n t h e s i n g u l a r
value d e c o m p o s i t i o n o f A a n d t h e r e f o r e g u a r a n t e e s m a x i m u m s t a b i l i t y . A l s o , due t o
r o u n d o f f some o f t h e a r g u m e n t s o f t h e s q r t f u n c t i o n o n l i n e 18 come o u t n e g a t i v e .
144 Meshfree Approximation Methods with M A T L A B
This explains the use of the r e a l command. The vectors b(x) are just rows of the
evaluation matrix if x is taken from the grid of evaluation points we used earlier
for error computations and plotting purposes. Except for the loop over the shape
parameter e (lines 12-20) the rest of the program is similar to earlier code.
P r o g r a m 1 7 . 1 . Powerfunction2D.m
% Powerfunction2D
S c r i p t t h a t f i n d s "optimal" shape parameter by computing t h e power
'/, f u n c t i o n f o r the 2D RBF i n t e r p o l a t i o n approach w i t h v a r y i n g e p s i l o n
/, C a l l s on: DistanceMatrix
1 r b f = @(e,r) e x p ( - ( e * r ) . ~ 2 ) ; 7. Define t h e Gaussian RBF
% Parameters f o r shape parameter loop below
2 mine = 0; maxe = 20;
3 ne = 500; ep = linspace(mine,maxe,ne);
'/, Number and type of data p o i n t s
4 N = 81; g r i d t y p e = 'u';
7, R e s o l u t i o n of g r i d f o r power f u n c t i o n norm computation
5 n e v a l = 2 0 ; M = neval"2;
% Load data p o i n t s
, ,
6 name = s p r i n t f ( Data2D_7od7oS ,N,gridtype) ; load(name)
7 ctrs = dsites; % c e n t e r s c o i n c i d e w i t h data s i t e s
8 g r i d = l i n s p a c e ( 0 , 1 , n e v a l ) ; [xe,ye] = m e s h g r i d ( g r i d ) ;
9 epoints = [ x e ( : ) y e ( : ) ] ;
7o Compute d i s t a n c e m a t r i x between e v a l u a t i o n p o i n t s and c e n t e r s
10 DM_eval = D i s t a n c e M a t r i x ( e p o i n t s , c t r s ) ;
7. Compute d i s t a n c e m a t r i x between t h e data s i t e s and c e n t e r s
11 DM_data = D i s t a n c e M a t r i x ( d s i t e s , c t r s ) ;
12 for i=l:length(ep)
7, Compute i n t e r p o l a t i o n m a t r i x
13 IM = r b f ( e p ( i ) , D M _ d a t a ) ;
7o Compute e v a l u a t i o n matrix
14 EM = r b f ( e p ( i ) , D M _ e v a l ) ;
7o Compute power f u n c t i o n a t e v a l u a t i o n p o i n t s
15 invIM = i n v ( I M ) ; phiO = r b f ( e p ( i ) , 0 ) ;
16 f o r j=l:M
17 powfun(j) = r e a l ( s q r t ( p h i O - ( i n v I M * E M ( j , : ) ' ) ' * E M ( j , : ) ' ) ) ;
18 end
7o Compute max. norm of power f u n c t i o n on e v a l u a t i o n g r i d
19 maxPF(i) = max(powfun);
20 end
21 f p r i n t f (' S m a l l e s t maximum norm: 7oe\n' , min(maxPF))
22 f p r i n t f ('at e p s i l o n = 7.f \n' , ep(maxPF==min(maxPF) ) )
&4
17. Numerical Evidence for Approximation Order Results 145
0 5 10 15 20 0 5 10 15 20
e e
Fig. 17.2 Optimal e curves based on power functions for Gaussians in I D (left) and 2D (right)
for various choices of N uniform points.
ID 2D
N optimal e cond(A) N optimal e cond(A)
p}k*) = i>?V(ii*-*jii),
cf
such t h a t
Vfixi) = f it i = 1 , . . . , k - 1, k + 1 , . . . , N,
a n d i f Ek is t h e e r r o r
E k = fk-Vf{x )
k
at t h e one p o i n t Xk n o t used t o d e t e r m i n e t h e i n t e r p o l a n t , t h e n t h e q u a l i t y o f t h e
T
fit is d e t e r m i n e d b y t h e n o r m o f t h e v e c t o r o f errors E \E\,..., Ejy} obtained
by r e m o v i n g i n t u r n one o f t h e d a t a p o i n t s a n d c o m p a r i n g t h e r e s u l t i n g f i t w i t h
t h e ( k n o w n ) value at t h e r e m o v e d p o i n t . I n [ R i p p a (1999)] t h e a u t h o r presented
examples based o n use o f t h e l\ and i 2 n o r m s . W e w i l l m o s t l y use t h e m a x i m u m
n o r m (see line 14 i n t h e code b e l o w ) .
B y a d d i n g a l o o p over e we c a n c o m p a r e t h e e r r o r n o r m s for different values o f
t h e shape p a r a m e t e r , a n d choose t h a t value o f e t h a t y i e l d s t h e m i n i m a l e r r o r n o r m
as t h e o p t i m a l one.
W h i l e a naive i m p l e m e n t a t i o n o f t h e leave-one-out a l g o r i t h m is r a t h e r expensive
4
(on t h e order o f N o p e r a t i o n s ) , R i p p a showed t h a t t h e c o m p u t a t i o n o f t h e e r r o r
c o m p o n e n t s can be s i m p l i f i e d t o a single f o r m u l a
Ek = (17-1)
A
kk
w h e r e Ck is t h e A;th coefficient i n t h e i n t e r p o l a n t Vf based o n t h e full d a t a set, a n d
is t h e kth d i a g o n a l element o f t h e inverse o f t h e c o r r e s p o n d i n g i n t e r p o l a t i o n
17. Numerical Evidence for Approximation Order Results 147
P r o g r a m 1 7 . 2 . L00CV2D.m
% L00CV2D
% S c r i p t t h a t performs leave-one-out c r o s s - v a l i d a t i o n
/ (Rippa's method) t o f i n d a good e p s i l o n f o r 2D RBF i n t e r p o l a t i o n
0
% C a l l s on: D i s t a n c e M a t r i x
1 r b f = @(e,r) e x p ( - ( e * r ) . " 2 ) ; % Gaussian RBF
% Parameters f o r shape parameter loop below
2 mine = 0; maxe = 20; ne = 500;
3 ep = linspace(mine,maxe,ne);
% Number and type of d a t a p o i n t s
4 N = 81; gridtype = 'u';
7, Define t e s t f u n c t i o n
5 t e s t f u n c t i o n = @(x,y) s i n e ( x ) . * s i n c ( y ) ;
% Load data p o i n t s
,
6 name = s p r i n t f ( Data2D_/ d%s',N,gridtype) ; load(name)
0
17 f p r i n t f ( a t e p s i l o n = 7f \n',ep(maxEF==min(maxEF)) )
J
/ P l o t cost f u n c t i o n norm
0
18 f i g u r e ; semilogy(ep,maxEF,'b');
d i m e n s i o n a l e x p e r i m e n t (left) a n d a 2 D e x p e r i m e n t ( r i g h t ) based o n d a t a s a m p l e d
f r o m t h e sine f u n c t i o n F\. E a c h p l o t shows several curves c o r r e s p o n d i n g t o different
choices o f N (set o n l i n e 4 o f L00CV2D.m). T h e o p t i m a l e values are l i s t e d i n
T a b l e 17.3.
0 5 10 15 20 0 5 10 15 20
e e
Fig. 17.3 Optimal e curves based on leave-one-out cross validation for interpolation to the sine
function with Gaussians in I D (left) and 2D (right) for various choices of N uniform points.
ID 2D
N optimal e N optimal
3 0.96 9 0.96
5 1.00 25 1.00
9 0.80 81 1.48
17 0.92 289 1.60
33 1.92
65 1.76
10 10"
W -5 Of "
10
10 5
10" 10"
10 15 20 10 15 20
e
Fig. 17.4 Optimal e curves based on interpolation to the test function with Gaussians for
various choices of N uniform points. Trial and error approach (left), leave-one-out cross validation
(right).
10
10
10 y /
f 4
/ 4*
10" _ // * N=3
* N=5
N=9
10 t N=17
N=33
N=65
10
10 15 20
Fig. 17.5 Optimal e curves based on leave-one-out cross validation for interpolation to I D Franke's
function with Wendland's function 953,1 for various choices of N uniform points (left) and Cheby-
shev points (right).
P r o g r a m 17.3. CostEpsilon.m
7. ceps = C o s t E p s i l o n ( e p , r , r b f , r h s )
% Implements cost f u n c t i o n f o r o p t i m i z a t i o n of shape parameter
7, v i a Rippa's L00CV algorithm
% Example of usage i n L00CV2Dmin.m
1 f u n c t i o n ceps = C o s t E p s i l o n ( e p , r , r b f , r h s )
2 A = rbf(ep,r);
3 invA = p i n v ( A ) ;
4 EF = ( i n v A * r h s ) . / d i a g ( i n v A ) ;
5 ceps = n o r m ( E F ( : ) , i n f ) ;
P r o g r a m 17.4. L00CV2Dmin.m
'/. L00CV2Dmin
% S c r i p t t h a t performs leave-one-out c r o s s - v a l i d a t i o n
7 5
( R i p p a s method) to f i n d a good e p s i l o n f o r 2D RBF i n t e r p o l a t i o n
7.with the help of MATLAB' s fminbnd
% C a l l s on: D i s t a n c e M a t r i x
7,Requires: CostEpsilon
1 r b f = @(e,r) e x p ( - ( e * r ) . ~ 2 ) ; 7o Gaussian RBF
7o Parameters f o r shape parameter o p t i m i z a t i o n below
2 mine = 0; maxe = 20;
7o Number and type of data p o i n t s
3 N = 81; g r i d t y p e = 'u';
7o Define t e s t f u n c t i o n
4 t e s t f u n c t i o n = @(x,y) s i n e ( x ) . * s i n c ( y ) ;
7o Load data p o i n t s
5 name = s p r i n t f ( 'Data2D_7od7 s ' ,N,gridtype) ; load(name)
0
j=i
for a fixed e v a l u a t i o n p o i n t x as a n a n a l y t i c f u n c t i o n o f e.
T h e key idea is t o represent Vf(x, e) b y a Laurent series i n e, a n d a p p r o x i m a t e
t h e "negative p a r t " o f t h e series b y a P a d e a p p r o x i m a n t , i.e.,
oo
d ek
V (x,e)
f ^r(e) + J2 k >
k=0
where r(e) is t h e r a t i o n a l P a d e a p p r o x i m a n t .
We t h e n r e w r i t e t h e i n t e r p o l a n t i n c a r d i n a l f o r m , i.e., as
Vf{x,e) = ^C V {\\X
3 - Xj\\)
j=i
T
= b (x, e)c
T
= b {x,e)A-\e)f
= (u*(x,e)ff
T
where b(x,e) - 3 = ip (\\x
- xj\\), A(e)ij = <p (\\xi
- x - \ \ ) , c = [a,...,
3 c],
N f =
T
[fi,-- -,fN] , and
_1
u*(x,e) = A ()6(a;,)
0 5 10 15 20 0 5 10 15 20
E E
Fig. 17.6 Optimal e curves based on Contour-Pade for interpolation to the sine function with
Gaussians in I D (left) and 2D (right) for various choices of N uniform points.
Table 17.4 Optimal e values based on Contour-Pade for interpolation to the sine
function with Gaussians in I D and 2 D for various choices of N uniform points.
ID 2D
17.1.5 Summary
uniform Halton
9 3.195983e-001 2.734756e-001
25 5.008591e-002 2.6738 8.831682e-002 2.3004
81 9.029664e-003 2.4717 2.401868e-002 1.7582
289 2.263880e-004 5.3178 1.589117e-003 5.0969
1089 3.323287e-008 12.7339 1.595051e-006 10.8015
4225 1.868286e-008 0.8309 9.510404e-008 4.8203
uniform Halton
9 3.302644e-001 2.823150e-001
25 3.271035e-002 3.3358 1.282572e-001 1.6058
81 1.293184e-002 1.3388 3.407580e-002 1.7898
289 3.786113e-004 5.0941 1.990217e-003 5.3309
1089 3.476835e-008 13.4107 2.286014e-006 10.5905
4225 3.775365e-008 -0.1188 9.868530e-008 5.3724
Fig. 17.7 Maximum errors for non-stationary interpolation to the sine function with Gaussians
(left) and inverse multiquadrics (right) based on N uniformly spaced points in [0,1] and e
1,6,11,16,21,26.
1 / / / l
a n d for inverse m u l t i q u a d r i c s we have s p e c t r a l convergence w i t h h i e ~ . We
c a n see t h a t for a c e r t a i n range o f p r o b l e m s these r a t e s are i n d e e d o b t a i n e d (see
F i g u r e 17.7).
I n t h e case o f f u n c t i o n s w i t h f i n i t e s m o o t h n e s s (such as t h e c o m p a c t l y s u p -
p o r t e d f u n c t i o n s o f W e n d l a n d ) we c a n o n l y expect a l g e b r a i c convergence r a t e s .
F i g u r e 17.8 shows t w o m o r e sets o f m a x i m u m e r r o r curves. These plots are
2 6
based o n W e n d l a n d ' s C f u n c t i o n 1/23,1 ( r ) = ( 1 r ) + ( 4 r + 1) a n d t h e C func-
t i o n ^ 3 , 3 ( r ) = ( l - 7 - ) ^ ( 3 2 r + 2 5 r - r - 8 r + l ) . W h i l e t h e e r r o r b o u n d (15.5) p r e d i c t s
3 2
3 2 7 2
o n l y 0 ( / i / ) a n d G(h ^ ) a p p r o x i m a t i o n o r d e r , respectively. W e see t h a t a n e x t r a
s 2
factor o f h l is i n d e e d possible i n p r a c t i c e . T h i s e x t r a f a c t o r has also been c a p t u r e d
i n some o f t h e t h e o r e t i c a l w o r k o n i m p r o v e d e r r o r b o u n d s (c.f. S e c t i o n 15.2).
For less s m o o t h d a t a f u n c t i o n s we n o l o n g e r have s p e c t r a l convergence for
the infinitely s m o o t h functions, while the orders r e m a i n unchanged for t h e ba-
sic f u n c t i o n s w i t h f i n i t e s m o o t h n e s s (as l o n g as t h e d a t a f u n c t i o n lies i n the
n a t i v e space o f t h e basic f u n c t i o n ) . T h i s is i l l u s t r a t e d i n F i g u r e 17.9 where
2 2
we c o m p a r e Gaussians a n d C Wendland functions for t h e C test function
17. Numerical Evidence for Approximation Order Results 155
2
Fig. 17.8 Maximum errors for non-stationary interpolation to the sine function with C (left)
6
and C (right) Wendland function based on N uniformly spaced points in [0,1] and e =
1,6,11,16,21,26.
2
Fig. 17.9 Maximum errors for non-stationary interpolation to a C function with Gaussians
2
(left) and C Wendland function (right) based on N uniformly spaced points in [0,1] and e =
1,6,11,16,21,26.
2
(1 - \x - 1/2|)5.(1 + 5\x - 1 / 2 | - 27(x - 1 / 2 ) ) (c.f. the oscillatory functions o f
T a b l e 11.4). I t is i n t e r e s t i n g t o n o t e t h a t for a c e r t a i n range o f N the rate of
2
convergence for t h e C W e n d l a n d f u n c t i o n is even b e t t e r t h a n p r e d i c t e d .
2
Fig. 17.10 Maximum errors for non-stationary (left) and stationary (right) interpolation to a C
function with the norm basic function based on N uniformly spaced points in [0,1].
2
Fig. 17.11 Maximum errors for stationary interpolation to a C function with the cubic radial
basic function (left) and thin plate spline basic function (right) based on N uniformly spaced
2
points in [0, l ] .
2
Fig. 17.12 Maximum errors for stationary interpolation to the C oscillatory function (left) and
2
to the sine function (right) with Gaussians based on N uniformly spaced points in [0, l ] using
various initial e values.
I
I
1
g
I
Chapter 18
I n [ G o l o m b a n d W e i n b e r g e r (1959)] t h e a u t h o r s s t u d i e d t h e f o l l o w i n g g e n e r a l p r o b -
lem:
159
160 Meshfree Approximation Methods with M A T L A B
m i n i m u m - n o r m i n t e r p o l a n t is t h a t f u n c t i o n g* G 7i t h a t satisfies
W ) = /;> j = h...,N,
a n d for w h i c h
s
L e m m a 1 8 . 1 . Assume <& is a symmetric strictly positive definite kernel on R and
let Vf be the interpolant to f G A/$(f2) at the data sites X = {x\,... ,x^} Q ft-
Then
(Vf,Vf -g)jv*(n) = 0
Proof. T h e i n t e r p o l a n t Vf is o f t h e f o r m
N
3= 1
N
3= 1
N
3= 1
= 0
since b o t h Vf a n d g i n t e r p o l a t e / o n X.
Proof. A n y h G H$ (X) c a n be w r i t t e n i n t h e f o r m
3= 1
w i t h a p p r o p r i a t e coefficients c -. U s i n g t h i s r e p r e s e n t a t i o n o f h as w e l l as t h e r e p r o -
3
d u c i n g p r o p e r t y o f <3> we have
N
{f -'Pf,h) ^n
jV ) = {f -Vf^Cj^Xj))^^)
3= 1
N
3= 1
N
= X>(/-p/)te)-
3= 1
Proof. T h e s t a t e m e n t follows f r o m
= <(/ - V ) f + V, f (/ - V ) f + V )^
f { a )
2
= 1 1 / - PfWir.w) + 2 ( / - V, f 7 > / W ) + \\V \\
f w n )
\V W*(n)=
f s mm n ) \g\^ ( n ) .
( V f , V - g ) ^f { n ) = 0 .
T h i s o r t h o g o n a l i t y r e l a t i o n gives us
= (Vf,V - #)Af*(fi) +
f (Vf,g)jv*(n)
= (Vf,g)Af^(ci),
a n d t h e Cauchy-Schwarz i n e q u a l i t y y i e l d s
so t h a t t h e s t a t e m e n t follows.
2
N o w , t h e c o r r e s p o n d i n g s e m i - n o r m i n t h e B e p p o - L e v i space B L ( M ) is (c.f. 2 (13.6))
2
df 2
df 2
a /
I/IBL (R )
2
2
Ju2
\ dx
2
(x) + 2
dxdy
(x) + dy 2
(x) dx,
T h e o r e m 1 8 . 2 ( O p t i m a l i t y I I ) . Let
N
H^(X) = {h = ^2c $(-,x )j j +p : p e P
N
and Cjq(xj) = 0 for all q G P and Xj G X},
i=i
where <E> G C(fl x fl) is a strictly conditionally positive definite kernel with respect
to the finite-dimensional space P C C(fl) and X is P-unisolvent. If only the val-
ues fx = f(xi),...,fpj = f(xjy) are given, then the interpolant Vf is the best
approximation to f from H$(X) in j\f$(fl), i.e.,
(/ - g \ h ) N i b m = 0 for a l l h G H*(X).
T h e t h i r d o p t i m a l i t y result is i n t h e c o n t e x t o f q u a s i - i n t e r p o l a t i o n , i.e.,
N N
<
3= 1
U p t o n o w we have l o o k e d o n l y a t i n t e r p o l a t i o n . H o w e v e r , m a n y t i m e s i t m a k e s
m o r e sense t o a p p r o x i m a t e t h e g i v e n d a t a b y a least squares f i t . T h i s is e s p e c i a l l y
t r u e i f t h e d a t a are c o n t a m i n a t e d w i t h noise, o r i f t h e r e are so m a n y d a t a p o i n t s
t h a t efficiency c o n s i d e r a t i o n s force us t o a p p r o x i m a t e f r o m a space s p a n n e d b y fewer
basis f u n c t i o n s t h a n d a t a p o i n t s .
A s we saw i n C h a p t e r 18 we c a n i n t e r p r e t r a d i a l basis f u n c t i o n i n t e r p o l a t i o n as
a c o n s t r a i n e d o p t i m i z a t i o n p r o b l e m , i.e., t h e R B F i n t e r p o l a n t a u t o m a t i c a l l y m i n -
imizes t h e n a t i v e space n o r m a m o n g a l l i n t e r p o l a n t s i n t h e n a t i v e space. W e n o w
take this p o i n t of view again, b u t s t a r t w i t h a more general f o r m u l a t i o n . L e t us
assume we are seeking a f u n c t i o n Vf of t h e f o r m
M
s
V (x)
f =^2cj&(x,Xj), x e R ,
i=i
w h e r e t h e n u m b e r M o f basis f u n c t i o n s is i n g e n e r a l less t h a n o r e q u a l t h e n u m b e r
N o f d a t a sites. W e t h e n w a n t t o d e t e r m i n e t h e coefficients c = [c\,... ,CM\ T
SO
t h a t we m i n i m i z e t h e q u a d r a t i c f o r m
T
\c Qc (19.1)
w i t h some s y m m e t r i c p o s i t i v e d e f i n i t e m a t r i x Q s u b j e c t t o t h e l i n e a r c o n s t r a i n t s
Ac = f (19.2)
T
w h e r e A is a n N x M m a t r i x w i t h f u l l r a n k , a n d t h e r i g h t - h a n d side / = [ / i , . . . , / J V ]
is g i v e n . Such a c o n s t r a i n e d q u a d r a t i c m i n i m i z a t i o n p r o b l e m c a n be c o n v e r t e d t o a
T
s y s t e m o f l i n e a r e q u a t i o n s b y i n t r o d u c i n g Lagrange multipliers A = [ A i , . . . , Ajv] ,
i.e., w e consider f i n d i n g t h e m i n i m u m o f
l T T
-c Qc-\ [Ac-f] (19.3)
165
166 Meshfree Approximation Methods with M A T L A B
w i t h respect t o c a n d A. Since Q is a s s u m e d t o be a p o s i t i v e d e f i n i t e m a t r i x , i t is
w e l l k n o w n t h a t t h e f u n c t i o n a l t o be m i n i m i z e d is c o n v e x , a n d t h u s has a u n i q u e
m i n i m u m . Therefore, t h e s t a n d a r d necessary c o n d i t i o n for s u c h a m i n i m u m ( w h i c h
is o b t a i n e d b y d i f f e r e n t i a t i n g w i t h respect t o c a n d A a n d finding t h e zeros o f t h o s e
d e r i v a t i v e s ) is also sufficient. T h i s leads t o
T
Qc - A X = 0
Ac - f = 0
or, i n m a t r i x f o r m ,
T
Q A ' c "0
A O A
B y a p p l y i n g ( b l o c k ) G a u s s i a n e l i m i n a t i o n t o t h i s b l o c k m a t r i x (Q is i n v e r t i b l e since
i t is assumed t o be p o s i t i v e d e f i n i t e ) w e get
1 T 1
A = (AQ~ A )~ f (19.4)
1 T 1 T 1
c = Q- A (AQ- A y f. (19.5)
M M
1=1 j=\
Ac = f V (xi)
f = fi, z = l,...,M,
T
with A = A Q (symmetric), the same c as a b o v e a n d d a t a vector / =
T
[fi-, i / M ] , t h e n we see t h a t t h e L a g r a n g e m u l t i p l i e r s (19.4) b e c o m e
1
A = ^ l - /
a n d t h e coefficients are g i v e n b y
c = A
Since we t o o k t h e m o r e g e n e r a l p o i n t o f v i e w t h a t Vf is g e n e r a t e d b y M basis
f u n c t i o n s , a n d N l i n e a r c o n s t r a i n t s are specified, t h e a b o v e f o r m u l a t i o n also covers
b o t h over- a n d u n d e r - d e t e r m i n e d least squares fitting where the quadratic form
19. Least Squares RBF Approximation with M A T L A B 167
T
c Qc represents a n a d d e d smoothing (or regularization) term. T h i s t e r m is n o t
r e q u i r e d t o o b t a i n a u n i q u e s o l u t i o n o f t h e s y s t e m Ac = / i n t h e over-determined
case (N > M), b u t i n t h e u n d e r - d e t e r m i n e d case such a c o n s t r a i n t is needed (c.f.
t h e s o l u t i o n o f u n d e r - d e t e r m i n e d l i n e a r systems v i a s i n g u l a r value d e c o m p o s i t i o n i n
t h e n u m e r i c a l linear algebra l i t e r a t u r e (e.g., [Trefethen and B a u (1997)])).
U s u a l l y t h e r e g u l a r i z e d least squares a p p r o x i m a t i o n p r o b l e m is f o r m u l a t e d as
minimization of
N
1
2
- c ^ c + a ^ P ^ ) - / , )
3= 1
+ UJ(AC-
T
C QC
T
f) (Ac- f). (19.6)
T
T h e q u a d r a t i c f o r m c Qc c o n t r o l s t h e smoothness o f t h e f i t t i n g f u n c t i o n a n d t h e
least squares t e r m measures t h e closeness t o t h e d a t a . T h e p a r a m e t e r UJ c o n t r o l s
t h e tradeoff between these t w o t e r m s w i t h a large value o f UJ s h i f t i n g t h e b a l a n c e
t o w a r d increased p o i n t w i s e accuracy.
T h e f o r m u l a t i o n (19.6) is used i n regularization theory (see, e.g., [ E v g e n i o u et al.
(2000); G i r o s i (1998)]). T h e same f o r m u l a t i o n is also used i n penalized least squares
f i t t i n g (see, e.g., [von G o l i t s c h e k a n d Schumaker ( 1 9 9 0 ) ] ) , t h e l i t e r a t u r e o n smooth-
ing splines [Reinsch (1967); Schoenberg (1964)], a n d i n p a p e r s b y W a h b a o n t h i n
p l a t e splines (e.g., [ K i m e l d o r f a n d W a h b a (1971); W a h b a (1979); W a h b a ( 1 9 9 0 b ) ;
W a h b a a n d L u o (1997); W a h b a a n d W e n d e l b e r g e r (1980)]). I n fact, t h e i d e a o f
s m o o t h i n g a d a t a f i t t i n g process b y t h i s k i n d o f f o r m u l a t i o n seems t o go b a c k t o
at least [ W h i t t a k e r (1923)]. I n p r a c t i c e a p e n a l i z e d least squares f o r m u l a t i o n is
especially useful i f t h e d a t a fa c a n n o t be c o m p l e t e l y t r u s t e d , i.e., t h e y are c o n t a m i -
n a t e d b y noise. T h e p r o b l e m o f m i n i m i z i n g (19.6) is also k n o w n as ridge regression
i n t h e statistics l i t e r a t u r e . T h e r e g u l a r i z a t i o n p a r a m e t e r UJ is u s u a l l y chosen u s i n g
generalized cross v a l i d a t i o n .
T
I f we r e s t r i c t ourselves t o w o r k i n g w i t h square s y m m e t r i c systems, i.e., A = A,
a n d assume t h e smoothness f u n c t i o n a l is g i v e n b y t h e n a t i v e space n o r m , i.e.,
Q = A, t h e n we o b t a i n t h e m i n i m i z e r o f t h e u n c o n s t r a i n e d q u a d r a t i c f u n c t i o n a l
(19.6) b y s o l v i n g t h e linear s y s t e m
( h')
A+ e = t
(19.7)
H/llS = [ / ( * i ) ] 2
, * *
*
is i n d u c e d b y t h e discrete i n n e r p r o d u c t
N
(f,g)=^2f{x )g(x ),
i i XiGX. (19.9)
t=i
T h i s a p p r o x i m a t i o n p r o b l e m has a u n i q u e s o l u t i o n i f t h e ( r e c t a n g u l a r ) colloca-
tion matrix A w i t h entries
A j k = $(xj,S ),
k j = l,...,N, fc = l,...,M,
has f u l l r a n k .
I f t h e centers i n H are chosen t o f o r m a subset o f t h e d a t a l o c a t i o n s X, t h e n A
does have f u l l r a n k p r o v i d e d t h e r a d i a l basis f u n c t i o n s are selected a c c o r d i n g t o o u r
p r e v i o u s chapters o n i n t e r p o l a t i o n . T h i s is t r u e , since i n t h i s case A w i l l have a n
M x M square s u b m a t r i x w h i c h is n o n - s i n g u l a r ( b y v i r t u e o f b e i n g a n interpolation
matrix).
T h e o v e r - d e t e r m i n e d l i n e a r s y s t e m Ac = / w h i c h arises i n t h e s o l u t i o n o f t h e
least squares p r o b l e m c a n be solved u s i n g s t a n d a r d a l g o r i t h m s f r o m n u m e r i c a l linear
algebra such as Q R or s i n g u l a r value d e c o m p o s i t i o n . T h e r e f o r e t h e M A T L A B code
for R B F least squares a p p r o x i m a t i o n is a l m o s t i d e n t i c a l t o t h a t for i n t e r p o l a t i o n .
P r o g r a m 19.1 presents a n e x a m p l e for least squares a p p r o x i m a t i o n i n 2 D . N o w
we define t w o sets o f p o i n t s : t h e d a t a p o i n t s (defined i n lines 3 a n d 8 ) , a n d t h e
centers (defined i n lines 4, 6 a n d 7 ) . N o t e t h a t we first l o a d t h e centers since o u r
d a t a files Data2D_1089h a n d Data2D_81u c o n t a i n a v a r i a b l e d s i t e s w h i c h we w a n t
t o use for o u r d a t a sites. L o a d i n g t h e d a t a sites first, a n d t h e n t h e centers w o u l d
lead t o u n w a n t e d o v e r w r i t i n g o f t h e values i n d s i t e s . T h e s o l u t i o n o f t h e least
squares p r o b l e m is c o m p u t e d o n l i n e 16 u s i n g backslash m a t r i x left d i v i s i o n ( \ or
m l d i v i d e ) w h i c h a u t o m a t i c a l l y p r o d u c e s a least squares s o l u t i o n . T h e s u b r o u t i n e s
P l o t S u r f a n d P l o t E r r o r 2 D are p r o v i d e d i n A p p e n d i x C .
19. Least Squares RBF Approximation with MATLAB 169
P r o g r a m 19.1. RBFApproximation2D.m
'/ RBF A p p r o x i m a t i o n ^
7. S c r i p t t h a t performs b a s i c 2D RBF l e a s t squares approximation
7, C a l l s on: D i s t a n c e M a t r i x , P l o t S u r f , P l o t E r r o r 2 D
1 r b f = @(e,r) e x p ( - ( e * r ) . ~ 2 ) ; ep = 1;
2 t e s t f u n c t i o n = @(x,y) s i n e ( x ) . * s i n c ( y ) ;
3 N = 1089; g r i d t y p e = 'h';
4 M = 81; grid2type = >u';
5 n e v a l = 40;
7 Load c e n t e r s
6 name = s p r i n t f ('Data2D_7.d7.s',M,grid2type) ; load(name)
7 ctrs = dsites;
7 Load d a t a p o i n t s
,
8 name = s p r i n t f ( Data2D_/,d/ s' ,N,gridtype) ; load(name)
0
O u t p u t f r o m R B F A p p r o x i m a t i o n 2 D .m is p r e s e n t e d i n F i g u r e 19.1 a n d t h e t o p
p a r t o f F i g u r e 19.2.
Fig. 19.1 1089 Halton data sites (o) and 81 uniform centers (+).
I f e = 1, t h e n t h e c o l i o c a t i o n m a t r i x is r a n k deficient w i t h M A T L A B r e p o r t i n g a
n u m e r i c a l r a n k o f 58. I n o r d e r t o have a f u l l n u m e r i c a l r a n k for t h i s p r o b l e m e needs
to be at least 2.2 ( i n w h i c h case t h e m a x i m u m e r r o r d e t e r i o r a t e s t o 5.255591e-004
i n s t e a d o f 2.173460e-007 for e = 1, c.f. t h e t o p p a r t o f F i g u r e 19.2). T h e r e is n o t
m u c h t h e o r y available for t h e case o f d i f f e r i n g centers a n d d a t a sites. W e present
w h a t is k n o w n i n t h e n e x t c h a p t e r . Some care needs t o be t a k e n w h e n c o m p u t i n g
least squares solutions based o n sets o f d i f f e r i n g centers a n d d a t a sites.
thin plate splines with the added linear polynomial term. These changes can be
found on lines 1, 15, 16, 19 and 24 of Program 19.2. Also, we now replace the sine
test function by Franke's function (2.2). The noise is added to the right-hand side
of the linear system on line 18. This modification adds 3 % noise to the data.
P r o g r a m 19.2. RBFApproximation2Dlinear .m
% RBFApproximation2Dlinear
% S c r i p t t h a t performs 2D RBF l e a s t squares approximation w i t h
% l i n e a r reproduction f o r n o i s y d a t a
7o C a l l s on: t p s , D i s t a n c e M a t r i x
1 rbf = @tps; ep = 1; % d e f i n e d i n tps.m (see Appendix C)
% Define Franke's f u n c t i o n as t e s t f u n c t i o n
2 f l = @(x,y) 0 . 7 5 * e x p ( - ( ( 9 * x - 2 ) . ~ 2 + ( 9 * y - 2 ) . ~ 2 ) / 4 ) ;
3 2 = @(x,y) 0 . 7 5 * e x p ( - ( ( 9 * x + l ) . ~ 2 / 4 9 + ( 9 * y + l ) . " 2 / 1 0 ) ) ;
4 f 3 = <3(x,y) 0 . 5 * e x p ( - ( ( 9 * x - 7 ) . ~ 2 + ( 9 * y - 3 ) . ~ 2 ) / 4 ) ;
5 f 4 = @(x,y) 0 . 2 * e x p ( - ( ( 9 * x - 4 ) . ~ 2 + ( 9 * y - 7 ) . ~ 2 ) ) ;
6 t e s t f u n c t i o n = @(x,y) f 1 ( x , y ) + f 2 ( x , y ) + f 3 ( x , y ) - f 4 ( x , y ) ;
5
7 N = 1089; g r i d t y p e = 'h ;
8 M = 81; grid2type = 'u';
9 n e v a l = 40;
% Load c e n t e r s
10 name = s p r i n t f ( 'Data2D_/ d/ s' ,M,grid2type) ; load(name)
0 0
11 c t r s = d s i t e s ;
% Load data p o i n t s
0
12 name = s p r i n t f ( Data2D_ /od /,s' ,N .gridtype) ; load(name)
, 0
20 g r i d = l i n s p a c e ( 0 , 1 , n e v a l ) ; [xe.ye] = m e s h g r i d ( g r i d ) ;
21 e p o i n t s = [ x e ( : ) y e ( : ) ] ;
% Compute d i s t a n c e m a t r i x between e v a l u a t i o n p o i n t s and c e n t e r s
22 DM_eval = D i s t a n c e M a t r i x ( e p o i n t s , c t r s ) ;
a.
1J3J
172 Meshfree Approximation Methods with M A T L A B
,0 4
29 c a p t i o n = s p r i n t f ( / d data s i t e s and / d centers',N,M);
o 0
30 title(caption);
31 plot(dsites(:,1),dsites(:,2),'bo',ctrs(:,1),ctrs(:,2),'r+');
32 PlotSurf(xe,ye,Pf,neval,exact.maxerr,fview);
33 PlotError2D(xe,ye,Pf,exact,maxerr,neval,fview);
P r o g r a m R B F A p p r o x i a t i o n 2 D l i n e a r .m was used t o p r o d u c e t h e r i g h t p l o t i n t h e
b o t t o m p a r t o f F i g u r e 19.2 a n d t h e entries i n l i n e 2 o f T a b l e 19.1. C l e a r l y , t h i s s i m p l e
least squares a p p r o a c h p e r f o r m s m u c h b e t t e r t h a n s t r a i g h t f o r w a r d i n t e r p o l a t i o n
t o t h e n o i s y d a t a (see t h e left p l o t t h e b o t t o m p a r t o f F i g u r e 19.2 a n d l i n e 1 o f
T a b l e 19.1). M o r e o v e r , t h i s least squares a p p r o x i m a t i o n is also m u c h cheaper t o
compute. H o w e v e r , as w e p o i n t e d o u t earlier, i t is n o t clear h o w t o choose t h e
smaller set o f R B F centers, a n d w h a t is even m o r e u n s e t t l i n g , t h e r e is n o t m u c h
m a t h e m a t i c a l t h e o r y (see t h e n e x t s e c t i o n ) t o g u a r a n t e e i f (or w h e n ) t h i s a p p r o a c h
is well-posed, i.e., t h e c o l l o c a t i o n m a t r i x has f u l l r a n k .
Table 19.1 Errors and condition numbers for various least squares approximants
to noisy data.
A n o t h e r s t r a t e g y for s m o o t h i n g o f n o i s y d a t a is t h e r i d g e regression m e t h o d
e x p l a i n e d earlier (see (19.7)). T h i s m e t h o d is p o p u l a r i n t h e s t a t i s t i c s a n d n e u r a l
network community.
T h e n a t u r e o f t h e M A T L A B p r o g r a m for r i d g e regression is v e r y s i m i l a r t o t h a t for
RBF i n t e r p o l a t i o n . W e present a v e r s i o n for r i d g e regression w i t h t h i n p l a t e splines
19. Least Squares RBF Approximation with MATLAB 173
y x y x
Fig. 19.2 Top: Least squares approximation (left) to 1089 data points sampled from 2D sine
function with 81 Gaussian basis functions with e = 1 and maximum error (right) false-colored
by magnitude of error. Bottom: T h i n plate spline interpolant (left) to 1089 noisy data points
sampled from Franke's function, and least squares approximation with 81 uniformly spaced thin
plate spline basis functions (right) false-colored by magnitude of error.
(including the linear term in the basis expansion) for smoothing of noisy data. T h e
smoothing parameter u) of (19.7) is defined on line 7 of Program 19.3, and the
diagonal stabilization of the (interpolation) matrix A is performed on line 17. Note
that the stabilization only affects the A part of the matrix, and not the extra rows
and columns added for polynomial precision.
P r o g r a m 19.3. TPS_RidgeRegression2D .m
% TPS_RidgeRegression2D
% S c r i p t t h a t performs 2D TPS-RBF approximation w i t h r e p r o d u c t i o n of
% l i n e a r f u n c t i o n s and smoothing v i a r i d g e r e g r e s s i o n
% C a l l s on: t p s , D i s t a n c e M a t r i x
/ Use TPS ( d e f i n e d i n tps.m, see Appendix C)
0
1 r b f = @tps; ep = 1;
/ Define Franke's f u n c t i o n a s t e s t f u n c t i o n
0
2 f l = @(x,y) 0.75*exp(-((9*x-2)."2+(9*y-2).~2)/4);
174 Meshfree Approximation Methods with MATLAB
3 f 2 = @(x,y) 0 . 7 5 * e x p ( - ( ( 9 * x + l ) . ~ 2 / 4 9 + ( 9 * y + l ) . ~ 2 / 1 0 ) ) ;
4 f 3 = @(x,y) 0 . 5 * e x p ( - ( ( 9 * x - 7 ) . ~ 2 + ( 9 * y - 3 ) . ~ 2 ) / 4 ) ;
5 f 4 = @(x,y) 0 . 2 * e x p ( - ( ( 9 * x - 4 ) . ~ 2 + ( 9 * y - 7 ) . ~ 2 ) ) ;
6 t e s t f u n c t i o n = @(x,y) f 1 ( x , y ) + f 2 ( x , y ) + f 3 ( x , y ) - f 4 ( x , y ) ;
7 omega = 100; % Smoothing parameter
8 N = 1089; g r i d t y p e = 'h';
9 n e v a l = 40;
/ Load data p o i n t s
0
11 ctrs = dsites;
% Compute d i s t a n c e matrix between d a t a s i t e s and c e n t e r s
12 DM_data = D i s t a n c e M a t r i x ( d s i t e s , c t r s ) ;
% Create n o i s y right-hand s i d e v e c t o r
13 rhs = testfunction(dsites(:,1),dsites(:,2));
14 rhs = rhs + 0.03*randn(size(rhs));
% Add z e r o s f o r 2D l i n e a r r e p r o d u c t i o n
15 rhs = [rhs; zeros(3,1)];
% Compute i n t e r p o l a t i o n m a t r i x and add d i a g o n a l r e g u l a r i z a t i o n
16 IM = rbf(ep,DM_data);
17 IM = IM + e y e ( s i z e ( I M ) ) / ( 2 * o m e g a ) ;
% Add e x t r a columns and rows f o r l i n e a r r e p r o d u c t i o n
18 PM = [ones(N,l) d s i t e s ] ; IM = [IM PM; [PM' z e r o s ( 3 , 3 ) ] ] ;
19 f p r i n t f (' Condition number e s t i m a t e : /e\n', condest (IM) )
7, Create n e v a l - b y - n e v a l e q u a l l y spaced e v a l u a t i o n l o c a t i o n s
7o i n the u n i t square
20 g r i d = l i n s p a c e ( 0 , 1 , n e v a l ) ; [xe,ye] = m e s h g r i d ( g r i d ) ;
21 epoints = [ x e ( : ) y e ( : ) ] ;
7o Compute d i s t a n c e m a t r i x between e v a l u a t i o n p o i n t s and c e n t e r s
22 DM_eval = D i s t a n c e M a t r i x ( e p o i n t s , c t r s ) ;
7o Compute e v a l u a t i o n m a t r i x and add columns f o r l i n e a r p r e c i s i o n
23 EM = rbf(ep,DM_eval);
24 PM = [ o n e s ( n e v a l " 2 , D e p o i n t s ] ; EM = [EM PM] ;
7o Compute RBF i n t e r p o l a n t
25 Pf = EM * ( I M \ r h s ) ;
7o Compute exact s o l u t i o n , i . e . ,
7. e v a l u a t e t e s t f u n c t i o n on e v a l u a t i o n p o i n t s
26 exact = t e s t f u n c t i o n ( e p o i n t s ( : , 1 ) , e p o i n t s ( : , 2 ) ) ;
7o Compute maximum e r r o r on e v a l u a t i o n g r i d
27 maxerr = n o r m ( P f - e x a c t , i n f ) ;
7o P l o t s
28 fview = [160,20]; % viewing angles f o r p l o t
29 PlotSurf(xe,ye,Pf,neval,exact,maxerr,fview);
19. Least Squares RBF Approximation with MATLAB 175
30 PlotError2D(xe,ye,Pf.exact,maxerr,neval,fview);
Fig. 19.3 T h i n plate spline ridge regression to 1089 noisy data points sampled from Franke's
function with UJ = 1000 (top left), UJ 100 (top right), UJ = 10 (bottom left), and UJ 1 (bottom
right).
Chapter 20
Gc = w, (20.1)
a n d t h e r i g h t - h a n d side v e c t o r w i n (20.1) is g i v e n b y
i=l
177
178 Meshfree Approximation Methods with MATLAB
o o
o o o o
o
o
o
o
o o o o
o
o
o
o
Fig. 0 . 1 Clusters of data points o around well separated centers .
O n e o f t h e k e y i n g r e d i e n t s i n t h e p r o o f o f t h e n o n - s i n g u l a r i t y o f G is t o set
u p a n i n t e r p o l a t i o n m a t r i x B for w h i c h t h e basis f u n c t i o n s are c e n t e r e d a t c e r t a i n
r e p r e s e n t a t i v e s o f t h e c l u s t e r s o f k n o t s a b o u t t h e d a t a sites. One t h e n splits the
matrix B ( w h i c h is n o n - s y m m e t r i c i n g e n e r a l ) i n t o a p a r t t h a t is s y m m e t r i c and
one t h a t is a n t i - s y m m e t r i c , a s t a n d a r d s t r a t e g y i n l i n e a r a l g e b r a , i.e., B B\ + B 2
T
B B
B 2 = (anti-symmetric).
I n t h e case o f basis f u n c t i o n s c e n t e r e d a t t h e p o i n t s o f a n i n f i n i t e l a t t i c e de B o o r ,
D e V o r e a n d R o n [ d e B o o r et a/.(1994b); R o n (1992)] discussed L 2 - a p p r o x i m a t i o n
o r d e r s for r a d i a l basis f u n c t i o n s .
M o r e recently, [ W a r d (2004)] p r o v i d e d e r r o r b o u n d s for least squares a p p r o x i -
m a t i o n at s c a t t e r e d centers a n d i n f i n i t e d o m a i n s . H i s w o r k is closely l i n k e d t o t h e
r e s u l t s i n [ N a r c o w i c h et al. (2005)] discussed earlier i n C h a p t e r 15.
A t y p i c a l r e s u l t is t h a t t h e c o n t i n u o u s least squares e r r o r for a p p r o x i m a t i o n
based o n t h e c o m p a c t l y s u p p o r t e d W e n d l a n d f u n c t i o n s is
s
H e r e fl C R is a b o u n d e d L i p s c h i t z d o m a i n w h i c h satisfies a n i n t e r i o r cone c o n d i -
t i o n , X C fl is t h e set o f centers, H<&(X) span{$(- X j ) , xj X}, k is such t h a t
r = k + a w i t h 0 < a < 1, a n d r > s/2 measures t h e decay o f t h e F o u r i e r t r a n s f o r m
o f <&, i.e.,
w i t h p o s i t i v e c o n s t a n t s c\ a n d c so t h a t t h e n a t i v e space o f $ is g i v e n b y t h e S o b o l e v
2
s
space W J ( R ) - T h i s e r r o r b o u n d is o f t h e same o r d e r as t h e one for i n t e r p o l a t i o n
(c.f. T h e o r e m 15.3). W e refer t h e reader t o [ W a r d (2004)] for m o r e d e t a i l s .
is
Chapter 21
A classical t e c h n i q u e used t o i m p r o v e t h e q u a l i t y o f a g i v e n i n i t i a l a p p r o x i m a t i o n
based o n a l i n e a r c o m b i n a t i o n o f c e r t a i n basis f u n c t i o n s is t o a d a p t i v e l y increase
t h e n u m b e r o f basis f u n c t i o n s used for t h e f i t . I n o t h e r w o r d s , one refines t h e space
f r o m w h i c h t h e a p p r o x i m a t i o n is c o m p u t e d . Since e v e r y r a d i a l basis f u n c t i o n is
associated w i t h one p a r t i c u l a r center ( o r knot), t h i s c a n b e achieved b y a d d i n g
2
n e w k n o t s t o t h e e x i s t i n g ones. T h i s i d e a was e x p l o r e d for m u l t i q u a d r i c s o n M in
[Franke et al. (1994); F r a n k e et al. ( 1 9 9 5 ) ] , a n d for r a d i a l basis f u n c t i o n s o n spheres
m [Fasshauer (1995a)].
W e w i l l n o w describe a n a l g o r i t h m t h a t a d a p t i v e l y adds k n o t s t o a r a d i a l basis
function a p p r o x i m a n t i n order t o i m p r o v e the i 2 error.
L e t us assume w e are g i v e n a large n u m b e r , N, o f d a t a a n d we w a n t t o f i t t h e m
w i t h a r a d i a l basis e x p a n s i o n t o w i t h i n a g i v e n t o l e r a n c e . T h e idea is t o s t a r t w i t h
v e r y few i n i t i a l k n o t s , a n d t h e n t o r e p e a t e d l y i n s e r t a k n o t a t t h a t d a t a l o c a t i o n
whose i 2 e r r o r c o m p o n e n t is largest. T h i s is d o n e as l o n g as t h e least squares e r r o r
exceeds a g i v e n t o l e r a n c e . T h e f o l l o w i n g a l g o r i t h m m a y be used.
A l g o r i t h m 21.1. K n o t insertion
3=1
181
182 Meshfree Approximation Methods with MATLAB
w i t h i t s associated e r r o r
N
W h i l e e > tol do
Wi = \fi-Qf(xi)\, i = l,...,N.
E = EU{x} and M = M + 1.
Program 2 1 . 1 . RBFKnotInsert2D.m
% RBFKnotInsert2D
% Script that performs 2D RBF l e a s t squares approximation
% v i a knot insertion
% Calls on: DistanceMatrix
1 rbf = @(e,r) exp(-(e*r).~2); ep = 5.5;
/ D e f i n e
0 F r a n k e ' s f u n c t i o n as testfunction
2 f l = <3(x,y) 0 . 7 5 * e x p ( - ( ( 9 * x - 2 ) . ~ 2 + ( 9 * y - 2 ) . ~ 2 ) / 4 ) ;
3 f2 = @(x,y) 0.75*exp(-((9*x+l).~2/49+(9*y+l).~2/10));
4 f3 = @(x,y) 0.5*exp(-((9*x-7).~2+(9*y-3).~2)/4);
5 f4 = @(x,y) 0.2*exp(-((9*x-4).~2+(9*y-7)."2));
6 testfunction = @(x,y) fI(x,y)+f2(x,y)+f3(x,y)-f4(x,y);
7 N = 289; gridtype = 'h';
8 M = 1; % Number o f initial centers
9 neval = 40;
10 grid = linspace(0,1,neval); [xe.ye] = meshgrid(grid);
11 epoints = [xe(:) ye(:)];
12 t o l = le-5; % Tolerance; stopping criterion
21. Adaptive Least Squares Approximation 183
% Load data p o i n t s
13 name = s p r i n t f ( ' D a t a 2 D _ % d % s ' , N , g r i d t y p e ) ; load(name)
% Take f i r s t M "data s i t e s " as c e n t e r s
14 ctrs = dsites(1:M,:);
% Compute exact s o l u t i o n , i . e . , e v a l u a t e t e s t f u n c t i o n
% on e v a l u a t i o n p o i n t s
15 exact = t e s t f u n c t i o n ( e p o i n t s ( : , 1 ) , e p o i n t s ( : , 2 ) ) ;
% Create r i g h t - h a n d s i d e v e c t o r , i . e . ,
% evaluate the t e s t function a t the data points.
lG rhs = testfunction(dsites(:,1),dsites(:,2));
17 rms_res = 999999;
18 w h i l e (rms_res > t o l )
% Compute l e a s t squares f i t
19 DM_data = D i s t a n c e M a t r i x ( d s i t e s , c t r s ) ;
20 CM = rbf(ep,DM_data);
21 coef = CM\rhs;
/ Compute r e s i d u a l
0
22 r e s i d u a l = abs(CM*coef - r h s ) ;
23 [sresidual,idx] = sort(residual);
24 Ires = length(residual);
25 rms_res = n o r m ( r e s i d u a l ) / s q r t ( I r e s ) ;
7, Add p o i n t ( s )
26 i f (rms_res > t o l )
27 addpoint = i d x ( I r e s ) ; % T h i s i s t h e p o i n t we add
/ I f a l r e a d y used, t r y next p o i n t
0
28 while any(ismember(ctrs,dsites(addpoint,:),'rows'))
29 I r e s = l r e s - 1 ; addpoint = i d x ( l r e s ) ;
30 end
31 ctrs = [ctrs; dsites(addpoint,:)];
32 end
33 end
/ Compute e v a l u a t i o n m a t r i x
0
34 DM_eval = D i s t a n c e M a t r i x ( e p o i n t s , c t r s ) ;
35 EM = rbf(ep,DM_eval);
36 Pf = EM*coef; % Compute RBF l e a s t squares approximation
37 maxerr = max(abs(Pf - e x a c t ) ) ; rms.err = n o r m ( P f - e x a c t ) / n e v a l ;
38 f p r i n t f ('RMS e r r o r : /e\n', r m s . e r r )
0
39 f i g u r e ; / P l o t d a t a s i t e s and c e n t e r s
0
40 plot(dsites(:,1),dsites(:,2),'bo',ctrs(:,1),ctrs(:,2),'r+');
41 PlotSurf(xe,ye,Pf,neval,exact,maxerr,[160,20] ) ;
A l g o r i t h m 21.2. K n o t removal
M
x
Qf( ) = Y2 j( ,j)
c x
21. Adaptive Least Squares Approximation 185
i=l
W h i l e e < tol do
(4) " W e i g h t " each k n o t j, j = 1 , . . . , M, a c c o r d i n g t o i t s least squares e r r o r ,
i.e., form
3 ' = 3 \ { f c } ,
i=l
where
M-l
Q}(x)= J 2 c
M x
^ j )
S = E\{ M } and M M 1.
(6) R e c a l c u l a t e f i t a n d associated e r r o r .
W e present a M A T L A B i m p l e m e n t a t i o n o f a k n o t r e m o v a l a l g o r i t h m t h a t is
s l i g h t l y m o r e efficient. I t s w e i g h t i n g s t r a t e g y is based o n t h e leave-one-out cross
v a l i d a t i o n a l g o r i t h m (see [ R i p p a (1999)] a n d C h a p t e r 17). T h e code is g i v e n i n
R B F K n o t R e m o v a l 2 D . m ( P r o g r a m 2 1 . 2 ) . T h i s p r o g r a m is s i m i l a r t o t h e k n o t inser-
tion program. I n fact, i t is a l i t t l e s i m p l e r since we do n o t have t o w o r r y a b o u t
multiple knots.
P r o g r a m 2 1 . 2 . RBFKnotRemove2D.m
% RBFKnotRemove2D
% Script that performs 2D RBF l e a s t squares approximation
% v i a knot removal
% Calls on: DistanceMatrix
1 r b f = @(e,r) exp(-(e*r).~2); ep = 5.5;
% D e f i n e F r a n k e ' s f u n c t i o n as testfunction
2 f l = @(x,y) 0 . 7 5 * e x p ( - ( ( 9 * x - 2 ) . ~ 2 + ( 9 * y - 2 ) . ~ 2 ) / 4 ) ;
3 f 2 = @(x,y) 0 . 7 5 * e x p ( - ( ( 9 * x + l ) . ~ 2 / 4 9 + ( 9 * y + l ) . " 2 / 1 0 ) ) ;
4 f 3 = @(x,y) 0 . 5 * e x p ( - ( ( 9 * x - 7 ) . ~ 2 + ( 9 * y - 3 ) . " 2 ) / 4 ) ;
5 f 4 = @(x,y) 0 . 2 * e x p ( - ( ( 9 * x - 4 ) . ~ 2 + ( 9 * y - 7 ) . ~ 2 ) ) ;
6 testfunction = @(x,y) f 1 ( x , y ) + f 2 ( x , y ) + f 3 ( x , y ) - f 4 ( x , y ) ;
186 Meshfree Approximation Methods with MATLAB
7 N = 289; g r i d t y p e = 'h';
8 M = 289; 7. Number of i n i t i a l c e n t e r s
9 n e v a l = 40;
10 g r i d = l i n s p a c e ( 0 , 1 , n e v a l ) ; [xe,ye] = m e s h g r i d ( g r i d ) ;
11 epoints = [xe(:) y e ( : ) ] ;
12 t o l = 5 e - l ; % T o l e r a n c e ; stopping c r i t e r i o n
% Load d a t a p o i n t s
,
13 name = s p r i n t f (Data2D_/,d/,s' ,N,gridtype) ; load(name)
% Take f i r s t M "data s i t e s " as c e n t e r s
14 c t r s = d s i t e s d :M, : ) ;
7. Compute exact s o l u t i o n , i . e . , e v a l u a t e t e s t f u n c t i o n
% on e v a l u a t i o n p o i n t s
15 exact = t e s t f u n c t i o n ( e p o i n t s ( : , 1 ) , e p o i n t s ( : , 2 ) ) ;
7 C r e a t e r i g h t - h a n d s i d e v e c t o r , i . e . ,
7, e v a l u a t e the t e s t f u n c t i o n a t t h e d a t a p o i n t s .
16 rhs = testfunction(dsites(:,1),dsites(:,2));
17 minres = 0;
18 w h i l e (minres < t o l )
7o Compute c o l l o c a t i o n m a t r i x
19 DM_data = D i s t a n c e M a t r i x ( d s i t e s , c t r s ) ;
20 CM = rbf(ep,DM_data);
7o Compute r e s i d u a l
21 invCM = pinv(CM); EF = (invCM*rhs)./diag(invCM);
22 residual = abs(EF);
23 [ s r e s i d u a l , i d x ] = s o r t ( r e s i d u a l ) ; minres = r e s i d u a l ( 1 ) ;
7. Remove p o i n t
24 i f (minres < t o l )
25 ctrs = [ c t r s ( l : i d x ( l ) - l , : ) ; ctrs(idx(l)+l:M,:)];
26 M = M-l;
27 end
28 end
7o E v a l u a t e f i n a l l e a s t squares f i t
29 DM_data = D i s t a n c e M a t r i x ( d s i t e s , c t r s ) ;
30 CM = rbf(ep,DM_data);
31 DM_eval = D i s t a n c e M a t r i x ( e p o i n t s , c t r s ) ;
32 EM = rbf(ep,DM_eval);
33 Pf = EM*(CM\rhs);
34 maxerr = max(abs(Pf - e x a c t ) ) ; rms_err = n o r m ( P f - e x a c t ) / n e v a l ;
35 f p r i n t f ('RMS e r r o r : 7.e\n' , r m s _ e r r )
36 figure; '/ P l o t d a t a s i t e s and c e n t e r s
37 plot(dsites(:,1),dsites(:,2),'bo',ctrs(:,1),ctrs(:,2),\r+');
38 c a p t i o n = s p r i n t f ( ' 7 o d d a t a s i t e s and 7od c e n t e r s ' , N, M) ;
21. Adaptive Least Squares Approximation 187
39 title(caption);
40 PlotSurf(xe,ye,Pf,neval,exact.maxerr,[160,20]);
A g a i n we w o u l d l i k e t o c o m m e n t o n t h e a l g o r i t h m . A s far as c o m p u t a t i o n a l
t i m e s are concerned, A l g o r i t h m 21.2 as l i s t e d above is much slower t h a n t h e M A T -
L A B i m p l e m e n t a t i o n P r o g r a m 21.2 based o n t h e L O O C V i d e a since t h e w e i g h t for
every k n o t is d e t e r m i n e d b y t h e s o l u t i o n o f a least squares p r o b l e m , i.e., i n every
i t e r a t i o n one needs t o solve M least squares p r o b l e m s . T h e M A T L A B p r o g r a m r u n s
c o n s i d e r a b l y faster, b u t u s u a l l y i t is s t i l l slower t h a n t h e k n o t i n s e r t i o n a l g o r i t h m .
T h i s is clear since w i t h t h e k n o t r e m o v a l s t r a t e g y one s t a r t s w i t h l a r g e p r o b l e m s
t h a t get successively s m a l l e r , whereas w i t h k n o t i n s e r t i o n one begins w i t h s m a l l
p r o b l e m s t h a t c a n be solved q u i c k l y .
T h e o n l y w a y t h e k n o t r e m o v a l a p p r o a c h w i l l be b e n e f i c i a l is w h e n t h e n u m b e r
o f e v a l u a t i o n s o f t h e c o n s t r u c t e d a p p r o x i m a n t is m u c h l a r g e r t h a n i t s a c t u a l c o m p u -
t a t i o n . T h i s is so since, for c o m p a r a b l e tolerances, one w o u l d e x p e c t k n o t r e m o v a l
t o r e s u l t i n fewer k n o t s t h a n k n o t i n s e r t i o n . H o w e v e r , o u r e x a m p l e s s h o w t h a t t h i s
is n o t necessarily t r u e .
I f t h e i n i t i a l k n o t s are chosen a t t h e d a t a sites t h e n , a g a i n , t h e r e w i l l be n o
p r o b l e m s w i t h t h e c o l l o c a t i o n m a t r i x b e c o m i n g r a n k deficient.
I n [Fasshauer (1995a); Fasshauer ( 1 9 9 5 b ) ] some o t h e r a l t e r n a t i v e s t o t h i s k n o t
r e m o v a l s t r a t e g y were considered. O n e o f t h e m is t h e r e m o v a l o f c e r t a i n g r o u p s o f
k n o t s a t one t i m e i n o r d e r t o speed u p t h e process. A n o t h e r is based o n c h o o s i n g
t h e w e i g h t s based o n t h e size o f t h e coefficients Cj i n t h e e x p a n s i o n o f Q / , i.e., to
remove t h a t k n o t whose associated coefficient is smallest.
A f u r t h e r v a r i a t i o n o f t h e a d a p t i v e a l g o r i t h m s was c o n s i d e r e d i n b o t h [Franke
et al. (1994)] a n d i n [Fasshauer ( 1 9 9 5 a ) ] . I n s t e a d o f t r e a t i n g o n l y t h e coefficients
of t h e e x p a n s i o n o f Qf as p a r a m e t e r s i n t h e m i n i m i z a t i o n process, one c a n also
i n c l u d e t h e k n o t l o c a t i o n s t h e m s e l v e s a n d p o s s i b l y a ( v a r i a b l e ) shape p a r a m e t e r .
T h i s however, leads t o nonlinear least squares p r o b l e m s . W e w i l l n o t discuss t h i s
t o p i c f u r t h e r here.
Buhmann, Derrien, and Le Mehaute [ B u h m a n n et al. (1995); Le Mehaute
(1995)] also discuss k n o t r e m o v a l . T h e i r a p p r o a c h is based o n a n a priori esti-
Table 21.1 Total of knots selected, errors and runtimes for adaptive
least squares approximants.
I n t h e m i d d l e p a r t o f F i g u r e 2 1 . 1 w e s h o w t h e r e s u l t s for t h e same c o n f i g u r a t i o n ,
i.e., Gaussians w i t h e = 5.5 a n d N = 289 i n i t i a l k n o t s , for t h e k n o t removal
algorithm. T h i s t i m e we t a k e tol = 0.5, a n d t h e k n o t r e m o v a l a l g o r i t h m begins
w i t h a n i n t e r p o l a n t t o a l l 289 d a t a values. I n T a b l e 2 1 . 1 w e c a n c o m p a r e t h e e r r o r s
a n d r u n t i m e s for t h e t w o a l g o r i t h m s . I t is clear t h a t t h e k n o t i n s e r t i o n a l g o r i t h m
is m u c h m o r e efficient for t h i s e x a m p l e .
A n o t h e r a d v a n t a g e o f t h e k n o t i n s e r t i o n a l g o r i t h m is revealed i n t h e b o t t o m
p a r t o f F i g u r e 21.1 a n d l i n e 3 o f T a b l e 2 1 . 1 . W e s t i l l use Gaussians w i t h shape
p a r a m e t e r e = 5.5. H o w e v e r , n o w we t a k e N = 4225 H a l t o n p o i n t s as o u r d a t a
set. T h i s p r o v i d e s m a n y m o r e c a n d i d a t e s as centers for basis f u n c t i o n s . T h e chosen
centers are d i s p l a y e d o n t h e left o f t h e b o t t o m p a r t o f F i g u r e 2 1 . 1 , a n d i t is clear
t h a t t h i s center s e l e c t i o n is closely a d a p t e d t o t h e features o f t h e d a t a f u n c t i o n ,
n a m e l y t h e peaks a n d valley. T h e rest o f t h e k n o t s are l o c a t e d a l o n g t h e boundary
o f t h e d o m a i n . M o r e o v e r , we see t h a t i t is possible t o o b t a i n a m u c h m o r e a c c u r a t e
fit w i t h r o u g h l y t h e same n u m b e r o f basis f u n c t i o n s . W h i l e t h e r u n t i m e for t h i s
e x a m p l e is c o n s i d e r a b l y longer t h a n t h a t for t h e o t h e r k n o t i n s e r t i o n e x a m p l e i t
is c o m p a r a b l e t o t h e t i m e r e q u i r e d for t h e k n o t r e m o v a l a l g o r i t h m w i t h o n l y 289
d a t a sites. R u n n i n g t h e k n o t r e m o v a l a l g o r i t h m w i t h 4225 d a t a sites w o u l d be
p r o h i b i t i v e l y expensive.
21. Adaptive Least Squares Approximation 189
10.025
1
0.8 o c
0.8
o o 10.02
o 1 0.6*
0.6 o o
o 8
O o 0.4. |0.015 2
Q ^
8
o a 8
o 0.2.
0.4 o
0- 10.01
BO
P o C
o
0.2 ffi o 10.005
8
) a,
SL_
8
0.2 0.4 0.6 0.8
x
o b o o
o e o
0.8 o
o
0.6 o
, 8
o 18 o
0.4
o o
o 8
0.2
1 1
Fig. 21.1 Top: 289 data sites and 154 knots (left) for least squares approximation to Franke's
function (right) using knot insertion algorithm with tol = le-004. Middle: 289 data sites and 153
knots (left) for least squares approximation to Franke's function (right) using knot removal algo-
rithm with tol = 0.5. Bottom: 4225 data sites and 163 knots (left) for least squares approximation
to Franke's function (right) using knot insertion algorithm with tol = le-004.
J
Chapter 22
A n a l t e r n a t i v e t o r a d i a l basis f u n c t i o n i n t e r p o l a t i o n a n d a p p r o x i m a t i o n is t h e so-
called moving least squares ( M L S ) m e t h o d . A s w e w i l l see b e l o w , i n t h i s m e t h o d t h e
a p p r o x i m a t i o n Vf t o / is o b t a i n e d b y s o l v i n g m a n y ( s m a l l ) l i n e a r systems, i n s t e a d
o f v i a s o l u t i o n o f a single b u t l a r g e l i n e a r s y s t e m as w e d i d i n t h e previous
chapters.
U = s p a n { p i , . . . ,p }, m m<N,
3=1
such t h a t
H e r e t h e n o r m is defined v i a t h e d i s c r e t e (pseudo) i n n e r p r o d u c t
i=l
w i t h scalar w e i g h t s uii = w(xi), i = 1,... ,N. T h e i n d u c e d n o r m is t h e n o f t h e f o r m
i=l
191
192 Meshfree Approximation Methods with MATLAB
I t is w e l l k n o w n t h a t t h e best a p p r o x i m a t i o n u f r o m U t o / is c h a r a c t e r i z e d by
f - u w U (f-u,p )w k = 0, k = l,...,m,
m
(f ~ ^2cjPj,Pk)w = 0, k = l,...,m,
j=i
m
c
^2 j{PjiPk)w = (f,Pk)w, k = l,...,m,
3= 1
^ G c = f. p (22.1)
22.2 S t a n d a r d I n t e r p r e t a t i o n of M L S A p p r o x i m a t i o n
N
= ^Pjixi - y)p (xik - y)w(xi,y), (22.9)
i=l
T
a n d t h e coefficient v e c t o r is o f t h e f o r m c(y) = [c\(y),..., c (y)] .
m O n the right-
h a n d side o f (22.8) we have t h e v e c t o r f (y) p = [ ( / , P i ( - - l / ) ) w , , ( / , P m ( -
w -
T
y))w ]v o f p r o j e c t i o n s o f t h e d a t a o n t o t h e basis f u n c t i o n s .
Several c o m m e n t s are c a l l e d for. F i r s t , t o ensure i n v e r t i b i l i t y o f t h e G r a m m a t r i x
we need t o i m p o s e a s m a l l r e s t r i c t i o n o n t h e set X o f d a t a sites. N a m e l y , X needs
t o be (i-unisolvent (c.f. D e f i n i t i o n 6.1). I n t h i s case t h e G r a m m a t r i x is s y m m e t r i c
a n d p o s i t i v e d e f i n i t e since t h e p o l y n o m i a l basis is l i n e a r l y i n d e p e n d e n t a n d the
w e i g h t s are p o s i t i v e . Second, t h e fact t h a t t h e coefficients c - d e p e n d o n t h e p o i n t3
22.3 T h e B a c k u s - G i l b e r t A p p r o a c h to M L S A p p r o x i m a t i o n
T h e c o n n e c t i o n b e t w e e n t h e s t a n d a r d m o v i n g least squares f o r m u l a t i o n a n d B a c k u s -
G i l b e r t t h e o r y was p o i n t e d o u t i n [Bos a n d Salkauskas (1989)]. M a t h e m a t i c a l l y , i n
t h e B a c k u s - G i l b e r t a p p r o a c h one considers a quasi-interpolant of the form
N
V (x)
f = J2f(xi)*i(x), (22-10)
i=l
T
w h e r e / = [f(xi),..., /(ccjv)] represents t h e g i v e n d a t a .
22. Moving Least Squares Approximation 195
Q u a s i - i n t e r p o l a t i o n is a g e n e r a l i z a t i o n o f t h e i n t e r p o l a t i o n idea. I f we use a l i n e a r
f u n c t i o n space s p a n { < & i , . . . , < & } t o a p p r o x i m a t e g i v e n d a t a { / ( c c i ) , . . . , / ( a j j v ) } ,
N
k t ^ v ) ^ (22.12)
subject t o t h e p o l y n o m i a l r e p r o d u c t i o n constraints
N
x s
J2p( i - y)*i(x, y) = p(x - y), for all p e Il , d (22.13)
196 Meshfree Approximation Methods with MATLAB
we c a n r e f o r m u l a t e (22.13) i n m a t r i x - v e c t o r f o r m as
where A {y)
3i = p {xi
3 - y), j = 1, . . . , m , i = 1,...,N, V(x,y) =
T
[&i(x, y),..., ^^(x, y)] is t h e v e c t o r o f values o f t h e g e n e r a t i n g f u n c t i o n s , a n d
T
P [Pi) , P m ] is t h e v e c t o r o f basis p o l y n o m i a l s . T h e c o r r e s p o n d i n g m a t r i x -
vector f o r m u l a t i o n o f (22.12) is
T
l* (x,y)Q(y)*(x,y), (22.15)
where
A(y)^(x,y) =p(x-y)
w i t h m x N ( m < N) s y s t e m m a t r i x . T h e n o r m o f t h e s o l u t i o n v e c t o r is a w e i g h t e d
n o r m t h a t varies w i t h t h e (fixed) reference p o i n t y a n d is m e a s u r e d as i n ( 2 2 . 1 5 ) .
I n o t h e r w o r d s , t h e B a c k u s - G i l b e r t f o r m u l a t i o n guarantees t h a t we find t h e "best"
system of generating functions w i t h local p o l y n o m i a l r e p r o d u c t i o n properties, where
"best" is m e a s u r e d i n t e r m s o f t h e n o r m ( 2 2 . 1 5 ) .
T h e q u a d r a t i c f o r m (22.12) (or e q u i v a l e n t l y ( 2 2 . 1 5 ) ) c a n also be i n t e r p r e t e d as
a smoothness f u n c t i o n a l . I t s use is also m o t i v a t e d b y p r a c t i c a l a p p l i c a t i o n s . In
t h e B a c k u s - G i l b e r t t h e o r y , w h i c h was d e v e l o p e d i n t h e c o n t e x t o f geophysics (see
[Backus a n d G i l b e r t ( 1 9 6 8 ) ] ) , i t is desired t h a t t h e g e n e r a t i n g f u n c t i o n s are as
close as possible t o t h e i d e a l c a r d i n a l f u n c t i o n s ( i . e . , d e l t a f u n c t i o n s ) . Therefore,
one needs t o m i n i m i z e t h e i r " s p r e a d " . The polynomial reproduction constraints
22. Moving Least Squares Approximation 197
are a g e n e r a l i z a t i o n o f a n o r i g i n a l n o r m a l i z a t i o n c o n d i t i o n w h i c h c o r r e s p o n d s t o
reproduction of constants only.
For any c o m b i n a t i o n o f a f i x e d ( e v a l u a t i o n ) p o i n t x a n d a fixed (reference)
p o i n t y the c o m b i n a t i o n of ( 2 2 . 1 2 ) and ( 2 2 . 1 3 ) (or e q u i v a l e n t l y ( 2 2 . 1 5 ) a n d (22.14))
present j u s t a n o t h e r c o n s t r a i n e d q u a d r a t i c m i n i m i z a t i o n p r o b l e m o f t h e f o r m dis-
cussed i n p r e v i o u s chapters.
According to our earlier work we use Lagrange multipliers X(x,y) =
T
[Xi(x, y),...,X (x,y)]
m ( d e p e n d i n g o n x a n d y), a n d t h e n k n o w t h a t (c.f. (19.4)
a n d (19.5))
1 T 1
X(x,y) = (A(y)Q- (y)A (y)y p(x-y) (22.17)
1 T
*(x,y) = Q- (y)A (y)X(x,y). (22.18)
G(y)X(x,y)=p(x-y), (22.20)
T T
w h e r e p = [ p i , . . . ,p ] m and c = [ c i , . . . , c m ] .
I n (22.8) we w r o t e t h e n o r m a l e q u a t i o n s for t h i s a p p r o a c h as
G(y)c(y) = f (y).
p
N o t e t h a t t h e r i g h t - h a n d side v e c t o r f (y) p c a n be w r i t t e n as
T
f (y)
P = - y))w ,- v , < / , P m ( - - y))w ]
v
= A(y)Q-\y)f (22.22)
1
w i t h t h e m a t r i x Q~ (y) used i n t h e B a c k u s - G i l b e r t f o r m u l a t i o n . T h i s i m p l i e s
1
c{y) = G- {y)A{y)Q-\y)f.
T h u s , u s i n g t h e s t a n d a r d a p p r o a c h , we get
T T
u(x, y) = p (x - y)c(y) = p (x - y)G-\y)A{y)Q-\y)f. (22.23)
For t h e B a c k u s - G i l b e r t a p p r o a c h , o n t h e o t h e r h a n d , t h e "ansatz" is o f t h e f o r m
(22.11)
N
T
u(x,y) =J2f(x )t> (x,y)
i i = V (x,y)f,
T T
w h e r e as before ^(x,y) = [$i(x,y),.. .,fy (x,y)]
N and / = [ / ( x ) , . . . ,
x f(x )] .
N
22.5 D u a l i t y a n d B i - O r t h o g o n a l Bases
F r o m the Backus-Gilbert f o r m u l a t i o n we k n o w t h a t
1
G(y)X(x,y)=p(x-y) X(x, y) = G' (y)p(x - y). (22.24)
or
3= 1
200 Meshfree Approximation Methods with MATLAB
with
d
j(y) = (fiPji- -y))w , y j = l,...,m.
W e c a n v e r i f y t h i s b y a p p l y i n g (22.20) a n d (22.22) t o ( 2 2 . 2 3 ) , i.e.,
T 1 1
u{x, y) = p (x - y)G- (y)A(y)Q- (y)f.
We then obtain
T
u(x,y) = X (x,y)f (y),
p
w h i c h corresponds t o (22.28).
T h e c a l c u l a t i o n s j u s t p r e s e n t e d s h o w t h a t t h e L a g r a n g e m u l t i p l i e r s f o r m a basis
t h a t is dual t o t h e p o l y n o m i a l basis. I n p a r t i c u l a r , i f we r e c a l l t h e M L S a p p r o x i m a n t
i n its standard representation
m
3= 1
T h i s , however, i m p l i e s
(Pfc(- - y),Xj(-,y)) Wy = S, jk j,k = l,...,m. (22.29)
T h e r e f o r e we have t w o sets o f basis f u n c t i o n s t h a t are bi-orthogonal w i t h respect
t o t h e special w e i g h t e d i n n e r p r o d u c t ( - , - ) W y o n t h e set X. We will illustrate this
d u a l i t y i n C h a p t e r 24.
E a r l i e r we d e r i v e d t h e r e p r e s e n t a t i o n (c.f. (22.18))
T
9{x,y) =Q-\y)A (y)\{x,y)
for t h e g e n e r a t i n g f u n c t i o n s i n t h e B a c k u s - G i l b e r t f o r m u l a t i o n . Since t h e L a g r a n g e
1
m u l t i p l i e r s are g i v e n b y X(x,y) = G~ (y)p(x y) (see ( 2 2 . 2 0 ) ) we get
T 1 - 1 T
*(x,y) = Q-\y)A {y)G- {y)p{x - y) = Q (y)A (y)p(x - y)
due t o ( 2 2 . 2 5 ) . T h u s , t h e B a c k u s - G i l b e r t r e p r e s e n t a t i o n is g i v e n also b y t h e d u a l
representation
N .f .
T
u(x, y) = f{xi)w(xi, y)\ {xi, y)p(x - y). (22.30)
22. Moving Least Squares Approximation 201
or in dual form
m
x x
u{x,y) = E(/> j(->y)) Pj( v - v)
3= 1
m
= ^2(f:Pj(--y))w Xj(x,y) v
3= 1
N
X i x
= Y l ^ ) ^ ^ ^ y y
i=l
This results in the four representations
m
x
= *52{f>Pj(- - ))w^Xj(x,x)
3= 1
N m
F i n a l l y , i t is also possible t o f o r m u l a t e t h e s t a n d a r d M L S a p p r o a c h as a c o n -
strained quadratic minimization problem. To this end we (artificially) introduce
the quadratic functional
m m
C C G
T
c (y)G(y)c(y) = EE ^) ^) ^)
j=l k=l
m m
3= 1 k=l
w h i c h s h o u l d be i n t e r p r e t e d as t h e ( y - d e p e n d e n t ) n a t i v e space n o r m o f t h e a p p r o x -
m
i m a n t u(x,y) = ^^Cj(y)pj(x y). T h e G r a m s y s t e m (22.8) c a n be w r i t t e n i n
3= 1
m a t r i x - v e c t o r f o r m as
1
G(y)c{y)=A(y)Q- (y)f "
T T
\c {y)G{y)c{y) - / x ( y ) [G(y)c(y) - A(y)Q-\y)f] , (22.31)
w h e r e fjt(y) is a v e c t o r o f L a g r a n g e m u l t i p l i e r s .
T h e solution of the linear system resulting f r o m the m i n i m i z a t i o n p r o b l e m
(22.31) gives us
T 1 1 T
/ * ( y ) = {G{y)G-\y)G {y)Y A{y)Q- {y)f = G- {y)A{y)Q-\y)f
1 T
c(y) = G- (y)G (y) x(y) t = //(</)
22.7 Remarks
B y s e t t i n g y = x we get
23.1 Shepard's M e t h o d
implies
N
Y2f(xi)w(xi,x)
ci(x) = ^ . (23.1)
Y^w(xj,x)
3= 1
I f we c o m p a r e (23.1) w i t h the Backus-Gilbert quasi-interpolation formulation
(22.11) we i m m e d i a t e l y see t h a t t h e g e n e r a t i n g f u n c t i o n s are g i v e n b y
{ X i x )
*<(x,x)= ' . (23.2)
^2w{xj,x)
3= 1
Since
f x ^ - f ;
i=l i=l
N
wix
" I
x)
\
= i (23.3)
2^w(xj,x)
3= 1
205
206 Meshfree Approximation Methods with MATLAB
w h e r e w is one o f o u r ( s t r i c t l y p o s i t i v e d e f i n i t e ) r a d i a l basic f u n c t i o n s . B o t h c o m -
p a c t l y s u p p o r t e d a n d g l o b a l l y s u p p o r t e d f u n c t i o n s w i l l be used.
T h e d u a l S h e p a r d basis is defined b y (see ( 2 2 . 2 4 ) )
G{y)X(x,y) = p(x - y)
so t h a t
Ai(cc,a;) -
N
^2 w{x ,x)
/ i
i=l
a n d (c.f. (22.28))
V (x)
f = di(a;)Ai(a;,aj) (23.4)
with
N
T h e e x p l i c i t d u a l r e p r e s e n t a t i o n o f t h e S h e p a r d a p p r o x i m a n t is, o f course, i d e n t i c a l
t o (23.1).
T h e g e n e r a t i n g f u n c t i o n s (22.19) are defined as
a? a?
^i(x, x) = w(xi, x)Xi(x, x)pi(xi - x) = ^( ' ) ;
^ w { x 3 , x )
3= 1
V (x)
f = ^2f(x )V (x,x)i i
i=l
w ( X u X )
= /(*<) N
Y2w(xj,x)
3= 1
Indeed
N
( A I ( - , S B ) , P I ( - - x)) Ww = y^ X (x ,x)w(x ,x)
j 1 i i
i=l
w(xj, x)
U = s p a n { p i ( x ) = 1, P2(x) = x}.
T h e n t h e G r a m m a t r i x (22.20) is o f t h e f o r m
( p i ( - - x),pi(- - x))
Wx ( p i ( - - x),p (- 2 - x)) Wx
G(x) =
( p ( - - x),p (-
2 x - x)) Wx ( p ( - - x),p (-
2 2 - x)) Wx
w x x X
I2i=l ( ii ) Y2i=l( i ~ x)w(Xi,x)
X _ x 2
YliLl (* x)w(Xi , X) YliLl (i ~ x) w(Xi , X)
208 Meshfree Approximation Methods with MATLAB
a n d t h e r i g h t - h a n d side o f t h e G r a m s y s t e m is g i v e n b y
>i(0)" "1"
p(x x)
_P2(0)_ 0
2
Xi(x,x) - ^
M0M2 - /i? '
Ml
X (x,x)
2
w h e r e t h e w(xi, ) a r e a r b i t r a r y ( p o s i t i v e ) w e i g h t f u n c t i o n s .
2
U = s p a n { p i ( x ) = 1 , p (x) 2 = x, p (x) 3 = x }.
T h e 3 x 3 G r a m system
M2M4 - Mg
Xi(x,x) =
D
M2M3 - MlM4
X (x,x)
2 =
D
MlM3 - 1*2
X (x,x)
3 =
D
2
w h e r e x = (x, y) G K , a n d t h e G r a m s y s t e m l o o k s l i k e
T h e L a g r a n g e m u l t i p l i e r s i n t h i s case t u r n o u t t o be
A (a;, x) =
2 [M10M02 - M01M11] >
A (aj,aj) =
3 [M20M01 - M10M11] >
T h
w i t h D = M10M02 + M20M01 M00M20M02 - 2 / i i o M o i M u + MooMii-
_
e generating
functions i = 1 , . . . , i V , for t h i s e x a m p l e are o f t h e f o r m
24.1 A p p r o x i m a t i o n w i t h Shepard's M e t h o d
I n t h i s section w e i n v e s t i g a t e a p p r o x i m a t i o n w i t h S h e p a r d ' s m e t h o d
{ X i X ) s
PA*) = E/W ' , * GK .
3= 1
211
212 Meshfree Approximation Methods with M A T L A B
stationary non-stationary
9 1.835110e-001 1.835110e-001
25 5.885159e-002 1.6407 1.303771e-001 0.4932
81 2.299502e-002 1.3558 1.311538e-001 -0.0086
289 6.726166e-003 1.7735 1.315894e-001 -0.0048
1089 2.113604e-003 1.6701 1.320564e-001 -0.0051
4225 8.065893e-004 1.3898 1.323576e-001 -0.0033
F r a n k e d a t a ) i n t h e b o t t o m p a r t o f F i g u r e 2 4 . 1 . O n t h e left we d i s p l a y t h e S h e p a r d
a p p r o x i m a t i o n based o n G a u s s i a n w e i g h t s w i t h e = 48 ( c o r r e s p o n d i n g t o t h e e n t r y
i n l i n e 5 o f T a b l e 2 4 . 1 ) . T h e R M S - e r r o r for t h i s a p p r o x i m a t i o n is 1.820897e-002.
T h e p l o t o n t h e r i g h t o f t h e b o t t o m p a r t o f F i g u r e 24.1 is t h e r e s u l t o f r e d u c i n g e
t o 12, a n d t h u s i n c r e a s i n g t h e s m o o t h i n g effect since " w i d e r " w e i g h t f u n c t i o n s are
used, i.e., m o r e n e i g h b o r i n g d a t a are i n c o r p o r a t e d i n t o t h e l o c a l regression fit. T h e
c o r r e s p o n d i n g R M S - e r r o r is 2.481218e-002. N o t e t h a t even t h o u g h t h e R M S - e r r o r
is larger for t h e p l o t o n t h e r i g h t , t h e surface is v i s u a l l y s m o o t h e r . These examples
s h o u l d be c o m p a r e d t o t h e d a t a s m o o t h i n g e x p e r i m e n t s i n C h a p t e r 19.
T h e M A T L A B code for t h e 2 D e x p e r i m e n t s is Shepard2D. m l i s t e d as Pro-
g r a m 2 4 . 1 . I t is a l i t t l e s i m p l e r t h a n t h e R B F i n t e r p o l a t i o n code used earlier since
we d o n o t need t o assemble a n i n t e r p o l a t i o n m a t r i x a n d n o l i n e a r s y s t e m needs t o
be solved. T h e e v a l u a t i o n m a t r i x is assembled i n t w o steps. F i r s t , o n l i n e 14, we
compute the standard R B F evaluation m a t r i x . I n order t o implement the Shepard
scaling we n o t e t h a t a l l o f t h e entries i n r o w i o f t h e e v a l u a t i o n m a t r i x are scaled
w x x
w i t h t h e same s u m , ] C j L i ( ji i)- T h e r e f o r e , o n l i n e 16, we p e r f o r m t h e e x t r a
S h e p a r d scaling w i t h t h e h e l p o f repmat a n d a v e c t o r o f ones w h i c h gives us a l l t h e
necessary sums i n t h e d e n o m i n a t o r . F o r t h e e x a m p l e w i t h n o i s y d a t a we a d d
f = f + 0.03*randn(size(f));
after l i n e 1 1 .
P r o g r a m 24.1. Shepard2D. m
7, Shepard2D
7, S c r i p t t h a t performs 2D Shepard approximation w i t h g l o b a l weights
7. C a l l s on: D i s t a n c e M a t r i x , P l o t S u r f , P l o t E r r o r 2 D
1 r b f = @(e,r) e x p ( - ( e * r ) . ~ 2 ) ; ep = 5.5;
7o Define F r a n k e ' s f u n c t i o n as t e s t f u n c t i o n
2 f l = @(x,y) 0 . 7 5 * e x p ( - ( ( 9 * x - 2 ) . ~ 2 + ( 9 * y - 2 ) . ~ 2 ) / 4 ) ;
3 f 2 = <3(x,y) 0 . 7 5 * e x p ( - ( ( 9 * x + l ) . ~ 2 / 4 9 + ( 9 * y + l ) . ~ 2 / 1 0 ) ) ;
4 f 3 = @(x,y) 0 . 5 * e x p ( - ( ( 9 * x - 7 ) . ~ 2 + ( 9 * y - 3 ) . ~ 2 ) / 4 ) ;
24- MLS Approximation with MATLAB 213
Fig. 24.1 Top: Shepard approximation with stationary Gaussian weights to Franke's function
2
using 9 (left) and 25 (right) uniformly spaced points in [0, l ] . Bottom: Shepard approximation
with Gaussian weights to noisy Franke's function using e = 48 (left) and = 12 (right) on 1089
2
uniformly spaced points in [0, l ] .
16 EM = EM./repmat(EM*ones(N,1),1,N); % Shepard n o r m a l i z a t i o n
/ Compute q u a s i - i n t e r p o l a n t
0
17 Pf = EM*f;
"It Compute e x a c t s o l u t i o n , i . e . ,
X e v a l u a t e t e s t f u n c t i o n on e v a l u a t i o n p o i n t s
18 exact = t e s t f u n c t i o n ( e p o i n t s ( : , 1 ) , e p o i n t s ( : , 2 ) ) ;
% Compute e r r o r s on e v a l u a t i o n g r i d
19 maxerr = n o r m ( P f - e x a c t , i n f ) ;
20 rms_err = norm(Pf-exact)/neval;
21 fprintf('RMS error: %e\n', rms_err)
22 fprintf('Maximum e r r o r : %e\n', maxerr)
% Plot interpolant
23 PlotSurf(xe,ye,Pf,neval,exact,maxerr,[160,20]);
% P l o t absolute e r r o r
24 PlotError2D(xe,ye,Pf,exact,maxerr,neval,[160,20]);
T h e n e x t g r o u p o f e x p e r i m e n t s ( r e p o r t e d i n T a b l e s 24.2 a n d 24.3) s h o u l d b e
c o m p a r e d t o t h e d i s t a n c e m a t r i x fits o f C h a p t e r 1. T h e d a t a are a g a i n s a m p l e d
f r o m t h e test f u n c t i o n
s
s
f (x)
s = 4 Y[x (l-x ), d d x = (xi,...,x )3 G [0, l ] ,s
d=l
w h i c h is p a r a m e t r i z e d b y t h e space d i m e n s i o n s a n d c o d e d i n t h e M A T L A B s u b r o u -
t i n e t e s t f u n c t i o n . m (see P r o g r a m C l ) .
Since we are using the compactly supported weights w(xi,x)
(1 e\\x Xi\\)^_ (4e\\x Xi\\ + 1) w e c a n keep t h e e v a l u a t i o n m a t r i x sparse a n d
are therefore able t o deal w i t h m u c h larger d a t a sets. A g a i n , w e e m p l o y a s t a t i o n -
a r y a p p r o x i m a t i o n scheme, i.e., t h e scale p a r a m e t e r e for t h e s u p p o r t o f t h e w e i g h t
f u n c t i o n s is ( i n v e r s e l y ) p r o p o r t i o n a l t o t h e f i l l - d i s t a n c e . I n fact, we t a k e e = 2 + 1
fc
k s
(see line 4 o f P r o g r a m 24.2), w h e r e A; also d e t e r m i n e s t h e n u m b e r = (2 + l ) of
s
d a t a p o i n t s used (c.f. l i n e 3). T h e s e p o i n t s are t a k e n t o be H a l t o n p o i n t s i n [0, l ]
(c.f. l i n e 6).
I n Tables 24.2 a n d 24.3 w e list R M S - e r r o r s ( c o m p u t e d o n v a r i o u s g r i d s o f e q u a l l y
spaced p o i n t s , i.e., m o s t l y o n t h e b o u n d a r y o f t h e u n i t c u b e i n h i g h e r d i m e n s i o n s )
s
for a series o f a p p r o x i m a t i o n p r o b l e m s i n K . for s = l,2,...,6. A g a i n , t h e a p p r o x -
i m a t i o n o r d e r for S h e p a r d ' s m e t h o d seems t o be r o u g h l y 0(h) independent of the
space d i m e n s i o n s.
T h e M A T L A B code Shepard_CS. m is l i s t e d as P r o g r a m 24.2. T h i s t i m e t h e eval-
u a t i o n m a t r i x is a sparse m a t r i x w h i c h we also c o m p u t e i n t w o steps. T h e s t a n d a r d
RBF e v a l u a t i o n m a t r i x is c o m p u t e d as for o u r e a r l i e r C S R B F c o m p u t a t i o n s on
lines 10 a n d 11 u s i n g t h e s u b r o u t i n e DistanceMatrixCSRBF.m (see C h a p t e r 12).
T h i s t i m e t h e S h e p a r d s c a l i n g is p e r f o r m e d o n l i n e 12 w i t h t h e h e l p o f a d i a g o n a l
m a t r i x stored i n the spdiags f o r m a t .
24- MLS Approximation with MATLAB 215
ID 2D 3D
4D 5D 6D
P r o g r a m 24.2. Sh.epard_CS.rn
7, Shepard.CS
% S c r i p t t h a t performs Shepard approximation f o r a r b i t r a r y
% space dimensions s u s i n g s p a r s e m a t r i c e s
/
0C a l l s on: DistanceMatrixCSRBF, MakeSDGrid, t e s t f u n c t i o n
% Uses: h a l t o n s e q ( w r i t t e n by D a n i e l Dougherty from
7, MATLAB C e n t r a l F i l e Exchange)
% Wendland C2 weight f u n c t i o n
1 r b f = @(e,r) r . ~ 4 . * ( 5 * s p o n e s ( r ) - 4 * r ) ;
2 s = 6; % Space dimension s
% Number of Halton d a t a p o i n t s
3 k = 3; N = ( 2 ~ k + l ) ~ s ;
4 ep = 2~k+l; % S c a l e parameter f o r b a s i s f u n c t i o n
5 n e v a l = 4; M = n e v a l ~ s ;
7o Compute d a t a s i t e s as H a l t o n p o i n t s
6 dsites = haltonseq(N,s);
7 ctrs = dsites;
7o Create v e c t o r of f u n c t i o n (data) v a l u e s
216 Meshfree Approximation Methods with MATLAB
8 f = testfunction(s,dsites);
/. C r e a t e n e v a l ~ s e q u a l l y spaced e v a l u a t i o n l o c a t i o n s i n
% the s-dimensional u n i t cube
9 epoints = MakeSDGrid(s,neval);
% Compute e v a l u a t i o n m a t r i x , i . e . ,
% matrix of v a l u e s of g e n e r a t i n g functions
10 DM_eval = DistanceMatrixCSRBF(epoints,ctrs,ep);
11 EM = rbf(ep,DM_eval);
% Shepard scaling
12 EM = spdiags(l./(EM*ones(N,l)),0,M,M)*EM;
% Compute q u a s i - i n t e r p o l a n t
13 Pf = EM*f;
% Compute e x a c t s o l u t i o n , i . e . ,
/ e v a l u a t e t e s t f u n c t i o n on e v a l u a t i o n p o i n t s
14 exact = t e s t f u n c t i o n ( s , e p o i n t s ) ;
% Compute e r r o r s on e v a l u a t i o n g r i d
15 maxerr = n o r m ( P f - e x a c t , i n f ) ;
16 rms_err = norm(Pf-exact)/sqrt(M);
17 fprintf('RMS error: %e\n', rms_err)
18 f p r i n t f ('Maximum e r r o r : /e\n', maxerr) 0
t h e M L S m e t h o d w i t h l i n e a r r e p r o d u c t i o n has a n u m e r i c a l a p p r o x i m a t i o n o r d e r o f
2
0(h ). T h i s w i l l be j u s t i f i e d t h e o r e t i c a l l y i n t h e n e x t c h a p t e r .
I n s t e a d o f s o l v i n g a G r a m s y s t e m for each e v a l u a t i o n p o i n t as suggested i n (22.8)
or (22.20) we use t h e e x p l i c i t f o r m u l a s for t h e L a g r a n g e m u l t i p l i e r s a n d generating
f u n c t i o n s g i v e n for t h e 2D case i n E x a m p l e 23.3. T h e s e f o r m u l a s are i m p l e m e n t e d
i n M A T L A B i n t h e s u b r o u t i n e L i n e a r S c a l i n g 2 D _ C S .m a n d l i s t e d i n P r o g r a m 24.3.
I n p a r t i c u l a r , t h i s s u b r o u t i n e is w r i t t e n t o d e a l w i t h c o m p a c t l y s u p p o r t e d w e i g h t
f u n c t i o n s a n d t h u s uses sparse m a t r i c e s . A s i n t h e a s s e m b l y o f sparse i n t e r p o l a t i o n
m a t r i c e s we m a k e use o f kd-trees.
W e b u i l d a fcd-tree o f a l l o f t h e centers f o r t h e w e i g h t f u n c t i o n s a n d find for
each e v a l u a t i o n p o i n t t h o s e c e n t e r s whose s u p p o r t o v e r l a p s t h e e v a l u a t i o n p o i n t .
T h e i n p u t t o L i n e a r S c a l i n g 2 D _ C S .m are e p o i n t s ( a n N x s m a t r i x r e p r e s e n t i n g a
s
set o f N d a t a sites i n M ) , c t r s ( a n M x s m a t r i x r e p r e s e n t i n g a set o f M centers
24- MLS Approximation with MATLAB 217
N RMS-error rate
9 1.789573e-001
25 7.089522e-002 1.3359
81 2.691693e-002 1.3972
289 7.516377e-003 1.8404
1089 1.944252e-003 1.9508
4225 4.903575e-004 1.9873
16641 1.228639e-004 1.9968
66049 3.072866e-005 1.9994
263169 7.658656e-006 2.0044
1050625 1.921486e-006 1.9949
s
for t h e w e i g h t f u n c t i o n s i n R ) , r b f ( a n a n o n y m o u s o r i n l i n e f u n c t i o n d e f i n i n g t h e
R B F w e i g h t f u n c t i o n ) , a n d ep ( t h e scale p a r a m e t e r t h a t d e t e r m i n e s t h e size o f t h e
support of the weight functions). A s always, w i d e functions result f r o m a small
value o f ep, i.e., t h e size o f t h e s u p p o r t o f t h e w e i g h t f u n c t i o n is g i v e n b y 1/ep. The
o u t p u t o f L i n e a r S c a l i n g 2 D _ C S .m is a n N x M sparse m a t r i x P h i t h a t c o n t a i n s t h e
M L S generating functions centered at the p o i n t s given b y c e n t e r a n d evaluated at
the e v a l u a t i o n p o i n t s i n e p o i n t s . N o t e t h a t t h e c o m p a c t l y s u p p o r t e d basic f u n c t i o n
needs t o be s u p p l i e d i n i t s s t a n d a r d ( u n s h i f t e d ) f o r m , e.g., as
2 r
for t h e C W e n d l a n d f u n c t i o n < ^ , i ( ) = ( 1 - r)\(4r
3 + 1).
For each e v a l u a t i o n p o i n t (see t h e l o o p over i f r o m l i n e 10 t o l i n e 33) w e c o m p u t e
the six different m o m e n t s ( e n t r i e s o f t h e G r a m m a t r i x G, c.f. E x a m p l e 23.3) r e q u i r e d
for t h e c o m p u t a t i o n o f t h e L a g r a n g e m u l t i p l i e r s o n lines 1 4 - 2 0 . T h e n t h e values o f
the L a g r a n g e m u l t i p l i e r s a n d o f t h e g e n e r a t i n g f u n c t i o n s a t t h e ith e v a l u a t i o n p o i n t
are c o m p u t e d o n lines 2 1 - 2 4 . T h e f i n a l sparse m a t r i x P h i is assembled o n l i n e 35.
P r o g r a m 2 4 . 3 . L i n e a r S c a l i n g 2 D _ C S .m
% Phi = LinearScaling2D_CS(epoints,ctrs,rbf,ep)
% Forms a s p a r s e m a t r i x o f scaled generating functions f o r MLS
% approximation with linear reproduction.
7. U s e s : k-D t r e e p a c k a g e b y Guy S h e c h t e r from
7. MATLAB C e n t r a l F i l e Exchange
1 function Phi = LinearScaling2D_CS(epoints,ctrs,rbf,ep)
2 [N,s] = s i z e ( e p o i n t s ) ; [M,s] = size(ctrs);
3 alpha = [ 0 0; 10; 0 1 ; 1 1 ; 20; 0 2];
7o B u i l d k - D t r e e for centers
218 Meshfree Approximation Methods with MATLAB
4 [tmp,tmp,Tree] = kdtree ( c t r s , [ ] ) ;
% F o r each e v a l . p o i n t , f i n d c e n t e r s whose support o v e r l a p i t
5 support = 1/ep; mu = z e r o s ( 6 ) ;
% Modify t h e f o l l o w i n g l i n e f o r optimum performance
6 v e c l e n g t h = round(support*N*M/4);
7 rowidx = z e r o s ( 1 . v e c l e n g t h ) ; c o l i d x = z e r o s ( 1 , v e c l e n g t h ) ;
8 validx = zeros(1.veclength);
9 i s t a r t = 1; i e n d = 0;
10 f o r i = 1:N
11 [pts,dist,idx] = kdrangequery(Tree.epoints(i,:).support);
12 newlen = l e n g t h ( i d x ) ;
7o Vector of b a s i s f u n c t i o n s
13 Phi_i = rbf(ep,dist>);
% Compute a l l 6 moments f o r i - t h e v a l u a t i o n p o i n t
14 for j=l:6
15 x _ t o _ a l p h a = 1;
16 f o r coord=l:s
17a x_to_alpha = x_to_alpha . * ( c t r s ( i d x , c o o r d ) - . . .
17b repmat(epoints(i,coord),newlen,1))."alpha(j,coord);
18 end
19 mu(j) = P h i _ i * x _ t o _ a l p h a ;
20 end
21 Ll=(mu(4)~2-mu(5)*mu(6)); L2=(mu(2)*mu(6)-mu(3)*mu(4));
22 L3=(mu(5)*mu(3)-mu(2)*mu(4));
23a s c a l i n g = Ll*repmat(1.newlen,1) + ...
23b L2*(ctrs(idx,l)-repmat(epoints(i,1),newlen,1))+...
23c L3*(ctrs(idx,2)-repmat(epoints(i,2),newlen,1));
24a denom = mu(2)~2*mu(6)+mu(5)*mu(3)~2-mu(l)*mu(5)*mu(6)-...
24b 2*mu(2)*mu(3)*mu(4)+mu(l)*mu(4)"2;
25 i f (denom ~= 0)
26 s c a l i n g = scaling/denom;
27 i e n d = i e n d + newlen;
28 r o w i d x ( i s t a r t : i e n d ) = repmat(i,1,newlen);
29 c o l i d x ( i s t a r t : i e n d ) = idx';
30 validx(istart:iend) = Phi_i.*scaling';
31 i s t a r t = i s t a r t + newlen;
32 end
33 end
34 f i l l e d = f i n d ( r o w i d x ) ; % only those a c t u a l l y f i l l e d
35 Phi = s p a r s e ( r o w i d x ( f i l l e d ) , c o l i d x ( f i l l e d ) , v a l i d x ( f i l l e d ) , N , M )
% Free memory
36 c l e a r rowidx c o l i d x v a l i d x ; k d t r e e ( [ ] , [ ] .Tree) ;
24- MLS Approximation with MATLAB 219
W i t h a l l t h e d i f f i c u l t c o d i n g r e l e g a t e d t o t h e s u b r o u t i n e L i n e a r S c a l i n g 2 D _ C S .m
t h e m a i n p r o g r a m LinearMLS2D_CS .m is r a t h e r s i m p l e . I t is l i s t e d i n P r o g r a m 24.4.
T h e v e r s i o n o f t h e code l i s t e d here is a d a p t e d t o r e a d a d a t a file t h a t c o n t a i n s b o t h
d a t a sites ( i n t h e v a r i a b l e d s i t e s ) a n d f u n c t i o n values ( i n t h e v a r i a b l e r h s ) . For
t h e e x a m p l e d i s p l a y e d i n F i g u r e 24.2 we used a n a c t u a l set o f 1:250,000-scale D i g i t a l
E l e v a t i o n M o d e l ( D E M ) d a t a f r o m t h e U . S . G e o l o g i c a l Survey, n a m e l y t h e d a t a set
Dubuque-E w h i c h contains elevation d a t a f r o m a region i n northeastern Iowa, n o r t h -
w e s t e r n I l l i n o i s , a n d s o u t h w e s t e r n W i s c o n s i n . T h e d a t a set is a v a i l a b l e o n t h e w o r l d -
wide web at http://edcsgs9.cr.usgs.gov/glis/hyper/guide/l_dgr_demfig/-
states/IL.html. T h e o r i g i n a l d a t a set c o n t a i n s 1201 x 1201 u n i f o r m l y spaced
m e a s u r e m e n t s r a n g i n g i n h e i g h t f r o m 178 m e t e r s t o 426 m e t e r s . We converted
t h e D E M d a t a f o r m a t w i t h t h e u t i l i t y DEM2XYZN t h a t c a n be d o w n l o a d e d from
http://data.geocomm.com/dem/dem2xyzn/, selected o n l y t h e n o r t h e a s t e r n quad-
r a n t o f 601 x 601 = 3 6 1 2 0 1 e l e v a t i o n values, a n d scaled t h e x a n d y coordinates
t h a t o r i g i n a l l y defined a square w i t h a side l e n g t h o f a b o u t 35 m i l e s t o t h e u n i t
square. T h e r e s u l t i n g d a t a set Data2D_DubuqueNE is i n c l u d e d o n t h e enclosed C D .
2
A n M L S a p p r o x i m a t i o n w i t h l i n e a r r e p r o d u c t i o n based o n t h e C c o m p a c t l y sup-
p o r t e d W e n d l a n d w e i g h t used earlier was e v a l u a t e d o n a g r i d o f 60 x 60 e q u a l l y
spaced p o i n t s a n d is d i s p l a y e d i n F i g u r e 24.2. W e use a shape p a r a m e t e r o f e = 30
t o d e t e r m i n e t h e s u p p o r t size o f t h e w e i g h t f u n c t i o n s .
P r o g r a m 2 4 . 4 . LinearMLS2D_CS .m
% LinearMLS2D_CS
/ S c r i p t t h a t
0 performs MLS a p p r o x i m a t i o n w i t h linear reproduction
% u s i n g sparse matrices
% Calls on: LinearScaling2D_CS
1 r b f = @(e,r) max(spones(r)-e*r,0).~4.*(4*e*r+spones(r));
2 ep = 3 0 ; n e v a l = 6 0 ;
% Load d a t a p o i n t s and rhs
,
3 load( Data2D_DubuqueNE');
4 ctrs = dsites;
% Create n e v a l - b y - n e v a l e q u a l l y spaced e v a l u a t i o n locations
/ i n t h e
0 unit square
5 grid = linspace(0,1,neval); [xe,ye] = meshgrid(grid);
6 epoints = [xe(:) ye(:)];
/ Compute e v a l u a t i o n m a t r i x
0
7 EM = L i n e a r S c a l i n g 2 D _ C S ( e p o i n t s , c t r s , r b f , e p ) ;
% Compute MLS a p p r o x i m a t i o n (rhs read from data file)
8 Pf = EM*rhs;
9 figure % P l o t MLS f i t
10 surfplot = surf(xe,ye.reshape(Pf,neval,neval));
11 set(surfplot,'FaceColor','interp','EdgeColor','none')
12 view([15,35]); c a m l i g h t ; l i g h t i n g gouraud; colormap summer
220 Meshfree Approximation Methods with MATLAB
400 - r
350-
300-
250-
200
0
0.8 0
Fig. 24.2 M L S approximation using compactly supported weight for elevation data in northwest-
ern Illinois.
A m u c h s i m p l e r ( b u t also m u c h s l o w e r ) i m p l e m e n t a t i o n o f M L S a p p r o x i m a t i o n
w i t h l i n e a r r e p r o d u c t i o n is g i v e n as P r o g r a m 24.5. I n t h i s i m p l e m e n t a t i o n w e solve
t h e l o c a l least squares p r o b l e m for each e v a l u a t i o n p o i n t x, i.e., w e o b t a i n t h e M L S
a p p r o x i m a t i o n at the p o i n t x as
m
T
G{x) = P (x)W(x)P(x),
and the polynomial matrix P with entries Pij(x) = Pj(xi x) and diago-
nal weight matrix computed on lines 16 and 17, respectively. T h e subroutine
LinearScaling2D_CS .m is not required by this program. Compare this program
with Program 24.1.
P r o g r a m 24.5. LinearMLS2D_GramSolve .m
7. LinearMLS2D_GramSolve
7o S c r i p t t h a t performs MLS approximation w i t h l i n e a r reproduction
7o by s o l v i n g l o c a l Gram systems
7. C a l l s on: D i s t a n c e M a t r i x , P l o t S u r f , P l o t E r r o r 2 D
Swap*
24- MLS Approximation with MATLAB 221
1 r b f = @(e,r) e x p ( - ( e * r ) . ~ 2 ) ; ep = 5.5;
Define Franke's f u n c t i o n as t e s t f u n c t i o n
2 f l = @(x,y) 0 . 7 5 * e x p ( - ( ( 9 * x - 2 ) . ~ 2 + ( 9 * y - 2 ) . ~ 2 ) / 4 ) ;
3 f2 = _(x,y) 0.75*exp(-((9*x+l).~2/49+(9*y+l).~2/10));
4 f 3 = @(x,y) 0 . 5 * e x p ( - ( ( 9 * x - 7 ) . ~ 2 + ( 9 * y - 3 ) . ~ 2 ) / 4 ) ;
5 f 4 = _(x,y) 0.2*exp(-((9*x-4).~2+(9*y-7).~2));
6 t e s t f u n c t i o n = @(x,y) f 1 ( x , y ) + f 2 ( x , y ) + f 3 ( x , y ) - f 4 ( x , y ) ;
7 N = 1089; g r i d t y p e = 'u';
8 n e v a l = 40;
% Load data p o i n t s
9 name = s p r i n t f ('Data2D_y d%s' ,N,gridtype) ; load(name)
o
10 ctrs = dsites;
% Create v e c t o r of f u n c t i o n ( d a t a ) v a l u e s
11 f = testfunction(dsites(:,1),dsites(:,2));
% Create n e v a l - b y - n e v a l e q u a l l y spaced e v a l u a t i o n l o c a t i o n s
% i n the u n i t square
12 g r i d = l i n s p a c e ( 0 , 1 , n e v a l ) ; [xe,ye] = m e s h g r i d ( g r i d ) ;
13 epoints = [ x e ( : ) y e ( : ) ] ;
% Compute MLS approximation w i t h s h i f t e d b a s i s polynomials
14 Pf = z e r o s ( n e v a l " 2 , 1 ) ;
15 f o r j=l:neval~2
16 P = [ones(N,l) d s i t e s - r e p m a t ( e p o i n t s ( j , : ) , N , 1 ) ] ;
17 W = diag(rbf(ep,DistanceMatrix(epoints(j,:),ctrs)));
18 c = (P'*W*P)\(P'*W*f);
19 Pf(j) = c(l);
20 end
% Compute exact s o l u t i o n , i . e . ,
/ e v a l u a t e t e s t f u n c t i o n on e v a l u a t i o n p o i n t s
21 exact = t e s t f u n c t i o n ( e p o i n t s ( : , 1 ) , e p o i n t s ( : , 2 ) ) ;
% Compute e r r o r s on e v a l u a t i o n g r i d
22 maxerr = n o r m ( P f - e x a c t , i n f ) ;
23 rms_err = n o r m ( P f - e x a c t ) / n e v a l ;
/ P l o t i n t e r p o l a n t
0
24 PlotSurf(xe,ye,Pf,neval,exact,maxerr,[160,20] ) ;
% P l o t absolute e r r o r
25 PlotError2D(xe,ye,Pf,exact,maxerr,neval,[160,20]);
14 P = [ones(N.l) d s i t e s ] ;
15 Pf = z e r o s ( n e v a l ~ 2 , 1 ) ;
16 for j=l:neval~2
222 Meshfree Approximation Methods with MATLAB
17 W = diag(rbf(ep,DistanceMatrix(epoints(j,:),ctrs)));
18 c = (P'*W*P)\(P'*W*_);
19 P f ( j ) = [1 e p o i n t s ( j , : ) ] * c ;
20 end
24.3 P l o t s of B a s i s - D u a l B a s i s P a i r s
F i g u r e 24.4.
Fig. 24.3 Plot of the three polynomial basis functions for moving least squares approximation
with quadratic reproduction on [0,1].
I n F i g u r e 24.5 w e p l o t t h r e e M L S g e n e r a t i n g f u n c t i o n s ( s o l i d ) t o g e t h e r w i t h t h e
c o r r e s p o n d i n g g e n e r a t i n g f u n c t i o n s f r o m t h e a p p r o x i m a t e m o v i n g least squares a p -
p r o a c h ( d a s h e d ) d e s c r i b e d i n C h a p t e r 26. T h e g e n e r a t i n g f u n c t i o n s for t h e a p p r o x -
i m a t e M L S a p p r o a c h are L a g u e r r e - G a u s s i a n s (c.f. S e c t i o n 4 . 2 ) . W h i l e t h e standard
MLS g e n e r a t i n g f u n c t i o n s reflect t h e fact t h a t t h e d a t a is g i v e n o n a f i n i t e i n t e r v a l ,
t h e g e n e r a t i n g f u n c t i o n s for a p p r o x i m a t e M L S a p p r o x i m a t i o n are a l l j u s t shifts o f
24- MLS Approximation with M A T L A B 223
Fig. 24.4 Plot of the three dual basis functions for moving least squares approximation with
quadratic reproduction for 11 equally spaced points in [0,1].
t h e one f u n c t i o n
X y\ l|o> Wll
T>h' 2
TV Vh
i Kf_-+-n | i i i i | i i i i |
0.0 0.35 0.5 0.75 1.0
Fig. 24.5 Standard M L S generating functions (solid) and approximate M L S generating functions
(dashed) centered at three of the 11 equally spaced points in [0,1].
I f t h e d a t a p o i n t s are n o l o n g e r e q u a l l y spaced, t h e L a g r a n g e f u n c t i o n s a n d
g e n e r a t i n g f u n c t i o n s are also less u n i f o r m . F i g u r e s 24.6 a n d 24.7 i l l u s t r a t e t h i s
dependence o n t h e d a t a d i s t r i b u t i o n for 11 H a l t o n p o i n t s i n [0,1].
F i n a l l y , we p r o v i d e p l o t s o f M L S g e n e r a t i n g f u n c t i o n s for t h e case o f r e p r o d u c -
t i o n o f linear p o l y n o m i a l s i n 2D (see F i g u r e 24.8). These p l o t s were c r e a t e d w i t h t h e
MATLAB program LinearMLS2D_CS .m (see P r o g r a m 24.4) b y p l o t t i n g c o l u m n j o f
t h e e v a l u a t i o n m a t r i x EM c o r r e s p o n d i n g t o t h e values o f t h e j t h g e n e r a t i n g f u n c t i o n .
W e used t h e C 2
W e n d l a n d w e i g h t s w(xi,x) = (1 e\\x cci||)+ (4_r||ic c_j|| + 1)
w i t h e 5.
224 Meshfree Approximation Methods with MATLAB
Fig. 24.6 Plot of the three dual basis functions for moving least squares approximation with
quadratic reproduction for 11 Halton points in [0,1].
Fig. 24.7 Standard M L S generating functions (solid) and approximate M L S generating functions
(dashed) centered at three of the 11 Halton points in [0,1].
Fig. 24.8 M L S generating functions for linear reproduction centered at two of 289 uniformly
2
spaced data sites in [0, l ] .
Chapter 25
25.1 A p p r o x i m a t i o n O r d e r of M o v i n g L e a s t S q u a r e s
i=l
w i t h the generating functions * i satisfying the p o l y n o m i a l r e p r o d u c t i o n p r o p e r t y
N
^2p(xi)^i(x,x) = p(x), fbrallpeLLj,
i=l
as described i n C h a p t e r 22. T h e n , d u e t o t h e p o l y n o m i a l r e p r o d u c t i o n p r o p e r t y o f
t h e g e n e r a t i n g f u n c t i o n s , w e get
N
\f(x) - V (x)\f < \f(x) - p(x)\ + \p(x) - f{xi)^i{x, x)\
i=l
N N
= \f(x)-p(x)\ + \^2p(xi)^i(x,x) -J2f( i)^i(x,x)\.
x
i=l i=l
C o m b i n a t i o n o f t h e t w o s u m a n d t h e d e f i n i t i o n o f t h e discrete m a x i m u m n o r m y i e l d
N
\f(x) - V (x)\
f < \f(x) - p(x)\ + \PM ~ aOI
i=l
N
<II/-Pl (25.1)
225
226 Meshfree Approximation Methods with MATLAB
H o w w e l l d o p o l y n o m i a l s a p p r o x i m a t e / ? T h i s c a n b e achieved w i t h s t a n d a r d
T a y l o r expansions.
N
A r e t h e g e n e r a t i n g f u n c t i o n s b o u n d e d ? T h e expression \^i(x, x)\ is k n o w n
i=l
as t h e (value o f t h e ) Lebesgue function, a n d f i n d i n g a b o u n d for t h e Lebesgue
f u n c t i o n is t h e m a i n t a s k t h a t remains.
B y t a k i n g t h e p o l y n o m i a l p above t o b e t h e T a y l o r p o l y n o m i a l o f t o t a l degree d
for / a t x, t h e r e m a i n d e r t e r m i m m e d i a t e l y y i e l d s a n e s t i m a t e o f t h e f o r m
d + 1 a
1 1 / - Plloo < C h x max\D f{% \ct\ = d + l . (25.2)
a n d f o r m a p a r t i t i o n o f u n i t y (see ( 2 3 . 3 ) ) . T h e r e f o r e t h e Lebesgue f u n c t i o n a d m i t s
the uniform bound
N
J2\^i( , )\ x x
= !
i=l
T h i s shows t h a t S h e p a r d ' s m e t h o d has a p p r o x i m a t i o n o r d e r 0(h).
B o u n d i n g t h e Lebesgue f u n c t i o n i n t h e general case is m o r e i n v o l v e d a n d is
t h e s u b j e c t o f t h e papers [ L e v i n (1998); W e n d l a n d (2001a)]. A s i n d i c a t e d above,
d+1
t h i s results i n a p p r o x i m a t i o n o r d e r 0(h ) f o r a m o v i n g least squares m e t h o d
t h a t reproduces p o l y n o m i a l s o f degree d. I n b o t h p a p e r s t h e a u t h o r s assumed t h a t
t h e w e i g h t f u n c t i o n is c o m p a c t l y s u p p o r t e d , a n d t h a t t h e s u p p o r t size is scaled
p r o p o r t i o n a l t o t h e fill distance. T h e following theorem paraphrases t h e results o f
[ L e v i n (1998); W e n d l a n d (2001a)].
T h e o r e m 2 5 . 1 . Let ficl . s
If f e C (fl), d+1
{xi : i = 1,..., N} C fl are quasi-
uniformly distributed with fill distance h, the weight functions Wi(x) w(xi, x) are
compactly supported with support size pi = ch (c = c o n s t . ) , and if polynomials in
s
Ii d are reproduced according to (22.13), then the scale of MLS approximations
) i
^ (*) = E / ( * 0 * ( ^ ) , (25.3)
25. Error Bounds for Moving Least Squares Approximation 227
I t s h o u l d be possible t o a r r i v e at s i m i l a r e s t i m a t e s i f t h e w e i g h t f u n c t i o n o n l y
decays fast e n o u g h (see, e.g., t h e s u r v e y [ d e B o o r ( 1 9 9 3 ) ] ) .
A s i d e f r o m t h i s c o n s t r a i n t o n t h e w e i g h t f u n c t i o n ( w h i c h essentially c o r r e s p o n d s
t o a s t a t i o n a r y a p p r o x i m a t i o n scheme), t h e choice o f w e i g h t f u n c t i o n w does n o t
p l a y a role i n d e t e r m i n i n g t h e a p p r o x i m a t i o n o r d e r o f t h e m o v i n g least squares
m e t h o d . A s n o t e d earlier, i t o n l y d e t e r m i n e s t h e s m o o t h n e s s of Vf. For example,
i n t h e p a p e r [ C l e v e l a n d a n d L o a d e r (1996)] f r o m t h e s t a t i s t i c s l i t e r a t u r e o n l o c a l
regression t h e a u t h o r s s t a t e t h a t o f t e n "the choice [of w e i g h t f u n c t i o n ] is n o t t o o
c r i t i c a l " , a n d t h e use o f t h e so-called tri-cube
3 3 s
Wi(x) = {1 - \\x - Xi\\ ) , + x e R ,
is suggested. O f course, m a n y o t h e r w e i g h t f u n c t i o n s such as ( r a d i a l ) i3-splines or
any o f t h e (bell-shaped) r a d i a l basis f u n c t i o n s s t u d i e d earlier c a n also be used. I f
t h e w e i g h t f u n c t i o n is c o m p a c t l y s u p p o r t e d , t h e n t h e g e n e r a t i n g f u n c t i o n s \T/j w i l l
be so, t o o . T h i s leads t o c o m p u t a t i o n a l l y efficient m e t h o d s since t h e G r a m m a t r i x
G(x) w i l l be sparse.
An i n t e r e s t i n g q u e s t i o n is also t h e size o f t h e s u p p o r t o f t h e different l o c a l
w e i g h t f u n c t i o n s . O b v i o u s l y , a f i x e d s u p p o r t size for a l l w e i g h t f u n c t i o n s is possible.
H o w e v e r , t h i s w i l l cause serious p r o b l e m s as soon as t h e d a t a are n o t u n i f o r m l y
d i s t r i b u t e d . T h e r e f o r e , i n t h e a r g u m e n t s i n [ L e v i n (1998); W e n d l a n d (2001a)] t h e
a s s u m p t i o n is m a d e t h a t t h e d a t a are at least q u a s i - u n i f o r m l y d i s t r i b u t e d . A n o t h e r
choice for t h e s u p p o r t size o f t h e i n d i v i d u a l w e i g h t f u n c t i o n s is based o n t h e n u m b e r
of nearest neighbors, i.e., t h e s u p p o r t size is chosen so t h a t each o f t h e l o c a l w e i g h t
f u n c t i o n s c o n t a i n s t h e same n u m b e r o f centers i n i t s s u p p o r t . A t h i r d p o s s i b i l i t y is
suggested i n [Schaback (2000b)] w h e r e t h e a u t h o r proposes t o use a n o t h e r m o v i n g
least squares a p p r o x i m a t i o n based o n ( e q u a l l y spaced) a u x i l i a r y p o i n t s t o d e t e r m i n e
a s m o o t h f u n c t i o n 5 such t h a t at each e v a l u a t i o n p o i n t x t h e r a d i u s o f t h e s u p p o r t
of t h e w e i g h t f u n c t i o n is g i v e n b y 5(x). H o w e v e r , convergence e s t i m a t e s for these
l a t t e r t w o choices do n o t e x i s t .
Sobolev e r r o r estimates are p r o v i d e d for m o v i n g least squares a p p r o x i m a t i o n
w i t h compactly supported weight functions i n [ A r m e n t a n o (2001)]. T h e rates ob-
t a i n e d i n t h a t p a p e r are n o t i n t e r m s o f t h e f i l l d i s t a n c e b u t i n s t e a d i n t e r m s o f t h e
s u p p o r t size p o f t h e w e i g h t f u n c t i o n . M o r e o v e r , i t is assumed t h a t for g e n e r a l s
s d
a n d m = ( ^ ) t h e l o c a l L a g r a n g e f u n c t i o n s are b o u n d e d . A s m e n t i o n e d above, t h i s
is t h e h a r d p a r t , a n d i n [ A r m e n t a n o (2001)] s u c h b o u n d s are o n l y p r o v i d e d i n t h e
case s = 2 w i t h d = 1 or d = 2. H o w e v e r , i f c o m b i n e d w i t h t h e general b o u n d s for
t h e Lebesgue f u n c t i o n p r o v i d e d b y W e n d l a n d , t h e p a p e r [ A r m e n t a n o (2001)] y i e l d s
t h e f o l l o w i n g estimates:
d+1 a
\f(x) -V (x)\
f <Cp max\D f()\, \a\=d+l,
228 Meshfree Approximation Methods with MATLAB
but also
| V ( / - P / ) ( x ) | <Cp d
max irr/COl, | | = d + 1.
I n t h e weaker ( l o c a l ) L 2 - n o r m w e have
and
where the balls B 3 provide a finite cover o f t h e d o m a i n fl, i.e., fl C [JjBj, and
d
t h e n u m b e r o f o v e r l a p p i n g b a l l s is b o u n d e d . H e r e W {fl) is t h e S o b o l e v space o f
f u n c t i o n s whose d e r i v a t i v e s u p t o o r d e r d are i n L 2 (c.f. C h a p t e r 13).
W e close t h i s c h a p t e r b y p o i n t i n g o u t t h a t e a r l y e r r o r e s t i m a t e s for some special
cases were p r o v i d e d i n [ F a r w i g ( 1 9 8 7 ) ; F a r w i g ( 1 9 9 1 ) ] .
.1-
Chapter 26
i = i T,j=iw{xj,x)
d+1
b u t n o w b y c o n s t r u c t i o n t h e m e t h o d has a p p r o x i m a t i o n o r d e r 0(h ) (in-
s t e a d o f t h e m e r e 0(h) o f S h e p a r d ' s m e t h o d w h i c h p e r m i t s t h e use o f arbitrary
weights).
We therefore use t h e discrete moments (c.f. S e c t i o n 23.2)
N
Ha = Y2(
i=l
Xi
~ x
) a w x
( i , ) , x
x&R ,s
0 < | a | < d , (26.1)
w h e r e a is a m u l t i - i n d e x , a n d t h e n d e m a n d
A s m e n t i o n e d i n C h a p t e r 23 these m o m e n t s p r o v i d e t h e entries o f t h e G r a m m a t r i x
G(x). T h e c o n d i t i o n / i o = 1 ensures t h a t t h e w e i g h t s w(xi, ) f o r m a partition of
unity, a n d we e n d u p w i t h a q u a s i - i n t e r p o l a n t o f t h e f o r m
N
Vf(x) = y^J(xi)w(xi,x).
i=l
We can summarize our heuristics i n
229
230 Meshfree Approximation Methods with M A T L A B
s d+1
Proposition 2 6 . 1 . Let fl C R. If f e C (fl), the data sites {xi : i =
1, , N} C fl are quasi-uniformly distributed with fill distance h, the weight func-
tions w(xi, ) = w(xi x) are compactly supported with support size pi = ch
(c = c o n s t . ) , and the discrete moment conditions
d+1
has approximation order 0(h ).
w h e r e wo is a n e w ( a r b i t r a r y ) w e i g h t f u n c t i o n , a n d q is a p o l y n o m i a l o f degree d
o r t h o n o r m a l i n t h e sense o f t h e i n n e r p r o d u c t (22.2) w i t h respect t o WQ. This view
is also t a k e n b y L i u a n d c o - w o r k e r s (see, e.g., [ L i a n d L i u (2002)]) w h e r e q is c a l l e d
t h e correction function.
T h e discrete m o m e n t c o n d i t i o n s i n P r o p o s i t i o n 26.1 are d i f f i c u l t t o satisfy an-
a l y t i c a l l y , as is t h e c o n s t r u c t i o n o f d i s c r e t e m u l t i v a r i a t e o r t h o g o n a l p o l y n o m i a l s as
needed for (26.3). I n o r d e r t o o b t a i n q u a s i - i n t e r p o l a n t s for a r b i t r a r y space d i m e n -
sions a n d s c a t t e r e d d a t a sites we consider t h e c o n c e p t o f a p p r o x i m a t e approxima-
t i o n i n t h e n e x t section. T h e r e one satisfies c o n t i n u o u s m o m e n t c o n d i t i o n s w h i l e
e n s u r i n g t h a t t h e discrete m o m e n t c o n d i t i o n s are a l m o s t satisfied.
W e n o w give t h e m a i n r e s u l t s o n a p p r o x i m a t e a p p r o x i m a t i o n relevant t o o u r w o r k .
T h e concept o f approximate approximation was first i n t r o d u c e d b y M a z ' y a i n t h e
e a r l y 1990s (see [ M a z ' y a ( 1 9 9 1 ) ; M a z ' y a ( 1 9 9 4 ) ] ) . T o keep t h e discussion t r a n s p a r e n t
we r e s t r i c t ourselves t o r e s u l t s for r e g u l a r center d i s t r i b u t i o n s . H o w e v e r , i r r e g u l a r l y
spaced d a t a are also a l l o w e d b y t h e t h e o r y (see, e.g., [ M a z ' y a a n d S c h m i d t ( 2 0 0 1 ) ;
L a n z a r a et al. (2006)]) a n d h a v e b e e n i n v e s t i g a t e d i n p r a c t i c e (see, e.g., [Fasshauer
(2004)] or [ L a n z a r a et al. ( 2 0 0 6 ) ] ) . I n [ M a z ' y a a n d S c h m i d t (2001)] t h e a u t h o r s
present a q u a s i - i n t e r p o l a t i o n scheme o f t h e f o r m
(26 4)
^ > w - f - " E / w ( w ) ' '
w h e r e t h e d a t a sites x u = hv are r e q u i r e d t o lie o n a r e g u l a r s - d i m e n s i o n a l g r i d w i t h
gridsize h. T h e p a r a m e t e r T> scales t h e s u p p o r t o f t h e g e n e r a t i n g f u n c t i o n \I>. A s we
26. Approximate Moving Least Squares Approximation 231
T h i s is t h e c o n t i n u o u s a n a l o g o f ( 2 6 . 2 ) .
T h e f o l l o w i n g a p p r o x i m a t e a p p r o x i m a t i o n r e s u l t is due t o M a z ' y a a n d S c h m i d t
(see, e.g., [ M a z ' y a a n d S c h m i d t ( 2 0 0 1 ) ] ) .
d + 1 S s s
T h e o r e m 2 6 . 1 . Let f <G C ( R ) , {x u : i / . Z } c R and let V be a continuous
generating function which satisfies the moment conditions (26.5) along with the
decay requirement
s
|*(aj)| < c (l K + ||a;|| )- / , 2 K 2
x e R,
where CK is some constant, K > d + s + 1 and d is the desired degree of polynomial
reproduction. Then
d+1
11/ - - M ^ H o o = 0(h ) + Eo(V, V). (26.6)
E (*,V)<
0 ^2 F^{VVv). (26.7)
3
i^z \{0}
f
For t h i s result t h e F o u r i e r t r a n s f o r m o f \_ is defined v i a
TV(UJ) = [ 2nixoj
y{x)e- dx
JR 3
w i t h x UJ t h e s t a n d a r d E u c l i d e a n i n n e r p r o d u c t o f x a n d UJ i n M . T h e s a t u r a t i o n s
e r r o r can be i n t e r p r e t e d as t h e d i s c r e p a n c y b e t w e e n t h e c o n t i n u o u s a n d discrete m o -
m e n t c o n d i t i o n s , a n d i t s influence c a n be c o n t r o l l e d b y t h e choice o f t h e p a r a m e t e r
V i n (26.4).
I f we use r a d i a l g e n e r a t i n g f u n c t i o n s , t h e n we c a n use t h e f o r m u l a for t h e F o u r i e r
t r a n s f o r m o f a r a d i a l f u n c t i o n (see T h e o r e m B . l i n A p p e n d i x B ) t o c o m p u t e the
l e a d i n g t e r m o f (26.7), a n d t h e r e f o r e o b t a i n a n e s t i m a t e for D for a n y desired s a t u -
r a t i o n e r r o r . I f V is chosen large e n o u g h , t h e n t h e s a t u r a t i o n e r r o r w i l l be s m a l l e r
t h a n t h e m a c h i n e a c c u r a c y for a n y g i v e n c o m p u t e r , a n d therefore n o t noticeable
in numerical computations. T h i s means, t h a t even t h o u g h t h e o r e t i c a l l y t h e
q u a s i - i n t e r p o l a t i o n scheme (26.4) fails t o converge, i t does converge for a l l p r a c t i c a l
n u m e r i c a l purposes. M o r e o v e r , we c a n have a n a r b i t r a r i l y h i g h r a t e o f convergence,
d+1, by picking a generating f u n c t i o n ^ w i t h sufficiently m a n y vanishing moments.
W e p o i n t o u t t h a t t h e e r r o r b o u n d (26.6) is f o r m u l a t e d for g r i d d e d d a t a o n a n
u n b o u n d e d d o m a i n . A n analogous r e s u l t also h o l d s for f i n i t e g r i d s (see [ i v a n o v et al.
(1999)]); a n d s i m i l a r results for s c a t t e r e d d a t a o n b o u n d e d d o m a i n s c a n be f o u n d
i n , e.g., [ L a n z a r a et al. ( 2 0 0 6 ) ; M a z ' y a a n d S c h m i d t (2001)]. H o w e v e r , i n t h i s case
t h e f u n c t i o n / ( d e f i n i n g t h e " d a t a " ) is r e q u i r e d t o be c o m p a c t l y s u p p o r t e d o n t h e
f i n i t e d o m a i n , or a p p r o p r i a t e l y m o l l i f i e d .
232 Meshfree Approximation Methods with MATLAB
26.3 C o n s t r u c t i o n o f G e n e r a t i n g F u n c t i o n s for A p p r o x i m a t e M L S
Approximation
I n o r d e r t o c o n s t r u c t t h e g e n e r a t i n g f u n c t i o n s for t h e a p p r o x i m a t e M L S a p p r o a c h
we assume t h e g e n e r a t i n g f u n c t i o n t o be r a d i a l a n d o f t h e f o r m
2 2
*(__) = M\\x\\ )q(\\x\\ )-
Therefore, t h e c o n t i n u o u s m o m e n t c o n d i t i o n s b e c o m e (c.f. (26.5))
2k 2 x 2
/ \\x\\ q(\\x\\ )' Po(\\ \\ )dx i = S Q, k 0<k<d, (26.8)
a n d we need t o d e t e r m i n e t h e u n i v a r i a t e p o l y n o m i a l q o f degree d a c c o r d i n g l y t o
2d+2
get a p p r o x i m a t i o n order 0(h ).
B y u s i n g s - d i m e n s i o n a l s p h e r i c a l c o o r d i n a t e s we c a n r e w r i t e t h e i n t e g r a l i n (26.8)
as
pOO p2n p7T p7T
/ / / . . . / r 2 f c
g(r )^o(r )r -Uin - 0i...sin^_ o?0i...d0 _2^c.r
2 2 a s 2
2 a
Jo Jo Jo Jo
pTT pTT pOO
s 2 2 k 2 2 1
= 2TT s i n - < M 0 i / sin0 _ d0 _ s 2 s 2 / r q ^ ) ^ ) ^ - dr
Jo Jo Jo
m 2k 2 2 s l
= 27rTT/ sin <j>d<j> / r q(r )^ (r )r - dr. 0 (26.9)
J o J o
m=i
2
The substitution y = r c o n v e r t s t h e last i n t e g r a l t o
/OO 1 poo
J r q(r )M^)r - dr
2k 2 a 1
= - J k
y q(y)^o{y)y - dy, {s 2)/2
(26.10)
a n d one c a n show t h a t
s-2
8 4 ^
/-7T g/ 2
m=l
C o m b i n i n g ( 2 6 . 9 ) , (26.10) a n d (26.11) gives us
r s/2
2 2 2
/ ||a || ^(||x|| )^(|||| )da: = -
J - - / y ^ q ^ M v ^ d y , 7 7
7K r (s/2) j 0
a n d therefore we n o w have o b t a i n e d a set o f o n e - d i m e n s i o n a l o r t h o g o n a l i t y c o n d i -
tions
fS /2
s/2 poo
roo
k 1 s/2
^7-7^ y - g(y)My)y dy = s k 0 , o<k<d (26.12)
T(
t h a t can be used t o d e t e r m i n e t h e g e n e r a t i n g f u n c t i o n
2 2
*(c)=^ (||x|| )5(|| || ) 0 a J
(1) P i c k a n a r b i t r a r y ( u n i v a r i a t e ) w e i g h t f u n c t i o n ifto.
(2) C o m p u t e t h e coefficients o f q 6 IT^ v i a t h e ( u n i v a r i a t e ) m o m e n t conditions
(26.12).
(3) This leads to the (multivariate) radial generating function vE^cc) =
, 2 2
V o ( | | ^ | | ) 9 ( | | a ; | | ) t o be used i n t h e q u a s i - i n t e r p o l a n t ( 2 6 . 4 ) .
y
E x a m p l e 2 6 . 1 . P r o b a b l y t h e m o s t a e s t h e t i c e x a m p l e is g i v e n b y ifio(y) e~ so
t h a t t h e basic g e n e r a t i n g f u n c t i o n ( c o r r e s p o n d i n g t o d = 0, i.e., w i t h approximate
2
a p p r o x i m a t i o n o r d e r 0(h ) is f o u n d b y a s s u m i n g t h a t t h e p o l y n o m i a l q is a c o n s t a n t ,
i.e., q(y) = an. T h e n (26.12) becomes
aoy(s-z)/^ -y
('-We-ydye dy =
=
JO0 7T S /
- s 2
w h i c h leads t o an = 7 r / , SO t h a t w e h a v e
-llll a
V 7T
a n a p p r o p r i a t e l y scaled G a u s s i a n .
4
I f we t a k e d = 1 ( t o o b t a i n a p p r o x i m a t e a p p r o x i m a t i o n o r d e r 0(h )) a n d assume
q t o be a linear p o l y n o m i a l o f t h e f o r m q(y) = an + a\y, t h e n t h e r e are t w o m o m e n t
conditions, namely
'(ao + - / ) y ( - W e - d ! , = s a
S # ,
I l !
s/2
n
Jo
f
a 2
(ao + a )y / e-vdy iy = 0,
or Jo
a r( /2) +
0 S a i r ( ( s + 2)/2) =
--s/_
a r ( ( s + 2 ) / 2 ) + a _ r ( ( s + 4 ) / 2 ) = 0.
0
W e can solve t h i s s y s t e m o f l i n e a r e q u a t i o n s a n d o b t a i n
s + 2 -1
an 2 ^ F = , ai
I n t h e special case s = 2 t h i s y i e l d s an = ^ a n d a i = ^ , so t h a t
y(x) = - ( 2 - \ \ x \ \ ) e - ^ . 2 2
7T
I n general, t h e p o l y n o m i a l s q t u r n o u t t o be ( u n i v a r i a t e ) g e n e r a l i z e d Laguerre
p o l y n o m i a l s Lj o f degree d (c./. S e c t i o n 4.2) w h i c h are k n o w n t o be o r t h o g o -
s 2 v
n a l o n t h e i n t e r v a l [0, oo) w i t h respect t o t h e w e i g h t f u n c t i o n y l e~ . Therefore
t h e g e n e r a t i n g f u n c t i o n s for t h e a p p r o x i m a t e M L S a p p r o x i m a t i o n m e t h o d are t h e
Laguerre-Gaussians
*(__) = - ^ e - ^ L f ^ x f ) .
2 2
*(__) = ~ V o ( N | ) = ~ (1 - \\x\\)l (411x11 + 1 ) , xe K , (26.13)
7T TV ^
2
w i t h a p p r o x i m a t i o n o r d e r 0(h ). E x c e p t for t h e f a c t o r 7/-7T t h i s g e n e r a t i n g func-
2
t i o n corresponds t o Wendland's c o m p a c t l y s u p p o r t e d C r a d i a l basic f u n c t i o n (c.f.
T a b l e 11.1).
U s i n g t h e same f u n c t i o n ipo for d = 1 a n d s = 2 w e o b t a i n
* ( x ) = * , ( | | _ f ) I @ - ^ | | f ) (26.14)
A
w i t h a p p r o x i m a t i o n o r d e r 0(h ). T h i s f u n c t i o n is d i s p l a y e d i n t h e left p l o t o f
F i g u r e 2 6 . 1 . See E x a m p l e s 27.2 a n d 27.4 f o r m o r e s p e c i a l cases b a s e d o n t h i s i n i t i a l
weight function.
d q = 2 a = 5/2
0 -(i-INI ) 2 2
^(1-llxii ) / 2 5 2
7T 2.TT
1 * (2 - 5 I M I ) ( 1 - | | * | | )
2 2 2
i - (4 - 1 1 I M I ) ( 1 - | | x | | ) /
2
2 5 2
2 - ( 1 - 6||*|| + 7 I M I ) ( 1 - I N I )
2 4 2 2
(8 - 5 2 I M I + 6 5 I M I ) ( 1 -
2
4
||^|| ) 2 5 / 2
7T 107T
2 2 2
T h e f u n c t i o n * ( x ) = ^ (2 5 | | i c | | ) ( 1 - | | c c | | ) is d i s p l a y e d i n t h e r i g h t p l o t o f
Figure 26.1.
26. Approximate Moving Least Squares Approximation 235
Fig. 26.1 Compactly supported generating functions for approximate linear reproduction.
2 2 2
= ( ! - W I M P ) (1 - I M D i (4||*|| + 1) (left) and = (2 - 5 | M | ) (1 - M )
2
(right) centered at the origin in R .
Chapter 27
,, x , _ T- 1
A3 (9x-2) 32
(9* + l ) 2
1 (9*-7) 2
1 _(-q__ ' 2\ 4 )
a 9x
f(x) = 15e i-(2-D - e 4 + e 4 9 + e 4 _ _ e ( V
\4 4 2 5 /
as t e s t f u n c t i o n . For each choice o f T> e { 0 . 4 , 0 . 8 , 1 . 2 , 1 . 6 , 2 . 0 } w e use a sequence o f
k
g r i d s o f N = 2 + 1 ( w i t h k = 1 , . . . , 14) e q u a l l y spaced p o i n t s i n [ 0 , 1 ] at w h i c h we
sample t h e test f u n c t i o n . T h e a p p r o x i m a n t is c o m p u t e d v i a
N 2
1 - )
{
v (x)
f = -== f M e - - ^ ~ , x e [0,1],
w h e r e h = 1/{N 1 ) . T h i s c o r r e s p o n d s t o o u r u s u a l shape p a r a m e t e r e h a v i n g a
value of
fc
1 N - 1 2
e =
237
238 Meshfree Approximation Methods with MATLAB
Fig. 27.1 Convergence of I D approximate M L S approximation. T h e left plot shows the effect
of various choices of T> on the convergence behavior of Gaussians. T h e right plot illustrates the
convergence of Laguerre-Gaussians for various values of d.
P r o g r a m 27.1. ApproxMLSApproxlD.m
% ApproxMLSApproxlD
% S c r i p t t h a t performs ID approximate MLS approximation
% C a l l s on: D i s t a n c e M a t r i x
% Laguerre-Gaussians f o r ID
1 r b f { l } = @(e,r) e x p ( - ( e * r ) . ~ 2 ) / s q r t ( p i ) ;
2 r b f { 2 } = <3(e,r) e x p ( - ( e * r ) . ~ 2 ) / s q r t ( p i ) . * ( 1 . 5 - ( e * r ) . ~ 2 ) ;
3a r b f { 3 } = @(e,r) e x p ( - ( e * r ) . ~ 2 ) / s q r t ( p i ) . * . . .
3b (1.875-2.5*(e*r).~2+0.5*(e*r).~4);
4 D = [ 2 , 4, 6] ; % S c a l e parameters f o r g e n e r a t i n g f u n c t i o n s
% Define F r a n k e - l i k e f u n c t i o n a s t e s t f u n c t i o n
5 f l = @(x) 0.75*exp(-(9*x-2).~2/4);
6 f 2 = @(x) 0 . 7 5 * e x p ( - ( 9 * x + l ) . ~ 2 / 4 9 ) ;
7 f 3 = @(x) 0 . 5 * e x p ( - ( 9 * x - 7 ) . ~ 2 / 4 ) ;
8 f 4 = @(x) 0.2*exp(-(9*x-4) . "D \
9 moll = @(x) 1 5 * e x p ( - l . / ( l - 4 * ( x - 0 . 5 ) . ~ 2 ) ) ;
10 t e s t f u n c t i o n = @(x) m o l l ( x ) . * ( f 1 ( x ) + f 2 ( x ) + f 3 ( x ) - f 4 ( x ) ) ;
11 maxlevel = 14; % number of i t e r a t i o n s
12 M = 200; % to create M evaluation points i n unit i n t e r v a l
13 xe = l i n s p a c e ( 0 , 1 , M ) ; e p o i n t s = x e ( : ) ;
14 exact = t e s t f u n c t i o n ( e p o i n t s ) ;
5
15 f i g u r e ; hold on; cword = c e l l s t r ( [ r - ';'g';'b: ' ] ) ;
16 f o r i = l : l e n g t h ( D )
17 f o r k=l:maxlevel
18 N(k) = ( 2 ~ k + l ) ; ep = ( N ( k ) - l ) / s q r t ( D ( i ) ) ;
19 name = s p r i n t f ( ' D a t a l D . X d u ' , N ( k ) ) ; load(name);
20 ctrs = dsites;
% C r e a t e v e c t o r of f u n c t i o n v a l u e s
21 f = testfunction(dsites);
% Compute e v a l u a t i o n m a t r i x
22 DM = D i s t a n c e M a t r i x ( e p o i n t s , c t r s ) ;
23 EM = r b f { i } ( e p , D M ) ;
'/, Compute approximate MLS approximation
24 Pf = E M * f / s q r t ( D ( i ) ) ;
% Compute RMS e r r o r on e v a l u a t i o n g r i d
25 rms_err(k) = norm(Pf-exact)/sqrt(M);
26 end
27 p l o t (N,rms_err, cword-Ci}) ;
28 end
29 set(gca,'XScale','log','YScale','log','Fontsize',14)
30 legend('d=0, D=2.0','d=l, D=4.0','d=2, D = 6 . 0 \ 3 ) ;
31 xlabeK'N'); y l a b e K 'Error') ; hold o f f
240 Meshfree Approximation Methods with MATLAB
2
= | (7 - 35|as| ) ( 1 - \x\)% (4\x\ + 1 ) , (27.1)
I AC
*(x) = YY993 ( 3 5 0
- 3 9 6
l^| 2 4
+ 7 2 9 3 | a : | ) ( 1 - \x\)4
+ (4\x\ + 1 ) .
These f u n c t i o n s c a n be c o m p u t e d as i n S e c t i o n 26.3 o f t h e p r e v i o u s c h a p t e r . An
2
a p p r o x i m a t e a p p r o x i m a t i o n o r d e r o f 0(h ) f o r t h e f i r s t f u n c t i o n i n (27.1) is i l l u s -
t r a t e d i n t h e left p l o t o f F i g u r e 27.2. N o t e t h a t a r a t h e r l a r g e v a l u e o f T> ( n a m e l y
T> ?s 500) is r e q u i r e d t o m a k e t h e s a t u r a t i o n e r r o r so s m a l l t h a t i t n o l o n g e r affects
our experiments. Since t h e shape p a r a m e t e r e d e t e r m i n e s t h e s u p p o r t r a d i u s o f
our g e n e r a t i n g f u n c t i o n s , a n d since e = l/y/Dh = (N l ) / \ / ^ , we see t h a t t h e
e v a l u a t i o n m a t r i x w i l l be c o m p l e t e l y dense u n t i l N g r o w s above a p p r o x i m a t e l y 25.
F u r t h e r m o r e , for such a large v a l u e o f D t h e r e is a v i s i b l e s m o o t h i n g effect ( v e r y
slow convergence) d u r i n g t h e first few i t e r a t i o n s w i t h N = 3, 5 , 9 , 1 7 , 3 3 , 65.
I n t h e r i g h t p l o t o f F i g u r e 27.2 w e c o m p a r e t h e a p p r o x i m a t i o n o r d e r s achiev-
able w i t h t h e u n i v a r i a t e c o m p a c t l y s u p p o r t e d g e n e r a t i n g f u n c t i o n s (27.1) o f o r d e r s
d = 0,1,2. T h e r e s p e c t i v e values o f T> r e q u i r e d t o p r e v e n t t h e s a t u r a t i o n e r r o r
f r o m c o r r u p t i n g o u r e x p e r i m e n t s are T> = 5 0 0 , 5 0 0 0 , 20000, r e s p e c t i v e l y . N o t e t h a t
T> = 20000 i m p l i e s t h a t t h e e v a l u a t i o n m a t r i x w i l l be dense ( a n d t h e r e f o r e c o m p u -
t a t i o n a l l y inefficient) u n t i l N reaches a b o u t 150. T h u s , i t is n o t u n t i l t h e v e r y l a s t
i t e r a t i o n s w i t h N = 8193 a n d N = 16385 t h a t we get t o t a k e r e a l a d v a n t a g e o f t h e
c o m p a c t s u p p o r t o f t h e g e n e r a t i n g f u n c t i o n , i.e., h a v e sparse sums. T h e steepest
20
sections o f t h e curves c o r r e s p o n d t o a p p r o x i m a t e a p p r o x i m a t i o n o r d e r s o f 0(h ),
3 m 5A5
0(h ) , a n d 0(h ), respectively.
The M A T L A B code for t h e c o m p a c t l y s u p p o r t e d e x p e r i m e n t s c a n be writ-
ten i n t w o ways. One possibility w o u l d be t o r e w r i t e t h e g e n e r a t i n g func-
t i o n s i n s h i f t e d f o r m as e x p l a i n e d i n C h a p t e r 12, a n d t h e n use t h e sparse code
D i s t a n c e M a t r i x C S R B F . m . H o w e v e r , as j u s t e x p l a i n e d , we c a n n o t t a k e m u c h a d v a n -
t a g e o f t h e s p a r s i t y u s u a l l y associated w i t h c o m p a c t l y s u p p o r t e d f u n c t i o n s . T h e r e -
fore, we use essentially t h e same code as i n P r o g r a m 2 7 . 1 . T h e o n l y changes needed
are t h e s u b s t i t u t i o n o f t h e d e f i n i t i o n o f t h e c o m p a c t l y s u p p o r t e d g e n e r a t i n g f u n c -
t i o n s for t h e L a g u e r r e - G a u s s i a n s a l o n g w i t h a p p r o p r i a t e values for D.
E x a m p l e 2 7 . 3 . T h i s e x a m p l e is s i m i l a r t o t h e second p a r t o f E x a m p l e 2 7 . 1 . N o w
we use b i v a r i a t e L a g u e r r e - G a u s s i a n s w i t h scale f a c t o r 1/TT. T h e t e s t d a t a are s a m -
p l e d f r o m a b i v a r i a t e m o l l i f i e d F r a n k e f u n c t i o n , i.e., we m u l t i p l y F r a n k e ' s f u n c t i o n
(2.2) by the mollifier
_ i 2
_ i
g(x,y) = l$e i-(2*-i) e i-w -i)*
v .
fc 2
T h e d a t a sites are u n i f o r m g r i d s o f ( 2 + l ) p o i n t s ( w i t h k = 1 , . . . , 5) i n t h e u n i t
square. T h e values f o r t h e scale p a r a m e t e r T> used are V = 1 , 2 , 2 . 5 . T h e steep-
est sections o f t h e e r r o r curves c o r r e s p o n d t o a p p r o x i m a t e a p p r o x i m a t i o n o r d e r s o f
1 8 3 2 8 0 3 00
0(h ) , 0(h ) , a n d 0(h - ), r e s p e c t i v e l y . N o t e t h a t these r a t e s d o n o t m a t c h
t h e theoretically predicted orders. W e w i l l see t h a t we c a n achieve t h e t h e o r e t i -
c a l l y p r e d i c t e d orders b y u s i n g m o r e d a t a sites. T h i s , h o w e v e r , w i l l r e q u i r e s p e c i a l
e v a l u a t i o n t e c h n i q u e s t o d e a l w i t h t h e l a r g e s u m s efficiently (see t h e n e x t c h a p t e r ) .
4
*(*) = - (i-N|) + ( 4 H | + i),
252
= ( U 5 5 N | 2 ( 1 { { X { 1 ) ( 4 | W I + 1 }
229^ " ) " + '
=
llluW
( 4 1 ? 9
" 3705
H ll a; 2
+ 59605||tf|| ) ( 1 - H I ) ! (411*11 + 1 ) .4
196 3 0 3 3 26
ders o f 0(h ), 0(h ) , a n d 0(h - ), respectively. A g a i n , we do not o b t a i n a
m a t c h w i t h t h e t h e o r e t i c a l l y p r e d i c t e d o r d e r s , even t h o u g h w e used u p t o N = 66049
data points.
i . 1 :
Chapter 28
28.1 NFFT
fc=l
2
-, \ , logr, r l o g r ,
243
244 Meshfree Approximation Methods with MATLAB
m u l t i p o l e t y p e m e t h o d s discussed i n C h a p t e r 3 5 . O n e s t a r t s o u t b y a p p r o x i m a t i n g
t h e ( a r b i t r a r y , b u t s m o o t h ) basic f u n c t i o n <fr u s i n g s t a n d a r d F o u r i e r series, i.e.,
$(x) J2 bee 2 7 r i x
(28.2)
S
w i t h a m u l t i - i n d e x i n t h e i n d e x set I n = [f, f ) - T h e coefficients bi a r e f o u n d
b y t h e d i s c r e t e inverse F o u r i e r t r a n s f o r m
<4S*() e- ' 2 i f e i /
" (28.3)
fc -/"n
N u m e r i c a l l y , t h i s t a s k is a c c o m p l i s h e d w i t h s o f t w a r e f o r t h e s t a n d a r d (inverse) F F T
{e.g., [FFTW]).
Remark 2 8 . 1 . N o t e t h a t t h i s d e f i n i t i o n o f t h e F o u r i e r t r a n s f o r m (as w e l l as t h e
one b e l o w ) is different f r o m t h e o n e used t h r o u g h o u t t h e rest o f t h i s b o o k . H o w e v e r ,
i n o r d e r t o s t a y closer t o t h e s o f t w a r e packages, w e a d o p t t h e n o t a t i o n used t h e r e .
U s i n g t h e r e p r e s e n t a t i o n ( 2 8 . 2 ) o f t h e basic f u n c t i o n <> w e c a n r e w r i t e ( 2 8 . 1 ) as
fc=i eein
N
<=I n fc=l
Now, t h e e x p o n e n t i a l is s p l i t u s i n g t h e a b o v e m e n t i o n e d p r o p e r t y , i.e.,
eei n k=i
T h i s , h o w e v e r , c a n be v i e w e d as a fast F o u r i e r t r a n s f o r m a t t h e n o n - u n i f o r m l y
spaced p o i n t s yj, i.e.,
v { )^j2 ^ ' -
f yj
d 2nie Vi
2
a e = f 2 c k e - ^ ,
k=l
w h i c h i n t u r n is n o t h i n g b u t a n inverse d i s c r e t e F o u r i e r t r a n s f o r m a t t h e n o n -
u n i f o r m l y spaced p o i n t s x . T h e s e l a t t e r t w o t r a n s f o r m s are d e a l t w i t h n u m e r i c a l l y
k
using t h e N F F T software.
T o g e t h e r , for t h e case o f n o n - s i n g u l a r basic f u n c t i o n s <&, w e h a v e t h e f o l l o w i n g
algorithm.
28. Fast Fourier Transforms 245
F o r e l n
C o m p u t e t h e coefficients
b y inverse F F T .
C o m p u t e t h e coefficients
fc=i
by inverse N F F T .
C o m p u t e t h e coefficients di = agbt-
end
For 1 < j < M
C o m p u t e t h e values
Vf(y )
3 * ] T die *"*
2
by N F F T .
end
3 (9xi - 2 ) 2
(9x - 2)
2
2
(9x - 2) 3
5
/(xi,X ,X )2 3 exp(- )
4 4 4
2 2
(9xi + l ) (9x + l )
2 (9x 3 + If
+ exp(-
49 10 29
(9xx - 7 ) s
s
(9x 3 - 5) 1
+ 2 e x
P(- (9x 2 - 3)
1 , 2 2
6 X P (
(9xi - 4 ) - (9x - 7 ) - 2 (9x 3
2
5) ),
- 5 -
# ( x i , x , x ) = 1 5 / ( x i , x , x ) JJexp(:j-
2 3 2 3
2
(2xi-l)
10 u d=0
d=1
d=2
g 10
LU
10
Fig. 28.1 Convergence and execution times for I D example (Gaussian, linear and quadratic
Laguerre-Gaussian generating functions).
10'
10
10'
y
/ . d=0, direct
d=1, direct '
d=2, direct
d=0, NFFT
d=1, NFFT
d=2, NFFT
10'
263169 81 1089 16641 263169
N
Fig. 28.2 Convergence and execution times for 2D example (Gaussian, linear and quadratic
Laguerre-Gaussian generating functions).
10 10
10
10'
g 10" 2 01
LU i-
d=0, direct
10 d=1, direct '
10 d=2, direct
d=0, NFFT
d=1, NFFT
d=2, NFFT
10 10
27 125 729 4913 35937 274625 27 125 729 4913 35937 274625
N N
Fig. 28.3 Convergence and (predicted) execution times for 3D example (Gaussian, linear and
quadratic Laguerre-Gaussian generating functions).
Chapter 29
29.1 Theory
T h e p a r t i t i o n o f u n i t y m e t h o d was suggested i n [ B a b u s k a a n d M e l e n k ( 1 9 9 7 ) ;
M e l e n k a n d B a b u s k a (1996)] i n t h e m i d 1990s i n t h e c o n t e x t o f meshfree G a l e r k i n
m e t h o d s for t h e s o l u t i o n o f p a r t i a l d i f f e r e n t i a l e q u a t i o n s (see C h a p t e r s 4 4 a n d 45
for a discussion o f a n R B F - b a s e d G a l e r k i n a p p r o a c h ) . I n t h e s c a t t e r e d d a t a f i t t i n g
c o n t e x t t h e p a p e r [ F r a n k e (1977)] a l r e a d y c o n t a i n s a s i m i l a r a l g o r i t h m . W e base
the presentation i n this section o n the paper [ W e n d l a n d (2002a)].
T h e basic i d e a for t h e p a r t i t i o n o f u n i t y m e t h o d is t o s t a r t w i t h a p a r t i t i o n o f t h e
s
open and bounded domain f l C R i n t o M s u b d o m a i n s flj such t h a t ( J j l i 2 fl
w i t h some m i l d o v e r l a p a m o n g t h e s u b d o m a i n s . A s s o c i a t e d w i t h these s u b d o m a i n s
we choose a partition of unity, i.e., a f a m i l y o f c o m p a c t l y s u p p o r t e d , n o n - n e g a t i v e ,
c o n t i n u o u s f u n c t i o n s Wj s u p p o r t e d o n t h e closure o f flj s u c h t h a t a t e v e r y p o i n t x
i n fl we have
M
X>,-(aO = l . (29.1)
3= 1
249
250 Meshfree Approximation Methods with MATLAB
t h e n t h e g l o b a l a p p r o x i m a n t also i n t e r p o l a t e s a t t h i s p o i n t :
M
Pf(xe) = Y^u {xi)w {x )
j j e
T h e last e q u a l i t y h o l d s d u e t o t h e p a r t i t i o n o f u n i t y p r o p e r t y ( 2 9 . 1 ) . T e c h n i c a l l y ,
t h e second s u m w i l l m o s t l i k e l y n o t r u n over t h e f u l l set o f indices, 1 , . . . , M , since
X w i l l lie o n l y i n t h e s u p p o r t o f some o f t h e Wj. O f course, t h i s does n o t change
the result.
I n o r d e r t o be able t o f o r m u l a t e e r r o r b o u n d s w e n e e d some t e c h n i c a l c o n d i t i o n s .
W e r e q u i r e t h e p a r t i t i o n o f u n i t y f u n c t i o n s t o be k-stable, i.e., we r e q u i r e t h a t each
k s
Wj G C (M. ) satisfies for e v e r y m u l t i - i n d e x ct w i t h | a | < k t h e i n e q u a l i t y
where C a is some p o s i t i v e c o n s t a n t , a n d Sj = d i a m ( O ^ ) .
I n order t o understand the following a p p r o x i m a t i o n theorem f r o m [ W e n d l a n d
s k
(2002a)] we need t o define t h e space C g ( R ) o f a l l C functions / whose derivatives
a
o f o r d e r | a | = A; satisfy D f(x) = 0(\\x\\%) for | | * | | 2 - 0.
s
T h e o r e m 2 9 . 1 . Suppose fl C R is open and bounded, and let X = {x\,... ,x^} C
s
f2. Let <3> G Cp(R ) be strictly conditionally positive definite of order m. Let
{flj} be a regular covering for (fl, X) and let {wj} be k-stable for {flj}- Then
the error between f G Af$(fi) and its partition of unity interpolant (29.2) with
Uj G span{<E>(-, cc) : x G X D flj} + II^ _ l 1 can be bounded by
a a
\D f{x) - D V {x)\ f < C h % - ^ \ f W , m ,
T h e r e g u l a r i t y a s s u m p t i o n s o n t h e s u b d o m a i n s flj are:
I f we c o m p a r e t h i s w i t h t h e g l o b a l e r r o r e s t i m a t e s f r o m C h a p t e r 15 w e see t h a t
t h e p a r t i t i o n o f u n i t y preserves t h e l o c a l a p p r o x i m a t i o n o r d e r for t h e g l o b a l f i t .
T h u s , we c a n efficiently c o m p u t e l a r g e R B F i n t e r p o l a n t s b y s o l v i n g m a n y s m a l l
RBF i n t e r p o l a t i o n p r o b l e m s ( i n p a r a l l e l i f w e w i s h ) a n d t h e n glue t h e m together
w i t h the global p a r t i t i o n of u n i t y {wj}.
A s i m p l e w a y t o o b t a i n a p a r t i t i o n o f u n i t y is v i a a S h e p a r d a p p r o x i m a n t (c.f.
C h a p t e r 2 3 ) . T h e r e f o r e , w e c a n t h i n k o f t h e p a r t i t i o n o f u n i t y m e t h o d as a S h e p a r d
29. Partition of Unity Methods 251
29.2 P a r t i t i o n of U n i t y A p p r o x i m a t i o n w i t h MATLAB
T h e M A T L A B p r o g r a m for t h e p a r t i t i o n o f u n i t y a p p r o x i m a t i o n based o n l o c a l R B F
i n t e r p o l a n t s is a g a i n r a t h e r s i m i l a r t o o u r earlier p r o g r a m s . T h e m a i n difference is
t h a t we n o w also have t o create t h e s u b d o m a i n s flj ( w h i c h we w i l l d o as o v e r l a p p i n g
circles) a n d t h e associated p a r t i t i o n o f u n i t y {vjj} (for w h i c h w e use a S h e p a r d
m e t h o d based o n W e n d l a n d ' s c o m p a c t l y s u p p o r t e d R B F s ) .
T h e c o m p a c t l y s u p p o r t e d r a d i a l w e i g h t f u n c t i o n s o n l i n e 1 o f P r o g r a m 29.1 a n d
t h e R B F o n l i n e 2 are used i n t h e s h i f t e d f o r m > fc = (p ,k(lSi s ) (cf. T a b l e 1 1 . 1 ) .
N o t e t h a t we use t h e kd-tree r o u t i n e s t o b u i l d t w o trees: a d a t a tree, and an
evaluation tree. I n s i d e t h e l o o p over a l l p a r t i t i o n o f u n i t y cells (lines 2 7 - 3 8 ) we
first use k d r a n g e q u e r y t o find a l l d a t a sites i n cell j , b u i l d t h e l o c a l i n t e r p o l a t i o n
m a t r i x based o n these p o i n t s , a n d t h e n r e p e a t t h e process for t h e e v a l u a t i o n p o i n t s .
N o t e t h a t t h e c o n t r i b u t i o n s t o t h e final g l o b a l fit are a c c u m u l a t e d cell b y cell (see
line 3 6 ) .
P r o g r a m 2 9 . 1 . PU2D_CS.m
/ PU2D_CS
% Script that performs p a r t i t i o n of u n i t y approximation using
/ s p a r s e
0 matrices
% Calls on: DistanceMatrixCSRBF
/ U s e s :
0 k - D t r e e p a c k a g e b y Guy S h e c h t e r
% f r o m MATLAB C e n t r a l File Exchange
/, W e i g h t f u n c t i o n f o r g l o b a l S h e p a r d p a r t i t i o n o f u n i t y w e i g h t i n g
1 wf = @ ( e , r ) r."4.*(5*spones(r)-4*r);
% RBF b a s i s f u n c t i o n f o r l o c a l RBF i n t e r p o l a t i o n
2 r b f = @(e,r) r."4.*(5*spones(r)-4*r);
3 ep = 0 . 1 ; % P a r a m e t e r f o r local basis functions
% D e f i n e F r a n k e ' s f u n c t i o n as testfunction
4 f l = @(x,y) 0.75*exp(-((9*x-2),"2+(9*y-2)."2)/4);
5 f 2 = @(x,y) 0 . 7 5 * e x p ( - ( ( 9 * x + l ) . " 2 / 4 9 + ( 9 * y + l ) . " 2 / 1 0 ) ) ;
6 f3 = @(x,y) 0.5*exp(-((9*x-7)."2+(9*y-3)."2)/4);
7 f4 = @(x,y) 0.2*exp(-((9*x-4),"2+(9*y-7).~2));
8 testfunction = @(x,y) fl(x,y)+f2(x,y)+f3(x,y)-f4(x,y);
9 N = 1089; gridtype = 'h';
/ P a r a m e t e r f o r n p u - b y - n p u g r i d
0 o f PU c e l l s in unit square
10 npu = 16;
% Parameter f o r n e v a l - b y - n e v a l evaluation grid in unit square
252 Meshfree Approximation Methods with MATLAB
11 n e v a l = 40;
% Load d a t a p o i n t s
5
12 name = s p r i n t f (Data2D_7 d/,s' ,N,gridtype) ; load(name)
0
13 ctrs = dsites;
14 rhs = testfunction(dsites(:,1),dsites(:,2));
15 wep = npu; % Parameter f o r weight f u n c t i o n
% C r e a t e n e v a l - b y - n e v a l e q u a l l y spaced e v a l u a t i o n l o c a t i o n s
% i n t h e u n i t square
16 g r i d = l i n s p a c e ( 0 , 1 , n e v a l ) ; [xe,ye] = m e s h g r i d ( g r i d ) ;
17 epoints = [xe(:) y e ( : ) ] ;
% Create npu-by-npu e q u a l l y spaced c e n t e r s of PU c e l l s i n t h e
'/, u n i t square
18 p u g r i d = l i n s p a c e ( 0 , 1 , n p u ) ; [xpu,ypu] = m e s h g r i d ( p u g r i d ) ;
19 c e l l c t r s = [xpu(:) y p u ( : ) ] ;
20 c e l l r a d i u s = 1/wep;
% Compute Shepard e v a l u a t i o n m a t r i x
21 DM_eval = D i s t a n c e M a t r i x C S R B F ( e p o i n t s , c e l l c t r s , w e p ) ;
22 SEM = wf(ep,DM_eval);
23 SEM = s p d i a g s d ./(SEM*ones(npu~2,1)) ,0,neval~2,neval~2)*SEM;
% B u i l d k-D t r e e s f o r d a t a s i t e s and e v a l u a t i o n p o i n t s
24 [tmp,tmp,datatree] = k d t r e e ( d s i t e s , [ ] ) ;
25 [tmp,tmp,evaltree] = k d t r e e ( e p o i n t s , [ ] ) ;
26 Pf = z e r o s ( n e v a l ~ 2 , 1 ) ; % i n i t i a l i z e
27 f o r j=l:npu"2
% Find data s i t e s i n c e l l j
28a [ p t s , d i s t , i d x ] = kdrangequery(datatree,...
28b cellctrs(j,:),cellradius);
29 i f ( l e n g t h ( i d x ) > 0)
/ B u i l d l o c a l i n t e r p o l a t i o n m a t r i x f o r c e l l j
0
30a DM_data = D i s t a n c e M a t r i x C S R B F ( d s i t e s ( i d x , : ) , . . .
30b ctrs(idx,:),ep);
31 IM = rbf(ep,DM_data);
% Find evaluation points i n c e l l j
32a [epts,edist,eidx] = kdrangequery(evaltree,...
32b cellctrs(j,:),cellradius);
% Compute l o c a l e v a l u a t i o n m a t r i x
33a DM_eval = D i s t a n c e M a t r i x C S R B F ( e p o i n t s ( e i d x , : ) , . . .
33b ctrs(idx,:),ep);
34 EM = rbf(ep,DM_eval);
% Compute l o c a l RBF i n t e r p o l a n t
35 l o c a l f i t = EM * ( I M \ r h s ( i d x ) ) ;
Accumulate g l o b a l f i t
29. Partition of Unity Methods 253
7, P l o t interpolant
44 fview = [160,20];
45 PlotSurf(xe,ye,Pf,neval,exact,maxerr,fview);
7o P l o t maximum e r r o r
46 PlotError2D(xe,ye,Pf,exact,maxerr,neval,fview);
Wendland Gaussian
Wendland Gaussian
A c o m m o n p r o b l e m i n c o m p u t e r g r a p h i c s a n d c o m p u t e r a i d e d design ( C A D ) is t h e
r e c o n s t r u c t i o n o f a t h r e e - d i m e n s i o n a l surface defined i n t e r m s o f point cloud data,
i.e., as a set o f u n o r g a n i z e d , i r r e g u l a r p o i n t s i n 3 D . F o r e x a m p l e , t h i s c o u l d be
laser range d a t a o b t a i n e d for t h e p u r p o s e o f c o m p u t e r m o d e l i n g o f a c o m p l i c a t e d
3D object. Such a p p l i c a t i o n s also arise, e.g., i n c o m p u t e r g r a p h i c s o r i n m e d i c a l
i m a g i n g . A n a p p r o a c h t o o b t a i n i n g a surface t h a t fits t h e g i v e n 3 D p o i n t c l o u d d a t a
t h a t has r e c e n t l y become r a t h e r p o p u l a r (see, e.g., [ C a r r et al. (1997); C a r r et al.
(2001); M o r s e et al. (2001); O h t a k e et al. (2003a); O h t a k e et al. ( 2 0 0 3 b ) ; T u r k a n d
O ' B r i e n (2002); W e n d l a n d ( 2 0 0 2 b ) ] ) is based o n t h e use o f implicit surfaces defined
i n t e r m s o f some meshfree a p p r o x i m a t i o n m e t h o d such as a n R B F i n t e r p o l a n t o r
an M L S approximant.
M o r e precisely, g i v e n d a t a o f t h e f o r m {xi = (xi,yi,Zi) 3
G M , i = 1,...,N}
3
assumed t o come f r o m some t w o - d i m e n s i o n a l m a n i f o l d Ai (i.e., a surface i n M ) , w e
seek a n o t h e r surface Ai* t h a t is a reasonable a p p r o x i m a t i o n t o Ai. For the i m p l i c i t
surface a p p r o a c h we t h i n k o f Ai as t h e surface o f a l l p o i n t s (x, y, z) t h a t satisfy t h e
implicit equation
f(x,y,z) = 0
255
256 Meshfree Approximation Methods with MATLAB
(1) C o n s t r u c t t h e e x t r a off-surface p o i n t s .
(2) F i n d t h e t r i v a r i a t e meshfree a p p r o x i m a n t t o t h e a u g m e n t e d d a t a set.
(3) R e n d e r t h e iso-surface ( z e r o - c o n t o u r ) o f t h e f i t c o m p u t e d i n step ( 2 ) .
(x N+i,U2N+i,
2 z N+i)
2 =Xi Srii = (xi - Sn^,yi - 5n\,yi - 5n*).
V (xi)
f = 0, i = l,...,N,
V (xi)
f = l,. i = N-rl,...,2N,
V (xi)
f = -1, i = 2N+l,...,3N.
M A T L A B t h i s c a n be a c c o m p l i s h e d w i t h t h e c o m m a n d i s o s u r f a c e (or c o n t o u r for
2 D p r o b l e m s ) . T h i s p r o v i d e s a r o u g h p i c t u r e o f t h e i m p l i c i t surface i n t e r p o l a n t , b u t
m a y also lead t o some r e n d e r i n g a r t i f a c t s t h a t c a n be a v o i d e d w i t h m o r e sophis-
ticated rendering procedures. F o r m o r e serious a p p l i c a t i o n s one u s u a l l y e m p l o y s
some v a r i a t i o n o f a ray tracing or marching cube a l g o r i t h m (see t h e discussion i n
t h e references l i s t e d above).
T h e i m p l i c i t surface r e p r e s e n t a t i o n has t h e a d v a n t a g e t h a t t h e surface n o r m a l s
of t h e a p p r o x i m a t i n g surface Ai* c a n be e x p l i c i t l y a n d a n a l y t i c a l l y c a l c u l a t e d as
t h e gradients o f t h e t r i v a r i a t e f u n c t i o n Vf, i.e., n(x) = Wf(x).
Since i n p r a c t i c e t h e d a t a (e.g., o b t a i n e d b y laser r a n g e scanners) is s u b j e c t
t o m e a s u r e m e n t errors i t is o f t e n beneficial i f a n a d d i t i o n a l s m o o t h i n g p r o c e d u r e is
e m p l o y e d . O n e c a n e i t h e r use t h e r i d g e regression a p p r o a c h suggested i n C h a p t e r 19,
or use a m o v i n g least squares a p p r o x i m a t i o n i n s t e a d o f a n R B F i n t e r p o l a n t . A n o t h e r
i m p l i c i t s m o o t h i n g t e c h n i q u e was suggested i n [ B e a t s o n a n d B u i (2003)]. N o i s y d a t a
c a n also be d e a l t w i t h b y u s i n g a m u l t i l e v e l t e c h n i q u e such as suggested i n [ O h t a k e
et al. ( 2 0 0 3 b ) ] . W e discuss m u l t i l e v e l i n t e r p o l a t i o n a n d a p p r o x i m a t i o n a l g o r i t h m s
i n C h a p t e r 32.
30.2 A n Illustration in 2 D
Since t h e 3 D p o i n t c l o u d i n t e r p o l a t i o n p r o b l e m requires a n i n t e r p o l a n t t o p o i n t s
v i e w e d as samples o f a t r i v a r i a t e f u n c t i o n w h o s e g r a p h is a 4 D h y p e r s u r f a c e , the
v i s u a l i z a t i o n o f t h e i n d i v i d u a l steps o f t h e c o n s t r u c t i o n o f t h e f i n a l iso-surface is
p r o b l e m a t i c . W e therefore i l l u s t r a t e t h e process w i t h a n a n a l o g o u s t w o - d i m e n s i o n a l
p r o b l e m , i.e., we assume we are g i v e n p o i n t s ( t a k e n f r o m a closed c u r v e C) i n t h e
plane, a n d i t is o u r g o a l t o f i n d a n i n t e r p o l a t i n g c u r v e C*. B e l o w we present b o t h
M A T L A B code a n d several figures.
P r o g r a m 30.1. PointCloud2D.m
% PointCloud2D
% Script that fits a curve t o 2D p o i n t cloud
% C a l l s on: DistanceMatrix
% Uses: haltonseq ( w r i t t e n by D a n i e l Dougherty
f r o m MATLAB C e n t r a l F i l e Exchange)
% G a u s s i a n RBF
1 r b f = @(e,r) exp(-(e*r).~2); ep = 3.5;
2 N = 81; % number of data points
3 neval = 40; % to create neval-by-neval evaluation grid
4 t = 2*pi*haltonseq(N 1); } dsites = [cos(t) sin(t)];
5 x = (2+sin(t)).*cos(t); y = (2+cos(t)).*sin(t);
6 nx = (2+cos(t)).*cos(t)-sin(t)."2;
258 Meshfree Approximation Methods with MATLAB
7 ny = ( 2 + s i n ( t ) ) . * s i n ( t ) - c o s ( t ) . " 2 ;
8 d s i t e s = [x y ] ; normals = [nx n y ] ;
/ Produce a u x i l i a r y p o i n t s along normals " i n s i d e " and " o u t s i d e "
0
9 bmin = m i n ( d s i t e s , [] , 1) ; bmax = m a x ( d s i t e s , [] , 1) ;
10 bdim = max(bmax-bmin);
% D i s t a n c e along normal a t which t o p l a c e new p o i n t s
11 d e l t a = bdim/100;
% Create new p o i n t s
12 dsites(N+l:2*N, :) = d s i t e s d :N, : ) + d e l t a * n o r m a l s ;
13 dsites(2*N+1:3*N,:) = d s i t e s ( 1 : N ) - d e l t a * n o r m a l s ;
% " o r i g i n a l " p o i n t s have rhs=0,
% " i n s i d e " p o i n t s have r h s = - l , " o u t s i d e " p o i n t s have r h s = l
14 rhs = [zeros(N,l); ones(N,l); -ones(N,l)];
% L e t centers coincide with data s i t e s
15 ctrs = dsites;
% Compute new bounding box
16 bmin = m i n ( d s i t e s , [] , 1) ; bmax = m a x ( d s i t e s , [] , 1) ;
/ Create n e v a l - b y - n e v a l e q u a l l y spaced e v a l u a t i o n l o c a t i o n s
0
/ i n bounding box
0
17 xgrid = linspace(bmin(l),bmax(l),neval);
18 ygrid = linspace(bmin(2),bmax(2),neval);
19 [xe,ye] = m e s h g r i d ( x g r i d , y g r i d ) ;
20 epoints = [xe(:) y e ( : ) ] ;
21 DM_eval = D i s t a n c e M a t r i x ( e p o i n t s , c t r s ) ;
22 EM = rbf(ep,DM_eval);
23 DM_data = D i s t a n c e M a t r i x ( d s i t e s , c t r s ) ;
24 IM = rbf(ep,DM_data);
25 Pf = EM * ( I M \ r h s ) ;
7, P l o t extended data w i t h 2 D - f i t Pf
26 f i g u r e ; hold on; v i e w ( [ - 3 0 , 3 0 ] )
27 plot3(dsites(:,1),dsites(:,2),rhs,'r.','markersize',20);
28 mesh(xe,ye,reshape(Pf,neval,neval));
29 a x i s t i g h t ; hold o f f
7o P l o t data s i t e s w i t h i n t e r p o l a n t (zero contour of 2 D - f i t P f )
30 f i g u r e ; hold on
31 p l o t ( d s i t e s d :N, 1) . d s i t e s (1: N, 2) , 'bo') ;
32 c o n t o u r ( x e , y e , r e s h a p e ( P f , n e v a l , n e v a l ) , [0 0 ] , ' r ' ) ;
33 hold o f f
Since we use a k n o w n r e p r e s e n t a t i o n o f t h e c u r v e t o g e n e r a t e t h e p o i n t c l o u d i t is
also possible t o o b t a i n a n e x a c t n o r m a l v e c t o r associated w i t h each d a t a p o i n t (see
lines 6 - 8 ) .
T h e s t r a t e g y for c r e a t i o n o f t h e a u x i l i a r y p o i n t s is t h e same as above, i.e., we
a d d d a t a p o i n t s "inside" a n d " o u t s i d e " t h e g i v e n p o i n t set. T h i s is d o n e b y p l a c i n g
these p o i n t s a l o n g t h e n o r m a l v e c t o r at each o r i g i n a l d a t a p o i n t (see lines 12 a n d
13). T h e d i s t a n c e a l o n g t h e n o r m a l at w h i c h t h e a u x i l i a r y p o i n t s are p l a c e d is t a k e n
t o be 1 % o f t h e size o f t h e m a x i m u m d i m e n s i o n o f t h e b o u n d i n g b o x o f t h e o r i g i n a l
d a t a (see lines 9 - 1 1 ) .
N e x t , t h e p r o b l e m is t u r n e d i n t o a f u l l 2 D i n t e r p o l a t i o n p r o b l e m (whose s o l u t i o n
has a 3 D g r a p h ) b y a d d i n g f u n c t i o n values ( o f t h e u n k n o w n b i v a r i a t e f u n c t i o n /
whose zero-level iso-curve w i l l be t h e desired i n t e r p o l a t i n g c u r v e ) at t h e extended
d a t a set. W e assign a v a l u e o f 0 t o each o r i g i n a l d a t a p o i n t , a n d a v a l u e o f 1 o r
1 t o " o u t s i d e " or "inside" p o i n t s , respectively. T h i s is done o n l i n e 14 o f t h e code
a n d t h e r e s u l t i n g d a t a is d i s p l a y e d i n t h e r i g h t p l o t o f F i g u r e 3 0 . 1 (c.f. also l i n e 27
of t h e c o d e ) .
Fig. 30.1 Point cloud data (left) and extended "inner" and "outer" data (right) for implicit curve
with 81 non-uniform data points.
Now we c a n solve t h e p r o b l e m j u s t l i k e a n y o f o u r 2 D i n t e r p o l a t i o n p r o b l e m s
discussed earlier. I n fact, i n P r o g r a m 3 0 . 1 w e use s t r a i g h t f o r w a r d R B F i n t e r p o l a t i o n
w i t h G a u s s i a n R B F s (see lines 1 a n d 1 9 - 2 5 ) .
F i n a l l y , t h e zero c o n t o u r o f t h e r e s u l t i n g surface is e x t r a c t e d o n l i n e 32 u s i n g
the c o n t o u r command. I n t h e left p l o t o f F i g u r e 30.2 we d i s p l a y a surface p l o t
of t h e b i v a r i a t e R B F i n t e r p o l a n t t o t h e e x t e n d e d d a t a set ( o b t a i n e d v i a t h e mesh
c o m m a n d o n l i n e 2 8 ) , a n d i n t h e r i g h t p l o t w e s h o w t h e final i n t e r p o l a t i n g c u r v e
along w i t h the original data.
260 Meshfree Approximation Methods with MATLAB
Fig. 30.2 Surface fit (left) and zero contour for 81 non-uniform data points.
I n t h e M A T L A B p r o g r a m P o i n t C l o u d 3 D _ P U C S (see P r o g r a m 30.2) w e p r e s e n t a f a i r l y
simple i m p l e m e n t a t i o n o f t h e p a r t i t i o n o f u n i t y approach t o i n t e r p o l a t i o n o f p o i n t
c l o u d d a t a i n 3 D . T h e p a r t i t i o n o f u n i t y is c r e a t e d w i t h a S h e p a r d approximant
2
as i n t h e p r e v i o u s c h a p t e r . A s i n P r o g r a m 2 9 . 1 w e use W e n d l a n d ' s C compactly
s u p p o r t e d f u n c t i o n as b o t h t h e S h e p a r d w e i g h t s a n d f o r t h e l o c a l R B F i n t e r p o l a n t s .
T h e d a t a sets used i n o u r e x a m p l e s c o r r e s p o n d t o v a r i o u s r e s o l u t i o n s o f t h e S t a n -
f o r d b u n n y available o n t h e w o r l d - w i d e w e b a t h t t p : / / g r a p h i c s . S t a n f o r d . e d u / -
data/3Dscanrep/. Data sets consisting o f 35947, 8 1 7 1 , 1889, and 453
points are i n c l u d e d i n t h e file bunny . t a r .gz. T h e normals for t h i s kind
of PLY d a t a c a n be c o m p u t e d with the utility normalsply from the pack-
age p l y . t a r . g z p r o v i d e d b y G r e g T u r k , a n d available o n t h e w o r l d - w i d e web
at h t t p : / / w w w . c c . g a t e c h . e d u / p r o j e c t s / l a r g e _ m o d e l s / p l y . h t m l . Results ob-
t a i n e d w i t h t h e P o i n t C l o u d 3 D _ P U C S for t h e 453 a n d 8 1 7 1 p o i n t c l o u d sets are dis-
p l a y e d i n F i g u r e 30.3. Processed d a t a files are i n c l u d e d o n t h e enclosed C D .
M a n y p a r t s o f t h e M A T L A B code for P o i n t C l o u d 3 D _ P U C S are s i m i l a r t o P r o -
g r a m 2 9 . 1 . T h e b u n n y d a t a set i n c l u d i n g p o i n t n o r m a l s is l o a d e d o n l i n e 6, a n d
t h e b o u n d i n g b o x for t h e p o i n t c l o u d a n d i t s m a x i m u m d i m e n s i o n are c o m p u t e d
on lines 7 - 8 . T h e off-surface p o i n t s are a d d e d i n lines 1 0 - 1 4 . T h e n t h e r i g h t - h a n d
side for t h e a u g m e n t e d ( 3 D ) i n t e r p o l a t i o n p r o b l e m is d e f i n e d o n l i n e 15 ( a s s i g n i n g
a value o f 0 for t h e on-surface d a t a p o i n t s , a n d a v a l u e o f 1 for t h e " o u t s i d e " a n d
"inside" off-surface p o i n t s ) , a n d w e r e c o m p u t e t h e b o u n d i n g b o x for t h e a u g m e n t e d
d a t a o n l i n e 16.
We have f o u n d t h a t a r e a s o n a b l e v a l u e for t h e r a d i u s o f t h e p a r t i t i o n o f u n i t y
subdomains seems t o be g i v e n b y t h e m a x i m a l d i m e n s i o n o f t h e b o u n d i n g b o x
d i v i d e d b y t h e cube r o o t o f t h e n u m b e r , M, o f s u b d o m a i n s , i.e., d i a m ( - l j ) = l/w e
The main part of the program (lines 29-46) is almost identical to lines 21-38
of Program 29.1. On lines 47-55 we add the code that creates and displays the
zero-contour iso-surface for the 3D (solid) interpolant Pf along with the point cloud
data.
P r o g r a m 30.2. PointCloud3D_PUCS .m
/. PointCloud3D_PUCS
% S c r i p t t h a t f i t s a s u r f a c e t o 3D p o i n t cloud u s i n g p a r t i t i o n of
/ u n i t y approximation w i t h s p a r s e m a t r i c e s
0
17 ctrs = dsites;
% Create neval-by-neval-by-neval e q u a l l y spaced e v a l u a t i o n
% l o c a t i o n s i n bounding box
18 xgrid = linspace(bmin(1),bmax(l),neval);
19 ygrid = linspace(bmin(2),bmax(2),neval);
20 zgrid = linspace(bmin(3),bmax(3),neval);
21 [xe,ye,ze] = m e s h g r i d ( x g r i d , y g r i d , z g r i d ) ;
22 epoints = [xe(:) y e ( : ) z e ( : ) ] ;
/ Create npu-by-npu-by-npu e q u a l l y spaced c e n t e r s of PU c e l l s
0
% i n bounding box
23 puxgrid = l i n s p a c e ( b m i n ( l ) , b m a x ( l ) , n p u ) ;
24 puygrid = linspace(bmin(2),bmax(2),npu);
25 p u z g r i d = linspace(bmin(3),bmax(3),npu);
26 [xpu,ypu,zpu] = meshgrid(puxgrid,puygrid,puzgrid);
27 c e l l c t r s = [xpu(:) ypu(:) z p u ( : ) ] ;
28 c e l l r a d i u s = 1/wep;
/ Compute Shepard e v a l u a t i o n m a t r i x
0
29 DM_eval = D i s t a n c e M a t r i x C S R B F ( e p o i n t s , c e l l c t r s , w e p ) ;
30 SEM = wf(wep,DM_eval);
31 SEM = spdiags(l./(SEM*ones(npu"3,1)),0,neval"3,neval"3)*SEM;
/ B u i l d k-D t r e e s f o r d a t a s i t e s and e v a l u a t i o n p o i n t s
0
32 [tmp,tmp,datatree] = k d t r e e ( d s i t e s , [ ] ) ;
33 [tmp,tmp,evaltree] = k d t r e e ( e p o i n t s , [ ] ) ;
34 Pf = z e r o s ( n e v a l " 3 , 1 ) ; % i n i t i a l i z e
35 f o r j=l:npu"3
% Find data s i t e s i n c e l l j
36a [ p t s , d i s t , i d x ] = kdrangequery(datatree,...
36b cellctrs(j,:),cellradius);
37 i f ( l e n g t h ( i d x ) > 0)
0/ B u i l d l o c a l i n t e r p o l a t i o n m a t r i x f o r c e l l j
38a DM_data = D i s t a n c e M a t r i x C S R B F ( d s i t e s ( i d x , : ) , . . .
38b ctrs(idx,:),ep);
39 IM = rbf(ep,DM_data);
0/ F i n d e v a l u a t i o n p o i n t s i n c e l l j
40a [epts,edist,eidx] = kdrangequery(evaltree,...
40b cellctrs(j,:),cellradius);
0/ Compute l o c a l e v a l u a t i o n m a t r i x
41a DM_eval = D i s t a n c e M a t r i x C S R B F ( e p o i n t s ( e i d x , : ) , . . .
41b ctrs(idx,:),ep);
42 EM = rbf(ep,DM_eval);
0/ Compute l o c a l RBF i n t e r p o l a n t
43 l o c a l f i t = EM * ( I M \ r h s ( i d x ) ) ;
r
/ Accumulate g l o b a l f i t
0
e v a l u a t i o n p o i n t s i n t h e b o u n d i n g b o x o f t h e 3D d a t a , a n d for those o n t h e b o t t o m o f
F i g u r e 30.3 w e used 3 2 = 32768 s u b d o m a i n s a n d 5 0 = 125000 e v a l u a t i o n p o i n t s .
3 3
.4.:
264 Meshfree Approximation Methods with MATLAB
Chapter 31
I n t h e n e x t few c h a p t e r s we w i l l l o o k a t v a r i o u s v e r s i o n s o f r e s i d u a l i t e r a t i o n . T h e
basic idea o f u s i n g a n i t e r a t i v e a l g o r i t h m i n w h i c h one takes a d v a n t a g e o f t h e r e s i d u a l
o f a n i n i t i a l a p p r o x i m a t i o n t o o b t a i n a m o r e a c c u r a t e s o l u t i o n is w e l l - k n o w n i n m a n y
branches o f m a t h e m a t i c s .
Ae = Ax AXQ - r. (31.1)
T h u s , b y a d d i n g t h e ( n u m e r i c a l ) s o l u t i o n en o f e q u a t i o n (31.1) t o t h e i n i t i a l s o l u t i o n
XQ one expects t o i m p r o v e t h e i n i t i a l a p p r o x i m a t i o n t o x\ = XQ + eo (since t h e t r u e
s o l u t i o n x xo + e). O f course, t h i s p r o c e d u r e c a n be r e p e a t e d i t e r a t i v e l y . T h i s
leads t o t h e a l g o r i t h m
(1) C o m p u t e a n a p p r o x i m a t e s o l u t i o n ccn o f Ax = b.
(2) F o r k 1 , 2 , . . . do
(a) C o m p u t e t h e r e s i d u a l r k = b Ax -i-
k
( b ) Solve Ae k = r .
k
(c) U p d a t e x k = x - i + e .
k k
W e c a n r e w r i t e t h e last s t a t e m e n t i n t h e a l g o r i t h m as
265
266 Meshfree Approximation Methods with MATLAB
oo
E( - )
1 1
A ' = (BA)- !! = J B A J B.
3=0
T h e r e f o r e t h e e x a c t s o l u t i o n o f Ax = b c a n be w r i t t e n i n t h e f o r m
E( -
1
x = A~ b = B A Bb. (31.3)
7
y
3=0
For t h e i t e r a t i v e r e f i n e m e n t a l g o r i t h m , o n t h e o t h e r h a n d , we have f r o m ( 3 1 . 2 )
a n d t h e fact t h a t XQ = Bb, that
x k = x - i + B(bk - Ax -i)k
= (I - BA)x - k 1 + Bb
= ( I - BA)x -! k +x . 0 (31.4)
W e c a n r e c u r s i v e l y s u b s t i t u t e t h i s r e l a t i o n b a c k i n for x k - i , x -2,
k etc., a n d o b t a i n
XQ
E( J
- B A
y Bb. (31.5)
3=0 3=0
Bb,
x x k E ( - J
B A
y
j=k+l
whose n o r m goes t o zero for k oo since \ \ I BA\\ < 1 by the assumption made
on t h e a p p r o x i m a t e inverse B.
W e n o w a p p l y these ideas t o R B F i n t e r p o l a t i o n a n d M L S a p p r o x i m a t i o n . In
t h i s a n d t h e f o l l o w i n g c h a p t e r s w e w i l l consider t h r e e d i f f e r e n t scenarios:
F i x e d level i t e r a t i o n , i.e., t h e i t e r a t i v e r e f i n e m e n t a l g o r i t h m is p e r f o r m e d o n a
fixed set o f d a t a p o i n t s X .
M u l t i l e v e l i t e r a t i o n , i.e., w e w o r k w i t h a n e s t e d sequence o f d a t a sets XQ C
X\ c C X.
A d a p t i v e i t e r a t i o n , i.e., r e s i d u a l i t e r a t i o n is p e r f o r m e d o n a d a p t i v e l y chosen
subsets o f X , e.g., b y s t a r t i n g w i t h some s m a l l subset o f X a n d t h e n a d d i n g one
p o i n t a t a t i m e f r o m t h e r e m a i n d e r o f X t h a t is d e t e r m i n e d t o be " o p t i m a l " .
N o t e t h a t t h e t h i r d a p p r o a c h is s i m i l a r t o t h e a d a p t i v e k n o t i n s e r t i o n a l g o r i t h m
of C h a p t e r 2 1 .
31. Fixed Level Residual Iteration 267
A l g o r i t h m 31.2. F i x e d l e v e l r e s i d u a l i t e r a t i o n based o n q u a s i - i n t e r p o l a t i o n
0
(1) C o m p u t e a n i n i t i a l a p p r o x i m a t i o n V ^ f t o t h e d a t a {(xj, f(xj)), j = 1,..., N}
N
o f t h e f o r m vf\x) = ^ f{xj)^j{x).
3= 1
(2) F o r k = 1 , 2 , . . . d o
k X
(a) C o m p u t e t h e residuals ri-(xj) = f(xj) Vj ~ \xj) for a l l j 1 , . . . , N.
N
( b ) C o m p u t e t h e c o r r e c t i o n u(x) rkjxj)^j(x).
3= 1
X
(c) U p d a t e ^ ( c c ) = vf~ \x) + u{x).
A s for t h e i t e r a t i v e r e f i n e m e n t a l g o r i t h m , w e c a n r e w r i t e t h e last l i n e o f t h e
a l g o r i t h m as
x X
Vf\x) = Vf~ \x) + j r [f {Xj) - Vf- \x )] 3 * {x).
s
3= 1
N o w w e r e s t r i c t t h e e v a l u a t i o n o f t h e a p p r o x i m a t i o n t o t h e d a t a sites o n l y . T h u s ,
we have
JV
v f \ X i ) = Vf- \ X
x i ) + E [/(;) - V f
k x
- \ X j )] Vjixi), i = 1,..., N.
3= 1
(31.6)
N e x t w e collect a l l o f these N e q u a t i o n s i n t o one single m a t r i x - v e c t o r e q u a t i o n b y
i n t r o d u c i n g t h e vectors / = [ / ( a ? i ) , f(x ),.. 2 , /(JCJV)] and ^ = [ ^ i , , ^ N ]
T h i s allows us t o r e w r i t e t h e i n i t i a l a p p r o x i m a n t i n m a t r i x - v e c t o r f o r m
T
v f \ x ) = ^ (x)f. (31.7)
{ k ) { k x )
V f = V f ~ + A(f - Vf^-V)
k 1)
= {I-A)V ( - +Af f (31.8)
k 1 ) i 0 )
= ( I - A ) V / - + V f ,
5
since (31.7) i m p l i e s t h a t o n t h e d a t a sites w e h a v e T / ^ = Af. N o w we can again
recursively substitute back i n a n d o b t a i n
k k
<p W (31.9)
f =
Af
J=0 J=0
k
since || J A\\ 0 for A; * oo. M o r e d e t a i l s (such as sufficient c o n d i t i o n s u n d e r
w h i c h \ \ I A\\ < 1) are g i v e n i n [Fasshauer a n d Z h a n g ( 2 0 0 6 ) ] .
I n order to establish a connection between iterated (approximate) M L S approx-
i m a t i o n a n d R B F i n t e r p o l a t i o n w e assume t h e m a t r i x A t o be p o s i t i v e d e f i n i t e a n d
g e n e r a t e d b y r a d i a l basis f u n c t i o n s _>j = ip(\\ Xj\\) as i n o u r discussions i n ear-
lier c h a p t e r s . T h e n A c o r r e s p o n d s t o a n R B F i n t e r p o l a t i o n m a t r i x , a n d w e see
t h a t t h e i t e r a t e d ( a p p r o x i m a t e ) M L S a p p r o x i m a t i o n converges t o t h e R B F i n t e r -
p o l a n t p r o v i d e d t h e same f u n c t i o n spaces are used, i.e., span-fSE'j, j = 1 , . . . , N} =
spanf^-, j = 1,...,N}.
I n p a r t i c u l a r , w e have e s t a b l i s h e d
m ax 2
i=1 2 ,^|Ei^i|< '
31. Fixed Level Residual Iteration 269
w e have convergence o f t h e r e s i d u a l i t e r a t i o n a l g o r i t h m . T h i s c o n d i t i o n is c l o s e l y
r e l a t e d t o t h e Lebesgue f u n c t i o n o f t h e R B F i n t e r p o l a n t . F o r e x a m p l e , i t is n o t
h a r d t o see t h a t S h e p a r d g e n e r a t i n g f u n c t i o n s satisfy t h i s c o n d i t i o n since each r o w
s u m is e q u a l t o one due t o t h e p a r t i t i o n o f u n i t y p r o p e r t y o f t h e S h e p a r d f u n c t i o n s .
For o t h e r t y p e s o f f u n c t i o n s t h e c o n d i t i o n c a n be satisfied b y a n a p p r o p r i a t e s c a l i n g
of t h e basic f u n c t i o n w i t h a s u f f i c i e n t l y s m a l l shape p a r a m e t e r . H o w e v e r , i f e is
t a k e n t o o s m a l l , t h e n t h e a l g o r i t h m converges v e r y s l o w l y . A series o f e x p e r i m e n t s
a n a l y z i n g t h e b e h a v i o r o f t h e a l g o r i t h m are p r e s e n t e d i n [Fasshauer and Zhang
(2006)] a n d also i n S e c t i o n 31.4 b e l o w .
T h e q u e s t i o n o f w h e t h e r t h e a p p r o x i m a t e M L S g e n e r a t i n g f u n c t i o n s are s t r i c t l y
p o s i t i v e d e f i n i t e has been i r r e l e v a n t u p t o t h i s p o i n t . H o w e v e r , i n o r d e r t o m a k e
t h e c o n n e c t i o n b e t w e e n A M L S a p p r o x i m a t i o n a n d R B F i n t e r p o l a t i o n as s t a t e d i n
T h e o r e m 31.1 i t is i m p o r t a n t t o find A M L S g e n e r a t i n g f u n c t i o n s t h a t satisfy t h i s
additional condition. O f course, a n y ( a p p r o p r i a t e l y n o r m a l i z e d ) s t r i c t l y p o s i t i v e
definite f u n c t i o n c a n serve as a second-order a c c u r a t e A M L S g e n e r a t i n g f u n c t i o n .
H o w e v e r , i t is a n o p e n q u e s t i o n for w h i c h o f these f u n c t i o n s t h e i r h i g h e r - o r d e r
g e n e r a t i n g f u n c t i o n s c o m p u t e d a c c o r d i n g t o o u r d i s c u s s i o n i n C h a p t e r 26 are also
s t r i c t l y positive definite.
T h e f a m i l y o f L a g u e r r e - G a u s s i a n s ( 4 . 2 ) p r o v i d e s one e x a m p l e o f g e n e r a t i n g / b a s i s
f u n c t i o n s t h a t c a n be used t o i l l u s t r a t e T h e o r e m 3 1 . 1 (see t h e n u m e r i c a l e x p e r i m e n t s
b e l o w ) since t h e i r F o u r i e r t r a n s f o r m s are p o s i t i v e (see ( 4 . 3 ) ) .
I f we s t a r t f r o m t h e i n t e r p o l a t i o n e n d , t h e n t h e i n t e r p o l a t i o n c o n d i t i o n s V/(xi) =
f(xi) t e l l us t h a t we need t o solve t h e l i n e a r s y s t e m Ac = f i n o r d e r t o find t h e
coefficients o f t h e R B F e x p a n s i o n
N
= ^2(J-BAyBf, (31.11)
3=0
w h e r e B is a n a p p r o x i m a t e inverse o f A as i n S e c t i o n 3 1 . 1 a n d w e let en = Bf.
Here c k is t h e k-th step a p p r o x i m a t i o n t o t h e coefficient v e c t o r c T
[c\,...,c/v] -
E q u a t i o n (31.10) c a n also be r e w r i t t e n as
c fc = (I - BA)ck-i + Bf,
a n d t h e r e f o r e c o r r e s p o n d s t o a s t a n d a r d s t a t i o n a r y i t e r a t i o n for t h e s o l u t i o n o f
l i n e a r systems (see, e.g., p . 620 o f [ M e y e r ( 2 0 0 0 ) ] ) . T h e s p l i t t i n g m a t r i c e s s u c h t h a t
x l X
A = M N are M = B~ , N = B~ - A, a n d H = M~ N = (/ - BA).
270 Meshfree Approximation Methods with MATLAB
On t h e o t h e r h a n d , (31.11) gives us a n i n t e r p r e t a t i o n o f t h e r e s i d u a l i t e r a t i o n
as a K r y l o v subspace m e t h o d w i t h t h e K r y l o v subspaces g e n e r a t e d b y t h e m a t r i x
I BA and the vector Bf.
I n t h e q u a s i - i n t e r p o l a t i o n f o r m u l a t i o n t h e c o r r e s p o n d i n g f o r m u l a s are g i v e n b y
(31.9), i.e.,
k
(31.12)
3=0
W e n o w i l l u s t r a t e t h e fixed l e v e l r e s i d u a l i t e r a t i o n a l g o r i t h m w i t h some M A T L A B
e x p e r i m e n t s based o n t h e i t e r a t i o n o f a p p r o x i m a t e M L S a p p r o x i m a n t s w i t h G a u s -
s i a n g e n e r a t i n g f u n c t i o n s . T o o b t a i n some t e s t d a t a w e use F r a n k e ' s f u n c t i o n (2.2)
o n 289 H a l t o n p o i n t s i n t h e u n i t s q u a r e .
I n o u r earlier discussion o f a p p r o x i m a t e M L S a p p r o x i m a t i o n w e l i m i t e d ourselves
m o s t l y t o t h e case o f u n i f o r m l y spaced d a t a . T h i s was d u e t o t h e fact, t h a t for
n o n - u n i f o r m l y spaced d a t a one needs t o scale t h e g e n e r a t i n g f u n c t i o n s i n d i v i d u a l l y
according to the local variation i n the data density i n order t o m a i n t a i n the approx-
i m a t e a p p r o x i m a t i o n o r d e r s s t a t e d i n T h e o r e m 2 6 . 1 . N o w t h e convergence r e s u l t
o f T h e o r e m 3 1 . 1 shows t h a t w e n o l o n g e r need t o feel b o u n d b y t h o s e l i m i t a t i o n s .
31. Fixed Level Residual Iteration 271
I t e r a t i o n w i l l a u t o m a t i c a l l y i m p r o v e t h e a p p r o x i m a t e M L S f i t also o n n o n - u n i f o r m
d a t a . O n t h e o t h e r h a n d , t h i s o b s e r v a t i o n suggests t h a t t h e use o f a u n i f o r m shape
p a r a m e t e r for R B F i n t e r p o l a t i o n is m o s t l i k e l y n o t t h e i d e a l s t r a t e g y t o o b t a i n
h i g h l y a c c u r a t e R B F fits. W h i l e a few e x p e r i m e n t s o f R B F i n t e r p o l a t i o n w i t h v a r y -
i n g shape p a r a m e t e r s exist i n t h e l i t e r a t u r e (see, e.g., [Kansa a n d Carlson (1992);
B o z z i n i et al. (2002); F o r n b e r g a n d Z u e v ( 2 0 0 6 ) ] ) , t h e t h e o r y for t h i s case is o n l y
r u d i m e n t a r y [ B o z z i n i et al. ( 2 0 0 2 ) ] .
T h e M A T L A B code for o u r e x a m p l e s is p r o v i d e d i n P r o g r a m 3 1 . 1 . Since w e are
i t e r a t i n g t h e a p p r o x i m a t e M L S a p p r o x i m a t i o n w e define t h e scale o f t h e g e n e r a t -
ing functions i n terms of the parameter V (see l i n e 2 ) . H o w e v e r , since t h e RBF
( G a u s s i a n ) is defined w i t h t h e p a r a m e t e r e w e c o n v e r t T> t o e based o n t h e for-
m u l a e l/(\/T)h). W e a p p r o x i m a t e h (even for n o n - u n i f o r m H a l t o n p o i n t s ) b y
h = 1/(VN 1), w h e r e N is t h e n u m b e r o f d a t a p o i n t s ( i n 2 D ) .
I n c o n t r a s t t o p r e v i o u s p r o g r a m s w e n o w r e q u i r e t w o sets o f e v a l u a t i o n p o i n t s .
T h e u s u a l e p o i n t s t h a t we e m p l o y for e r r o r c o m p u t a t i o n a n d p l o t t i n g a l o n g w i t h
a n o t h e r set r e s p o i n t s , t h e p o i n t s a t w h i c h w e e v a l u a t e t h e residuals d u r i n g t h e
iterative procedure. These p o i n t s c o i n c i d e w i t h t h e d a t a p o i n t s (see l i n e 13). The
i t e r a t i o n o n lines 2 3 - 2 8 is e q u i v a l e n t t o t h e f o r m u l a t i o n i n A l g o r i t h m 31.2 a b o v e .
P r o g r a m 3 1 . 1 . I t e r a t e d _ M L S A p p r o x A p p r o x 2 D .m
/ I t e r a t e d _ M L S A p p r o x A p p r o x 2 D
0
14 g r i d = l i n s p a c e ( 0 , 1 , n e v a l ) ; [xe,ye] = m e s h g r i d ( g r i d ) ;
15 epoints = [xe(:) y e ( : ) ] ;
7. Compute e x a c t s o l u t i o n
16 exact = t e s t f u n c t i o n ( e p o i n t s ( : , 1 ) , e p o i n t s ( : , 2 ) ) ;
% Compute e v a l u a t i o n m a t r i x d i r e c t l y based on t h e d i s t a n c e s
7, between t h e e v a l u a t i o n p o i n t s and c e n t e r s
17 DM = D i s t a n c e M a t r i x ( e p o i n t s , c t r s ) ;
18 EM = rbf(ep,DM)/(pi*D);
Compute - f o r a l l l e v e l s - e v a l u a t i o n m a t r i c e s f o r
% r e s i d u a l s d i r e c t l y based on t h e d i s t a n c e s between t h e
% next f i n e r p o i n t s ( r e s p o i n t s ) and c e n t e r s
19 DM = D i s t a n c e M a t r i x ( r e s p o i n t s , c t r s ) ;
20 RM = rbf(ep,DM)/(pi*D);
21 Pf = z e r o s ( n e v a l ~ 2 , 1 ) ; % initialize
% C r e a t e v e c t o r of f u n c t i o n v a l u e s ( i n i t i a l r e s i d u a l ) ,
22 rhs = testfunction(dsites(:,1),dsites(:,2));
23 f o r level=l:maxlevel
% E v a l u a t e on e v a l u a t i o n p o i n t s
/ ( f o r e r r o r computation and p l o t t i n g )
0
24 Pf = Pf + EM*rhs;
% Compute new r e s i d u a l
25 r h s = r h s - RM*rhs;
% Compute e r r o r s on e v a l u a t i o n g r i d
26 maxerr(level) = norm(Pf-exact,inf);
27 r m s _ e r r ( l e v e l ) = norm(Pf-exact)/neval;
28 end
29 figure; semilogy(1:maxlevel,maxerr,'b',1:maxlevel,rms_errr');
A c c o r d i n g t o t h e e x p e r i m e n t s s h o w n i n F i g u r e 2.5 t h e o p t i m a l shape p a r a m e t e r
for Gaussian i n t e r p o l a t i o n t o F r a n k e ' s f u n c t i o n o n 289 H a l t o n p o i n t s is close t o
e 6. T h e c o r r e s p o n d i n g v a l u e o f T> for t h e G a u s s i a n as a n a p p r o x i m a t e M L S
g e n e r a t i n g f u n c t i o n is T> 6 4 / 9 (since e = l/(\/T)h), a n d we a p p r o x i m a t e h for
t h e n o n - u n i f o r m H a l t o n p o i n t s b y t h e v a l u e w e w o u l d h a v e for u n i f o r m p o i n t s , i.e.,
h = l/(s/N 1 ) . F o r t h i s v a l u e o f t h e s h a p e p a r a m e t e r w e see t h e convergence
b e h a v i o r o f t h e a p p r o x i m a t e M L S r e s i d u a l i t e r a t i o n i n t h e left p l o t o f F i g u r e 3 1 . 1 .
T h e f i n a l m a x i m u m e r r o r after 10000 i t e r a t i o n s is 9.921772e-002 ( t o p / s o l i d c u r v e ) ,
a n d t h e R M S e r r o r is 3.939342e-003 ( l o w e r / d a s h e d c u r v e ) . For comparison, the
e r r o r s for t h e c o r r e s p o n d i n g R B F i n t e r p o l a n t ( w h i c h is t h e t h e o r e t i c a l l i m i t o f t h e
r e s i d u a l i t e r a t i o n ) are 3.238735e-002 for t h e m a x i m u m e r r o r a n d 1.074443e-003 for
t h e R M S e r r o r . T h e s e e r r o r s are i n c l u d e d as h o r i z o n t a l s t r a i g h t lines i n t h e left p l o t
of F i g u r e 3 1 . 1 .
r
# Iterations V
Fig. 31.1 Convergence for iterated M L S approximation based on Gaussian generating functions
with T> = 64/9 (e = 6) to data sampled from Franke's function at 289 Halton points (left), and fit
for an R B F interpolant based on Gaussians with e = 1 (right).
A n a d v a n t a g e o f t h e r e s i d u a l i t e r a t i o n is t h a t i t a l l o w s us t o c o m p u t e r a d i a l basis
a p p r o x i m a t i o n s also for values o f t h e shape p a r a m e t e r for w h i c h t h e i n t e r p o l a t i o n
m a t r i x is v e r y i l l - c o n d i t i o n e d . F o r e x a m p l e , t h e r i g h t p l o t o f F i g u r e 3 1 . 1 shows a n
R B F i n t e r p o l a n t t o t h e 289 H a l t o n samples o f F r a n k e ' s f u n c t i o n based o n G a u s s i a n s
w i t h shape p a r a m e t e r e = 1. T h e r e c i p r o c a l c o n d i t i o n n u m b e r e s t i m a t e p r o v i d e d b y
M A T L A B for t h e i n t e r p o l a t i o n m a t r i x for t h i s p r o b l e m is RCOND = 2.132739e-020.
I n these i l l - c o n d i t i o n e d cases convergence o f t h e r e s i d u a l i t e r a t i o n t o t h e l i m i t
is r a t h e r slow, b u t t h e a p p r o x i m a t i o n s c a n be c o m p u t e d v e r y s t a b l y . I n the left
p l o t o f F i g u r e 31.2 w e s h o w t h e convergence b e h a v i o r for t h e r e s i d u a l i t e r a t i o n
w i t h a p p r o x i m a t e M L S a p p r o x i m a n t s based o n G a u s s i a n g e n e r a t i n g f u n c t i o n s w i t h
V 256 ( c o r r e s p o n d i n g t o e 1). N o t e t h a t t h e a p p r o x i m a t i o n e r r o r s for t h e
i t e r a t i v e scheme q u i c k l y d r o p b e l o w t h e m a x i m u m e r r o r o f 2 . 5 0 7 0 1 7 e + 0 0 0 a n d R M S
e r r o r o f 2.186992e-001 o f t h e m o s t l y m e a n i n g l e s s i n t e r p o l a n t . T h e c o r r e s p o n d i n g f i t
for t h e i t e r a t i v e m e t h o d is d i s p l a y e d i n t h e r i g h t p l o t o f t h e f i g u r e . W h i l e t h i s f i t
is n o t v e r y a c c u r a t e , i t is s t i l l m u c h m o r e r e l i a b l e t h a n t h e f i t c o n s i s t i n g o f m o s t l y
n u m e r i c a l noise s h o w n i n t h e r i g h t p l o t o f F i g u r e 3 1 . 1 . T h e f i n a l e r r o r s after 10000
i t e r a t i o n s are 2.933448e-001 for t h e m a x i m u m e r r o r a n d 8.470775e-002 for t h e R M S
error.
I t is o f i n t e r e s t t o n o t e t h a t t h e r e s i d u a l i t e r a t i o n shows t h e m o s t dramatic
error improvement d u r i n g the first few i t e r a t i o n s . T h u s , o n l y a few i t e r a t i o n s o f
a p p r o x i m a t e M L S a p p r o x i m a t i o n are r e q u i r e d t o o b t a i n a reasonable ( a n d s t a b l y
computable) a p p r o x i m a t i o n t o the R B F i n t e r p o l a n t . Moreover, we emphasize again
t h a t w h i l e o u r discussion o f a p p r o x i m a t e M L S a p p r o x i m a t i o n was m o s t l y l i m i t e d
t o t h e case o f u n i f o r m d a t a ( a t least for m o s t p r a c t i c a l p u r p o s e s ) , t h i s l i m i t a t i o n n o
l o n g e r exists for t h e r e s i d u a l i t e r a t i o n a l g o r i t h m .
274 Meshfree Approximation Methods with MATLAB
maxerr AMLS
RMSerr AMLS
RMSerr RBF
uj
Fig. 31.2 Convergence and final fit for iterated approximate M L S approximation based on 289
Halton points and Gaussians with T> = 256 (e = 1).
T h e use o f o t h e r a p p r o x i m a t i o n m e t h o d s w i t h i n t h e f i x e d l e v e l r e s i d u a l i t e r a t i o n
a l g o r i t h m s u c h as r e g u l a r M L S a p p r o x i m a t i o n o r R B F least squares a p p r o x i m a t i o n
is also possible. W e p o i n t o u t , h o w e v e r , t h a t t h e use o f R B F i n t e r p o l a t i o n does n o t
m a k e a n y sense i n t h e c o n t e x t o f f i x e d l e v e l r e s i d u a l i t e r a t i o n since t h e r e s i d u a l s o n
t h e d a t a are a u t o m a t i c a l l y zero i f w e p e r f o r m i n t e r p o l a t i o n o f t h e d a t a .
I f w e w a n t t o use r e g u l a r M L S a p p r o x i m a t i o n i n s t e a d of approximate MLS
a p p r o x i m a t i o n i n t h e residual i t e r a t i o n , t h e n , for Shepard's m e t h o d , t h i s means
r e p l a c i n g l i n e 18 i n P r o g r a m 3 1 . 1 b y
18a EM = rbf(ep,DM);
18b EM = EM./repmat(EM*ones(N,1),1,N); % Shepard n o r m a l i z a t i o n
a n d l i n e 20 b y
20a RM = rbf(ep.DM);
20b RM = RM./repmat(RM*ones(N,1),1,N); % Shepard n o r m a l i z a t i o n
S h e p a r d a p p r o x i m a n t s t h e m a x i m u m e r r o r is 8.760946e-003 a n d t h e R M S e r r o r is
7.889609e-004. F o r t h e e = 1 e x a m p l e t h e final e r r o r s (after 10000 i t e r a t i o n s ) are
2.664303e-001 for t h e m a x i m u m e r r o r a n d 8.169080e-002 for t h e R M S e r r o r . T h i s
e x a m p l e is v e r y s i m i l a r t o t h e A M L S e x a m p l e d i s p l a y e d i n F i g u r e 31.2. Again,
the most significant p a r t of the error i m p r o v e m e n t occurs d u r i n g the first 10-20
iterations.
10 10'
maxerr IterShep - maxerr IterShep
RMSerr IterShep - RMSerr IterShep
maxerr RBF
10 RMSerr RBF RMSerr RBF
10
2i
LU
^
10"
10
10 10
2000 4000 6000 8000 10000 2000 4000 6000 8000 10000
# Iterations # Iterations
Fig. 31.3 Convergence for iterated Shepard approximation based on 289 Halton points and Gaus-
sian weights with e = 6 (left), and = 1 (right).
10" 10
maxerr IterShep
RMSerr IterShep
maxerr RBF
RMSerr RBF
10 10"
maxerr IterShep
RMSerr IterShep
maxerr RBF
RMSerr RBF
10" 10
10" 10
2000 4000 6000 8000 10000 4 6 10
# Iterations # Iterations
Fig. 31.4 Convergence for iterated approximate M L S approximation (left) and Shepard approx-
imation (right) based on 1089 Halton points and Gaussian weights with e = 16.
Chapter 32
Multilevel Iteration
A s we saw i n C h a p t e r s 12 a n d 16 t h a t t h e r e is a t r a d e - o f f p r i n c i p l e for i n t e r p o -
lation w i t h compactly supported radial functions. Namely, using a non-stationary
a p p r o a c h we c a n o b t a i n g o o d a p p r o x i m a t i o n results a t t h e cost o f i n c r e a s i n g c o m p u -
t a t i o n a l c o m p l e x i t y , w h i l e w i t h a s t a t i o n a r y a p p r o a c h one has a n efficient a p p r o x -
imation method. However, stationary a p p r o x i m a t i o n w i t h c o m p a c t l y supported
r a d i a l f u n c t i o n s is s a t u r a t e d , i.e., i t p r o v i d e s o n l y l i m i t e d convergence.
A n a l g o r i t h m for m u l t i l e v e l i n t e r p o l a t i o n is as follows:
277
278 Meshfree Approximation Methods with MATLAB
T h e r e p r e s e n t a t i o n o f t h e u p d a t e u a t s t e p A; is a r a d i a l basis f u n c t i o n e x p a n s i o n
of the form
() = E c f v ( ^ ^ )
T h i s requires t h e s o l u t i o n o f a l i n e a r s y s t e m w h o s e size is d e t e r m i n e d b y t h e n u m b e r
of points i n Xk.
U n f o r t u n a t e l y , so far t h e r e are o n l y l i m i t e d t h e o r e t i c a l r e s u l t s c o n c e r n i n g t h e
convergence o f t h i s m u l t i l e v e l a l g o r i t h m . I n [ N a r c o w i c h et al. (1999)] t h e a u t h o r s
s h o w t h a t a r e l a t e d a l g o r i t h m ( i n w h i c h a d d i t i o n a l b o u n d a r y c o n d i t i o n s are i m -
p o s e d ) converges a t least l i n e a r l y . H a r t m a n n a n a l y z e s t h e m u l t i l e v e l a l g o r i t h m i n
his P h . D . thesis [ H a r t m a n n ( 1 9 9 8 ) ] . H e s h o w s a t least l i n e a r c o n v e r g e n c e for m u l -
t i l e v e l i n t e r p o l a t i o n o n a r e g u l a r l a t t i c e f o r v a r i o u s r a d i a l basis f u n c t i o n s . S i m i l a r
r e s u l t s are o b t a i n e d i n [Hales a n d L e v e s l e y ( 2 0 0 2 ) ] for ( g l o b a l l y s u p p o r t e d ) p o l y -
h a r m o n i c splines, i.e., t h i n p l a t e splines a n d r a d i a l p o w e r s . I n this context linear
convergence is t o be i n t e r p r e t e d as a n i m p r o v e m e n t o f t h e f o r m
f c ) f c 1 )
||/-7>} ||<C||/-P} - ||, k = l,...,K,
32.2 A M A T L A B I m p l e m e n t a t i o n of S t a t i o n a r y M u l t i l e v e l
Interpolation
T h e M A T L A B p r o g r a m ML_CSRBF3D. m for s t a t i o n a r y m u l t i l e v e l i n t e r p o l a t i o n w i t h
c o m p a c t l y s u p p o r t e d R B F s is d i s p l a y e d as P r o g r a m 3 2 . 1 . I n t h i s p r o g r a m w e use
2
t h e c o m p a c t l y s u p p o r t e d R B F <p(r) = ( 1 - r ) ^ . ( 3 5 r + 1 8 r + 3) o f W e n d l a n d . T h i s
4 3
f u n c t i o n is C a n d s t r i c t l y p o s i t i v e d e f i n i t e a n d r a d i a l o n 1R . T h e p r o g r a m shows
a n u m b e r o f differences c o m p a r e d t o o u r p r e v i o u s codes. O n l i n e 2 w e define t h e
m a x i m u m n u m b e r o f levels K w e w i s h t o use, a n d t h e n define t h e corresponding
scale p a r a m e t e r s e for t h e basic f u n c t i o n . Since we l o a d d a t a sets c o n s i s t i n g o f
fc 3
(2 + l ) u n i f o r m l y spaced d a t a p o i n t s i n t h e u n i t c u b e ( w h e r e k r u n s f r o m 1 t o K,
see lines 1 3 - 1 7 ) , t h e fill d i s t a n c e hx ,n k changes b y a f a c t o r o f t w o f r o m one l e v e l t o
the next. T h e r e f o r e , i n o r d e r t o g u a r a n t e e a s t a t i o n a r y i n t e r p o l a t i o n scheme, t h e
scale p a r a m e t e r e needs t o c h a n g e b y a f a c t o r o f t w o f r o m one level t o t h e n e x t ,
also. T h i s is achieved i n l i n e 2 o f t h e code w h e r e we also use a n a d d i t i o n a l f a c t o r
of 0.7 t o u n i f o r m l y scale a l l values o f e. N o t e t h a t here e c o r r e s p o n d s t o a s u p p o r t
radius p = 1/e.
I n each i t e r a t i o n we solve one i n t e r p o l a t i o n p r o b l e m (see l i n e 1 8 - 2 2 ) . T h e e x p a n -
s i o n coefficients c o e f are s t o r e d i n one c o m p o n e n t o f a M A T L A B c e l l array. S i m i l a r l y ,
w e need t o keep t h e centers for a l l levels i n m e m o r y ( a g a i n u s i n g a cell a r r a y c t r s ,
see l i n e 1 7 ) . T h e r i g h t - h a n d side for t h e i n t e r p o l a t i o n p r o b l e m is g i v e n b y t h e d a t a
(values o f t h e test f u n c t i o n o n t h e i n i t i a l d a t a set) i n t h e f i r s t i t e r a t i o n , a n d i n l a t e r
i t e r a t i o n s b y t h e r e s i d u a l , i.e., t h e difference b e t w e e n t h e d a t a (values o f t h e t e s t
f u n c t i o n o n t h e present g r i d ) a n d t h e values o f t h e fit o n t h e present g r i d . These
values are c o m p u t e d at t h e e n d o f t h e p r e v i o u s i t e r a t i o n a n d s t o r e d i n t h e v e c t o r R f
(see lines 2 8 - 3 2 ) . T h i s e x t r a e v a l u a t i o n ( i n a d d i t i o n t o t h e e v a l u a t i o n o n a s e p a r a t e
e v a l u a t i o n g r i d for e r r o r m o n i t o r i n g a n d p l o t t i n g p u r p o s e s , see lines 3 4 - 3 9 ) a d d s t o
t h e c o m p l e x i t y ( a n d i n e f f i c i e n c y ) o f t h e p r e s e n t code. Moreover, the evaluation of
t h e r e s i d u a l o n t h e present g r i d r e q u i r e s us t o keep e v a l u a t i o n m a t r i c e s for a l l levels
i n m e m o r y ( i n t h e c e l l a r r a y RM, see lines 2 4 - 2 7 ) . N o t e t h a t t h e e v a l u a t i o n p o i n t s
( r e s p o i n t s ) for t h e residuals change w i t h e v e r y i t e r a t i o n a n d need n o t b e k e p t i n
storage. A n a l t e r n a t i v e a p p r o a c h w o u l d be t o e v a l u a t e a l l residuals o n a c o m m o n
(fine) g r i d , e.g., t h e e v a l u a t i o n g r i d . T h i s , h o w e v e r , w o u l d m a k e ( t h e e v a l u a t i o n o f )
the i n i t i a l iterates rather expensive.
F i n a l l y , o n lines 4 2 - 4 8 w e keep t r a c k o f t h e R M S e r r o r , a n d c o m p u t e t h e r a t e o f
convergence f r o m one level t o t h e n e x t . T h e c o m m a n d s t h a t g e n e r a t e p l o t s o f t h e
d a t a sites, i n t e r p o l a n t a n d e r r o r are g i v e n o n lines 4 9 - 5 4 .
P r o g r a m 3 2 . 1 . ML_CSRBF3D .m
% ML_CSRBF3D
/ S c r i p t t h a t performs multilevel RBF I n t e r p o l a t i o n u s i n g
'/, s p a r s e matrices
280 Meshfree Approximation Methods with MATLAB
7, C a l l s on: DistancMatrixCSRBF
7, Wendland C4
1 r b f = @(e,r) r."6.*(35*r.~2-88*r+56*spones(r));
7o Number of l e v e l s w i t h e p s i l o n s f o r s t a t i o n a r y i n t e r p o l a t i o n
2 K = 4; ep = 0.7*2.~[0:K-1];
3 t e s t f u n c t i o n = @(x,y,z) 6 4 * x . * ( 1 - x ) . * y . * ( 1 - y ) . * z . * ( 1 - z ) ;
4 g r i d t y p e = 'u' ; 7o Type of d a t a p o i n t s : u'=uniform 5
5 n e v a l = 10; M = n e v a l " 3 ;
6 grid=linspace(0,1,neval); [xe,ye,ze]=meshgrid(grid);
7 epoints= [ x e ( : ) y e ( : ) z e ( : ) ] ;
8 exact = t e s t f m i c t i o n ( e p o i n t s ( : , 1 ) , e p o i n t s ( : , 2 ) , e p o i n t s ( : , 3 ) ) ;
9 isomin = 0.1; isomax = 1; i s o s t e p = .1;
10 x s l i c e = .25:.25:1; y s l i c e = 1; z s l i c e = [ 0 , 0 . 5 ] ;
11 R f _ o l d = z e r o s ( 2 7 , l ) ; 7 i n i t i a l i z e
12 f o r k=l:K
13 Nl = ( 2 ~ k + l ) ~ 3 ; N2 = ( 2 * ( k + 1 ) + 1 ) " 3 ;
5
14 namel = s p r i n t f ( 'Data3D_7,d7.s , Nl . g r i d t y p e ) ;
15 name2 = s p r i n t f ( D a t a 3 D _ 7 . d 7 . s N 2 . g r i d t y p e ) ;
,
34 DM_eval = D i s t a n c e M a t r i x C S R B F ( e p o i n t s , c t r s f k } , e p ( k ) ) ;
35 EM = r b f ( e p ( k ) , D M _ e v a l ) ;
36 Pf = EM*coef{k};
37 i f (k > 1)
38 Pf = P f _ o l d + P f ;
39 end
40 Pf_old = Pf;
41 maxerr = n o r m ( P f - e x a c t , i n f ) ;
42 rms_err = n o r m ( P f - e x a c t ) / s q r t ( M ) ;
43 f p r i n t f ('RMS e r r o r : %e\n', r m s . e r r )
44 i f (k > 1)
45 rms_rate = l o g ( r m s _ e r r _ o l d / r m s _ e r r ) / l o g ( 2 ) ;
46 f p r i n t f ('RMS r a t e : /,f \n' , r m s _ r a t e )
47 end
48 r m s _ e r r _ o l d = rms.err;
49 figure
50 plot3(dsites(:,1),dsites(:,2),dsites(:,3),'bo');
51a Plotlsosurf(xe,ye,ze,Pf,neval,exact,maxerr,isomin,...
51b isostep,isomax);
52 PlotSlices(xe,ye,ze,Pf,neval,xslice,yslice,zslice);
53a PlotErrorSlices(xe,ye,ze,Pf,exact,neval,...
53b xslice,yslice,zslice);
54 end
I n F i g u r e 3 2 . 1 we d i s p l a y f o u r d a t a sets used i n t h e 3 D m u l t i l e v e l e x p e r i m e n t .
T h e c o r r e s p o n d i n g 3 D m u l t i l e v e l i n t e r p o l a n t s are s h o w n as iso-surfaces in Fig-
u r e 32.2. N o t e t h a t t h e t e s t f u n c t i o n f(x,y,z) = 64x(l x)y(l y)z(l z) is
a three-dimensional " b u m p " function, a n d therefore o n l y the outermost iso-surface
( c o r r e s p o n d i n g t o t h e f u n c t i o n v a l u e 0.1) is v i s i b l e . T h e r e f o r e , we also d i s p l a y t h r e e -
d i m e n s i o n a l slice p l o t s o f t h e a b s o l u t e e r r o r i n F i g u r e 32.3. B o t h t h e iso-surfaces
a n d t h e slice p l o t s are c o l o r c o d e d a c c o r d i n g t o t h e a b s o l u t e e r r o r .
I n T a b l e 3 2 . 1 w e l i s t t h e c o r r e s p o n d i n g R M S e r r o r s a n d observed convergence
r a t e s for t h e 3 D m u l t i l e v e l e x p e r i m e n t .
Fig. 32.1 Uniform point sets in the unit cube with 27, 125, 729, and 4913 points (top left to
bottom right).
N e x t we present a t w o - d i m e n s i o n a l m u l t i l e v e l i n t e r p o l a t i o n e x p e r i m e n t with
scattered data. The d a t a were obtained i n the ASCII VRML format from
http://amba.charite.de/~ksch/spsm/beetls.wrl.gz. T h e d a t a set provides
a d i g i t i z e d surface m o d e l o f a b u s t o f t h e f a m o u s G e r m a n c o m p o s e r L u d w i g v a n
Beethoven. T h e o r i g i n a l d a t a set consists o f 2663 p o i n t s i n t h e u n i t s q u a r e . In
o r d e r t o p r o v i d e a n e s t e d set o f d a t a sites for t h e m u l t i l e v e l a l g o r i t h m w e use the
p r o g r a m T h i n . m p r o v i d e d i n A p p e n d i x C . T h e processed d a t a files are i n c l u d e d o n
t h e enclosed C D . T h e r e s u l t i n g p o i n t sets are d i s p l a y e d i n F i g u r e 32.4. A much
m o r e d e t a i l e d d i s c u s s i o n o f t h i n n i n g a l g o r i t h m s for s c a t t e r e d d a t a is p r e s e n t e d i n
[Iske ( 2 0 0 4 ) ] . T h e M A T L A B p r o g r a m used t o g e n e r a t e t h e m u l t i l e v e l interpolants
i n F i g u r e 32.5 is e s s e n t i a l l y t h e same as P r o g r a m 3 2 . 1 . T h e m a i n difference is t h a t
t h e d a t a values are also r e a d f r o m t h e d a t a file i n s t e a d o f b e i n g g e n e r a t e d b y a t e s t
f u n c t i o n . F o r r e n d e r i n g p u r p o s e s t h e i n t e r p o l a n t s are e v a l u a t e d o n a n 80 x 80 g r i d
of e q u a l l y spaced p o i n t s i n t h e u n i t s q u a r e .
32. Multilevel Iteration 283
Fig. 32.2 Iso-surface plots for multilevel interpolants at levels 1, 2, 3 and 4 (top left to bottom
right) false -colored by absolute error .
f(x,y) = 15exp ( L ^ 1
. 1 ) 2 ) exp ( _ ~ _
1 { y
1
1 ) 2 ) F(x,y),
w h e r e F denotes F r a n k e ' s f u n c t i o n ( 2 . 2 ) .
I n T a b l e 32.2 we list t h e b e n c h m a r k results for m u l t i l e v e l R B F i n t e r p o l a t i o n
w i t h t h e c o m p a c t l y s u p p o r t e d f u n c t i o n <p3,i(r) = ( 1 r)^_ ( 4 r + 1 ) . W e a g a i n use
a n i n i t i a l scale f a c t o r o f 0.7 for t h e shape p a r a m e t e r e. Since t h e shape p a r a m e t e r e
is e q u a l t o t h e r e c i p r o c a l o f t h e s u p p o r t scale p t h i s means t h a t t h e i n i t i a l s u p p o r t
scale p i is chosen so t h a t t h e ( u n i v a r i a t e ) basic f u n c t i o n is f a i r l y w i d e . Subsequent
. i
284 Meshfree Approximation Methods with MATLAB
0 0 x y 0 o
Fig. 32.3 Slice plots of absolute errors for multilevel interpolants at levels 1, 2, 3 and 4 (top left
to bottom right).
I n T a b l e 32.2 w e l i s t t h e R M S e r r o r s c o m p u t e d o n a 40 x 40 u n i f o r m e v a l u a -
t i o n g r i d along w i t h the percentage of non-zero entries i n the R B F interpolation
m a t r i x a n d t h e c o m p u t e r t i m e r e q u i r e d f o r e a c h i t e r a t i o n . T h e first f o u r m u l t i l e v e l
i n t e r p o l a n t s are s h o w n i n F i g u r e 32.6.
32. Multilevel Iteration 285
Fig. 32.4 Thinned data sets for Beethoven's head. For top left to bottom right: 163, 663, 1163,
1663, 2163, and 2663 points.
Fig. 32.5 Multilevel interpolants to Beethoven data. For top left to bottom right: 163, 663, 1163,
1663, 2163, and 2663 points.
y x y
u n i t y w i t h one v a n i s h i n g m o m e n t ) . R e c a l l t h a t w e c o n s t r u c t e d these f u n c t i o n s i n
E x a m p l e 26.2 s t a r t i n g w i t h t h e i n i t i a l w e i g h t f u n c t i o n ifto(y) = ( l ^/y) + (4-y/y+l).
A s scale p a r a m e t e r w e t a k e T> = 4 0 0 / 4 9 . T h i s c o r r e s p o n d s t o t h e same s c a l i n g as
i n t h e o t h e r e x a m p l e s since e l/(y/T)h) a n d t h e i n i t i a l fill d i s t a n c e for t h e 3 x 3
g r i d is h = 1/2.
I f we c o m p a r e t h e n u m b e r s f r o m t h e t h r e e d i f f e r e n t a p p r o a c h e s l i s t e d i n T a -
bles 3 2 . 2 - 3 2 . 4 w e see t h a t n o n e o f t h e a p p r o x i m a t i o n m e t h o d s y i e l d m o r e a c c u r a t e
results t h a n t h e i n t e r p o l a t i o n m e t h o d . I t is s u r p r i s i n g , however, t h a t t h e a p p r o x i -
m a t e M L S m e t h o d s p e r f o r m b e t t e r t h a n t h e r e g u l a r M L S m e t h o d s . For n o i s y d a t a
t h e a p p r o x i m a t e M L S m e t h o d w o u l d be p r e f e r a b l e .
2
W e now illustrate Rules 1 and 2 w i t h a scattered d a t a f i t t i n g p r o b l e m i n K .
W e use F r a n k e ' s f u n c t i o n (2.2) o n t h e u n i t s q u a r e as o u r t e s t f u n c t i o n . W e t a k e t h e
2
( r a d i a l ) basic f u n c t i o n t o be a m u l t i q u a d r i c <p(r) = y/l + (er) . T h e p o i n t sets Xk
fc 2
are g i v e n b y ( 2 -4- l ) e q u a l l y spaced p o i n t s i n t h e u n i t s q u a r e a n d are therefore
f e
nested w i t h f i l l - d i s t a n c e hx ,a. k = l/2 .
I n a l l o f o u r n u m e r i c a l e x a m p l e s w e l i s t R M S - e r r o r s c a l c u l a t e d o n a fine e v a l u -
a t i o n m e s h o f 40 x 40 u n i f o r m l y spaced p o i n t s i n t h e u n i t s q u a r e .
F o r t h e first e x a m p l e we f i x t h e m u l t i q u a d r i c s h a p e p a r a m e t e r at e 10/3
throughout. T h e e r r o r s a n d r a t e s i n T a b l e 32.5 i n d i c a t e t h e w e l l - k n o w n s p e c t r a l
convergence b e h a v i o r o f m u l t i q u a d r i c s . T h e last r o w i n t h e t a b l e also shows t h a t t h e
p a r a m e t e r e is t o o s m a l l for t h i s p o i n t set a n d t h e m a t r i x is so i l l - c o n d i t i o n e d t h a t
t h e a p p r o x i m a t i o n is s t a r t i n g t o be c o n t a m i n a t e d b y r o u n d o f f e r r o r s . A c c o r d i n g t o
R u l e 1 t h e r e is no difference b e t w e e n u s i n g t h e m u l t i l e v e l a l g o r i t h m a n d a d i r e c t f i t
o n TV p o i n t s . T h i s c a n also be o b s e r v e d n u m e r i c a l l y .
I n order t o illustrate Rule 2 we repeat t h e above example, b u t n o w t a k e e =
V~N/2 (essentially a s t a t i o n a r y a p p r o a c h ) . T h i s t i m e we list w h a t happens w i t h
the multilevel a l g o r i t h m a n d compare this t o the results obtained b y c o m p u t i n g the
32. Multilevel Iteration 289
3 x3 1.802052e-001
5 x5 2.807009e-002 2.6825
9 x9 4.009608e-003 2.8075
17 x 17 3.885488e-005 6.6892
33 x 33 2.294910e-008 10.7254
65 x 65 1.511150e-008 0.6028
multilevel direct
N o t e t h a t , w i t h t h e v a r y i n g p a r a m e t e r e, u p t o 289 p o i n t s t h e d i r e c t a p p r o a c h is
m o r e accurate, b u t t h e n t h e m u l t i l e v e l a p p r o a c h does a b e t t e r j o b . T h i s is d u e t o t h e
fact t h a t t h e m a t r i c e s for t h e denser p o i n t sets b e c o m e i n c r e a s i n g l y i l l - c o n d i t i o n e d
(even w i t h t h e a d j u s t e d e-value) a n d t h e r e f o r e t h e d i r e c t fits w i t h 1089 o r 4225
p o i n t s are l i k e l y t o be i n a c c u r a t e . W i t h t h e m u l t i l e v e l a l g o r i t h m t h e fits o n t h e
finer g r i d s act o n l y as " c o r r e c t i o n s " t o t h e coarse g r i d fits c o m p u t e d e a r l i e r . T h i s
agrees w i t h t h e p h i l o s o p h y o f t h e m u l t i l e v e l a l g o r i t h m , a n d here is w h e r e t h e r i c h e r
f u n c t i o n space p a y s off.
F i n a l l y , i t is also possible t o c o m b i n e t h e fixed level i t e r a t i o n o f t h e p r e v i o u s
c h a p t e r w i t h t h e m u l t i l e v e l i t e r a t i o n o f t h i s c h a p t e r , i.e., we c a n replace t h e i n t e r -
p o l a t i o n steps i n t h e m u l t i l e v e l scheme b y f i x e d level i t e r a t i o n o f a n a p p r o p r i a t e
a p p r o x i m a t i o n m e t h o d . W e d o n o t r e p o r t a n y s u c h e x p e r i m e n t s here.
Chapter 33
Adaptive Iteration
T h e t w o a d a p t i v e a l g o r i t h m s discussed i n t h i s c h a p t e r were b o t h c o n c e i v e d t o y i e l d
an approximate solution to the R B F interpolation problem. H o w e v e r , t h e y have
some s i m i l a r i t y w i t h t h e least squares k n o t i n s e r t i o n a l g o r i t h m o f C h a p t e r 21 as
w e l l as w i t h t h e i t e r a t i v e a l g o r i t h m s o f t h e p r e v i o u s t w o c h a p t e r s . T h e contents
of t h i s c h a p t e r are based m o s t l y o n t h e p a p e r s [ F a u l a n d P o w e l l ( 1 9 9 9 ) ; F a u l a n d
P o w e l l (2000); Schaback a n d W e n d l a n d (2000a); Schaback a n d W e n d l a n d ( 2 0 0 0 b ) ]
a n d t h e b o o k [ W e n d l a n d (2005a)].
II/HA^CO) = 11/ _
^ / + WPf HAT*^)-
r +i
k = r k - V % , fc = 0,l,.... (33.1)
N o w , t h e energy s p l i t t i n g i d e n t i t y w i t h / = r k gives us
H fcllAf*(n) = W k+i\\lr^(Q)
r r
+ Ikfc - r f c + i l l ^ n ) - (33.3)
291
292 Meshfree Approximation Methods with MATLAB
K K
fc=0 k=0
k=0
K
k=0
= IMIA/WW
_
W K+i\\%-^(n)
R
^ ll o|lA^()-
r
T h i s e s t i m a t e shows t h a t t h e sequence o f p a r t i a l s u m s is m o n o t o n e i n c r e a s i n g a n d
b o u n d e d , a n d t h e r e f o r e c o n v e r g e n t even for a p o o r choice o f t h e sets 3 4 - If
w e c a n show t h a t t h e residuals r k converge t o zero, t h e n w e w o u l d have t h a t the
iteratively computed approximation
K K
V k
u +i
K = J2 r k = ^ 2 ( r k - r k + 1 ) = r 0 - r K + 1 (33.4)
k=0 k=0
converges t o t h e o r i g i n a l i n t e r p o l a n t rrj = V*.
W h i l e t h i s r e s i d u a l i t e r a t i o n a l g o r i t h m has some s t r u c t u r a l s i m i l a r i t i e s w i t h t h e
f i x e d level a l g o r i t h m o f C h a p t e r 3 1 w e n o w are c o n s i d e r i n g a w a y t o efficiently
c o m p u t e t h e i n t e r p o l a n t Vf o n some fine set X b y u s i n g a n i t e r a t i o n o n subsets o f
t h e d a t a . E a r l i e r we a p p r o x i m a t e d t h e i n t e r p o l a n t b y i t e r a t i n g a n approximation
method o n t h e f u l l d a t a set, w h e r e a s n o w w e are a p p r o x i m a t i n g t h e i n t e r p o l a n t b y
i t e r a t i n g a n interpolation method o n n e s t e d ( i n c r e a s i n g ) a d a p t i v e l y chosen subsets
of the data.
T h e present m e t h o d also has some s i m i l a r i t i e s w i t h t h e m u l t i l e v e l a l g o r i t h m s
o f C h a p t e r 32. H o w e v e r , n o w w e are i n t e r e s t e d i n c o m p u t i n g t h e i n t e r p o l a n t Vf
o n t h e set X based o n a single f u n c t i o n <&, whereas earlier, o u r f i n a l i n t e r p o l a n t
was t h e r e s u l t o f u s i n g t h e spaces was a n a p p r o p r i a t e l y
scaled v e r s i o n o f t h e basic f u n c t i o n <I>. M o r e o v e r , t h e g o a l i n C h a p t e r 32 was t o
approximate / , not Vf.
I n o r d e r t o p r o v e convergence o f t h e r e s i d u a l i t e r a t i o n , let us assume t h a t w e
c a n f i n d sets o f p o i n t s 34 such t h a t a t step k a t least some f i x e d p e r c e n t a g e o f t h e
energy o f t h e r e s i d u a l is p i c k e d u p b y i t s i n t e r p o l a n t , i.e.,
and therefore
r
\\ k+i\\lr*{n) ^ I M I A M O )
r
- l\\ k\\x*{n) = (l-7)lk*llAV(n)-
r l K
\\r 0 - UKr||JV(fj) = W K\\lf*(n) < ( ~ l) IMIAV*^)-
=/?*(-, y) k
with
(yk,yk)'
T h i s follows i m m e d i a t e l y f r o m t h e u s u a l R B F e x p a n s i o n ( w h i c h consists o f o n l y one
t e r m here) a n d t h e i n t e r p o l a t i o n c o n d i t i o n V^(y ) k r (y ).
k k
A l g o r i t h m 3 3 . 1 . Greedy one-point a l g o r i t h m
Choose s t a r t i n g p o i n t y k X
W h i l e e > t o l do
r f c + i ( a ? i ) = r {xi)
k - P(xi,y ) k
u +i(xi)
k = u {xi) k + p$(xi,y ) k
end
F i n d e = m a x | r A ; + i | a n d t h e p o i n t y +i k w h e r e i t occurs
Increment k = k + 1
end
A M A T L A B i m p l e m e n t a t i o n o f t h e g r e e d y o n e - p o i n t a l g o r i t h m is presented as
Program 33.1. T h e i m p l e m e n t a t i o n is q u i t e s t r a i g h t f o r w a r d u s i n g o u r function
D i s t a n c e M a t r i x i n conjunction w i t h the anonymous function r b f to compute b o t h
^{yk,Vk) ( o n lines 18 a n d 19) a n d <&(xi, y ) k needed for t h e u p d a t e s o f t h e r e s i d u a l
r +i
k a n d t h e a p p r o x i m a t i o n Uk+i o n lines 2 1 - 2 4 . The algorithm demands that
we c o m p u t e t h e residuals r k o n t h e d a t a sites. O n the other hand, the p a r t i a l
a p p r o x i m a n t s Uk t o t h e i n t e r p o l a n t c a n b e e v a l u a t e d a n y w h e r e . I f w e choose t o
d o t h i s also at t h e d a t a sites, t h e n we are r e q u i r e d t o use a p l o t t i n g r o u t i n e t h a t
differs f r o m o u r u s u a l one (such as t r i s u r f built on a triangulation of the data
sites o b t a i n e d w i t h t h e h e l p o f d e l a u n a y n ) . W e i n s t e a d choose t o f o l l o w t h e same
p r o c e d u r e as i n a l l o f o u r o t h e r p r o g r a m s , i.e., t o e v a l u a t e Uk o n a 40 x 40 g r i d o f
e q u a l l y spaced p o i n t s . T h i s has been i m p l e m e n t e d o n lines 2 1 - 2 5 o f t h e p r o g r a m .
N o t e t h a t t h e u p d a t i n g p r o c e d u r e has b e e n v e c t o r i z e d i n M A T L A B a l l o w i n g us t o
a v o i d t h e f o r - l o o p over i i n t h e a l g o r i t h m .
I t is i m p o r t a n t t o realize t h a t we never a c t u a l l y c o m p u t e t h e i n i t i a l r e s i d u a l
rn = Vf. A l l we r e q u i r e are t h e values o f rn o n t h e g r i d X o f d a t a sites. H o w e v e r ,
since Vf\x f\x t h e values ro(xi) are g i v e n b y t h e i n t e r p o l a t i o n d a t a f(xi) (see
line 13 o f t h e c o d e ) . M o r e o v e r , since t h e sets y k are subsets o f X t h e v a l u e r (y )
k k
P r o g r a m 3 3 . 1 . R B F G r e e d y 0 n e P o i n t 2 D .m
7, R B F G r e e d y 0 n e P o i n t 2 D
/o S c r i p t t h a t p e r f o r m s g r e e d y one p o i n t a l g o r i t h m f o r adaptive
% 2D RBF i n t e r p o l a t i o n
% Calls on: DistanceMatrix
33. Adaptive Iteration 295
32 exact = testfunction(epoints(:,1),epoints(:,2));
33 maxerr = n o r m ( u - e x a c t , i n f ) ; r m s _ e r r = n o r m ( u - e x a c t ) / n e v a l ;
34 f p r i n t f ('RMS error: 7.e\n', r m s _ e r r )
35 fprintf('Maximum e r r o r : %e\n', maxerr)
36 f v i e w = [160,20] ; 7, v i e w i n g a n g l e s f o r p l o t
37 PlotSurf(xe,ye,u,neval,exact,maxerr,fview);
38 PlotError2D(xe,ye,u,exact,maxerr,neval,fview);
39 figure; plot(yk(:,1),yk(:,2),'ro')
40 figure; semilogy(maxres,'b');
To i l l u s t r a t e t h e g r e e d y o n e - p o i n t a l g o r i t h m w e p e r f o r m t w o e x p e r i m e n t s . Both
tests use d a t a o b t a i n e d b y s a m p l i n g F r a n k e ' s f u n c t i o n at 16641 H a l t o n p o i n t s i n
2
[0, l ] . H o w e v e r , t h e first t e s t is based o n Gaussians, w h i l e t h e second one uses
inverse m u l t i q u a d r i c s . F o r b o t h tests w e use t h e same shape p a r a m e t e r e = 5.5.
T h i s results i n t h e inverse m u l t i q u a d r i c s h a v i n g a m o r e g l o b a l influence t h a n the
Gaussians. T h i s effect is c l e a r l y e v i d e n t i n t h e f i r s t few a p p r o x i m a t i o n s t o the
i n t e r p o l a n t s i n F i g u r e s 33.2 a n d 33.4.
F i g u r e 33.4, i n p a r t i c u l a r , shows t h a t t h e g r e e d y a l g o r i t h m enforces i n t e r p o l a t i o n
of t h e d a t a o n l y o n t h e m o s t recent set 3 4 (i.e., for t h e o n e - p o i n t a l g o r i t h m s t u d i e d
here o n l y at a single p o i n t ) . I f one w a n t s t o m a i n t a i n t h e i n t e r p o l a t i o n achieved i n
p r e v i o u s i t e r a t i o n s , t h e n t h e sets 3 4 s h o u l d be n e s t e d . T h i s , however, w o u l d have a
significant effect o n t h e e x e c u t i o n t i m e o f t h e a l g o r i t h m since t h e m a t r i c e s at each
step w o u l d increase i n size.
x # Iterations
Fig. 33.1 1000 selected points and residual for greedy one point algorithm with Gaussian R B F s
and N = 16641 data points.
I n o r d e r t o o b t a i n o u r a p p r o x i m a t e i n t e r p o l a n t s w e used a t o l e r a n c e o f 1 0 - 5
a l o n g w i t h a n a d d i t i o n a l u p p e r l i m i t o f kmax=1000 o n t h e n u m b e r o f i t e r a t i o n s . F o r
b o t h tests t h e a l g o r i t h m uses u p a l l 1000 i t e r a t i o n s . T h e final m a x i m u m residual
for Gaussians is maxres = 0.0075, w h i l e for inverse M Q s we have maxres = 0.0035.
I n b o t h cases t h e r e o c c u r r e d several m u l t i p l e p o i n t selections. Contrary to interpo-
33. Adaptive Iteration 297
y x y x
Fig. 33.2 Fits of Franke's function for greedy one point algorithm with Gaussian R B F s and
N = 16641 data points. Top left to bottom right: 1 point, 2 points, 4 points, final fit with 1000
points.
l a t i o n p r o b l e m s based o n t h e s o l u t i o n o f a l i n e a r s y s t e m , m u l t i p l e p o i n t selections
do n o t pose a p r o b l e m here.
O n e a d v a n t a g e o f t h i s v e r y s i m p l e a l g o r i t h m is t h a t n o l i n e a r systems need t o be
solved. T h i s allows us t o a p p r o x i m a t e t h e i n t e r p o l a n t s for l a r g e d a t a sets even for
g l o b a l l y s u p p o r t e d basis f u n c t i o n s , a n d also w i t h s m a l l values o f e ( a n d t h e r e f o r e a n
associated i l l - c o n d i t i o n e d i n t e r p o l a t i o n m a t r i x ) . One should n o t expect t o o m u c h
i n t h i s case, however, as t h e r e s u l t s i n F i g u r e 33.5 s h o w w h e r e we used a v a l u e o f
e = 0.1 for t h e shape p a r a m e t e r . A s w i t h t h e f i x e d level i t e r a t i o n o f a p p r o x i m a t e
M L S a p p r o x i m a n t s based o n flat g e n e r a t i n g f u n c t i o n s , a l o t o f s m o o t h i n g o c c u r s so
t h a t t h e convergence t o t h e R B F i n t e r p o l a n t is v e r y slow.
M o r e o v e r , i n t h e pseudo-code o f t h e a l g o r i t h m m a t r i x - v e c t o r m u l t i p l i c a t i o n s are
not required, either. H o w e v e r , M A T L A B a l l o w s for a v e c t o r i z a t i o n o f t h e f o r - l o o p
w h i c h does r e s u l t i n t w o m a t r i x - v e c t o r m u l t i p l i c a t i o n s .
F o r p r a c t i c a l s i t u a t i o n s , e.g., for s m o o t h r a d i a l basis f u n c t i o n s a n d densely dis-
t r i b u t e d p o i n t s i n X t h e convergence c a n be r a t h e r slow. T h e s i m p l e g r e e d y algo-
r i t h m described above is e x t e n d e d i n [Schaback a n d W e n d l a n d (2000b)] t o a v e r s i o n
t h a t a d a p t i v e l y uses basis f u n c t i o n s o f v a r y i n g scales.
298 Meshfree Approximation Methods with MATLAB
Fig. 33.3 1000 selected points and residual for greedy one point algorithm with I M Q R B F s and
N = 16641 data points.
A n o t h e r i t e r a t i v e a l g o r i t h m was suggested i n [ F a u l a n d P o w e l l ( 1 9 9 9 ) ; F a u l a n d
P o w e l l ( 2 0 0 0 ) ] . F r o m o u r earlier discussions we k n o w t h a t i t is possible t o express
t h e r a d i a l basis f u n c t i o n i n t e r p o l a n t i n t e r m s o f c a r d i n a l f u n c t i o n s Uj, j = 1 , . . . , TV,
i.e.,
V (x)
f = J2f(x> (x).
j
j=l
* i = a*), (33.6)
Fig. 33.4 F i t s of Franke's function for greedy one point algorithm with I M Q R B F s and N = 16641
data points. Top left to bottom right: 1 point, 2 points, 4 points, final fit with 1000 points.
*j(xi) = 6,
jk ieCj. (33.7)
These a p p r o x i m a t e c a r d i n a l f u n c t i o n s are c o m p u t e d i n a pre-processing step.
A s before, i n its simplest f o r m t h e r e s i d u a l i t e r a t i o n c a n be f o r m u l a t e d as
N
ti<>(aO
3= 1
N
u { k + 1
\ x ) = u { k
\ x ) + Y, x
[f( o) - w (ajj)l *J(SB),
(fc)
k = 0,1,....
3= 1
I n s t e a d o f a d d i n g t h e c o n t r i b u t i o n o f a l l a p p r o x i m a t e c a r d i n a l f u n c t i o n s at t h e
same t i m e , t h i s is done i n a t h r e e - s t e p process i n t h e F a u l - P o w e l l a l g o r i t h m . T o t h i s
e n d , we choose i n d e x sets Cj, j = 1 , . . . , Nn, such t h a t Cj C {j, j + . . . , N} while
m a k i n g sure t h a t j Cj. A l s o , i f one w a n t s t o use t h i s a l g o r i t h m t o a p p r o x i m a t e
t h e i n t e r p o l a n t based o n c o n d i t i o n a l l y p o s i t i v e d e f i n i t e f u n c t i o n s o f o r d e r m, then
one needs t o ensure t h a t t h e c o r r e s p o n d i n g centers f o r m a n (m l ) - u n i s o l v e n t set
and append a p o l y n o m i a l t o the local expansion (33.6).
300 Meshfree Approximation Methods with MATLAB
Fig. 33.5 1000 selected points (only 20 of them distinct) and fit of Franke's function for greedy
one point algorithm with flat Gaussian R B F s (e = 0.1) and N = 16641 data points.
k k
N o w , i n t h e first step we define u ^ 0 = u^ \ and then iterate
u {k)
= uf2 + Of >tf
x j = 1 , . . . ,/V - , n (33.8)
with
(33.9)
<*i,*i>A/-(n) = <*j, E 6 a;
j^(- /)>A^(n)
= E ^(*J.*(-> a J
^(r2)
= E bjiVjixt) = bjj
{ V f - u f l ^ j ) ^ ) = (V -u f
{ (fc)
k
\, bje$(;x ))^
e m
tCj
,(fc)
33. Adaptive Iteration 301
= Y b
i * (/(**)-^-ite))
T h e r e f o r e (33.8) a n d (33.9) c a n be w r i t t e n as
uy
l
3
= uf\ + bn ( / ( a * ) - uf\ ( j)
Xi , j = l,...,N-n.
3 3
iec
3
I n t h e second s t e p o f t h e F a u l - P o w e l l a l g o r i t h m t h e r e s i d u a l is i n t e r p o l a t e d o n
t h e r e m a i n i n g n p o i n t s ( c o l l e c t e d v i a t h e i n d e x set * ) . T h u s , we find a f u n c t i o n
i n span{<&(-, Xj) : j G *} such t h a t
t;W(aj ) = / ( * i ) - S L ( a ! < ) ,
i i e T ,
a n d t h e a p p r o x i m a t i o n is u p d a t e d , i.e.,
rf + 1 )
= f( ) Xi - u < * > ( ),+1
Xi i = l,...,N. (33.10)
A l g o r i t h m 33.2. Faul-Powell a l g o r i t h m
W h i l e e > t o l do
For 1 < j < N - n d o
Update
}
= < i + f^E (/(*<) - S?iM
302 Meshfree Approximation Methods with MATLAB
end
Solve t h e i n t e r p o l a t i o n p r o b l e m
F a u l a n d P o w e l l p r o v e t h a t t h i s a l g o r i t h m converges t o t h e s o l u t i o n o f t h e o r i g i n a l
i n t e r p o l a t i o n p r o b l e m . S i m i l a r t o some o f t h e o t h e r a l g o r i t h m s , one needs t o m a k e
sure t h a t t h e residuals are e v a l u a t e d efficiently b y using, e.g., a fast multipole
e x p a n s i o n , fast F o u r i e r t r a n s f o r m , o r c o m p a c t l y s u p p o r t e d functions.
I n i t s m o s t basic f o r m t h e K r y l o v subspace a l g o r i t h m o f F a u l a n d P o w e l l c a n
also be e x p l a i n e d as a d u a l a p p r o a c h t o t h e g r e e d y r e s i d u a l i t e r a t i o n a l g o r i t h m o f
Schaback a n d W e n d l a n d . I n s t e a d o f d e f i n i n g a p p r o p r i a t e sets o f p o i n t s y , k i n the
F a u l a n d P o w e l l a l g o r i t h m one p i c k s c e r t a i n subspaces U k o f t h e n a t i v e space. I n
particular, i f U k is t h e o n e - d i m e n s i o n a l space U k = span{\I/fc} ( w h e r e ty k is a l o c a l
a p p r o x i m a t i o n t o t h e c a r d i n a l f u n c t i o n ) we get t h e a l g o r i t h m d e s c r i b e d above. For
m o r e details see [Schaback a n d W e n d l a n d (2000b)].
W e leave t h e i m p l e m e n t a t i o n o f t h i s a l g o r i t h m t o t h e reader.
Chapter 34
I n C h a p t e r 16 we n o t e d t h a t t h e s y s t e m m a t r i c e s a r i s i n g i n s c a t t e r e d d a t a i n t e r p o l a -
t i o n w i t h r a d i a l basis f u n c t i o n s t e n d t o b e c o m e v e r y i l l - c o n d i t i o n e d as t h e m i n i m a l
s e p a r a t i o n d i s t a n c e qx b e t w e e n t h e d a t a sites x \ , . . . , CCJV, is r e d u c e d . T h e r e f o r e i t
is n a t u r a l t o devise strategies t o p r e v e n t such i n s t a b i l i t i e s b y e i t h e r p r e c o n d i t i o n i n g
t h e system, or b y f i n d i n g a b e t t e r basis for t h e a p p r o x i m a t i o n space we are u s i n g .
T h e f o r m e r a p p r o a c h is s t a n d a r d p r o c e d u r e i n n u m e r i c a l l i n e a r algebra, a n d i n fact
we c a n use a n y o f t h e w e l l - e s t a b l i s h e d m e t h o d s (such as p r e c o n d i t i o n e d conjugate
g r a d i e n t i t e r a t i o n ) t o i m p r o v e t h e s t a b i l i t y a n d convergence o f t h e i n t e r p o l a t i o n
systems t h a t arise for s t r i c t l y p o s i t i v e d e f i n i t e f u n c t i o n s . I n p a r t i c u l a r , t h e sparse
systems t h a t arise i n ( m u l t i l e v e l ) i n t e r p o l a t i o n w i t h c o m p a c t l y s u p p o r t e d radial
basis f u n c t i o n s c a n be solved efficiently w i t h t h e p r e c o n d i t i o n e d c o n j u g a t e gradi-
ent m e t h o d . H o w e v e r , i n o u r i m p l e m e n t a t i o n (see t h e discussion i n S e c t i o n 12.1)
we use M A T L A B ' S s p a r s e f u n c t i o n w h i c h takes a d v a n t a g e o f state-of-the-art direct
m e t h o d s for sparse l i n e a r systems.
T h e second a p p r o a c h t o i m p r o v i n g t h e c o n d i t i o n n u m b e r o f t h e i n t e r p o l a t i o n
s y s t e m , i.e., t h e idea o f u s i n g a m o r e s t a b l e basis, is w e l l k n o w n f r o m u n i v a r i a t e
p o l y n o m i a l a n d spline i n t e r p o l a t i o n . T h e L a g r a n g e basis f u n c t i o n s for u n i v a r i a t e
p o l y n o m i a l i n t e r p o l a t i o n are t h e i d e a l basis i f we are i n t e r e s t e d i n s t a b l y s o l v i n g
t h e i n t e r p o l a t i o n e q u a t i o n s since t h e r e s u l t i n g i n t e r p o l a t i o n m a t r i x is t h e i d e n t i t y
m a t r i x ( w h i c h is c e r t a i n l y m u c h b e t t e r c o n d i t i o n e d t h a n , e.g., t h e Vandermonde
m a t r i x t h a t we get i f we use a m o n o m i a l basis). S i m i l a r l y , 75-splines give rise t o
d i a g o n a l l y d o m i n a n t , sparse s y s t e m m a t r i c e s w h i c h are m u c h easier t o d e a l w i t h
t h a n t h e m a t r i c e s we w o u l d get i f we were t o represent a s p l i n e i n t e r p o l a n t u s i n g
t h e a l t e r n a t i v e t r u n c a t e d p o w e r basis. B o t h o f these e x a m p l e s are s t u d i e d i n g r e a t
d e t a i l i n s t a n d a r d n u m e r i c a l analysis t e x t s (see, e.g., [ K i n c a i d a n d C h e n e y (2002)])
or i n t h e l i t e r a t u r e o n splines (see, e.g., [Schumaker ( 1 9 8 1 ) ] ) . W e w i l l address a n
analogous a p p r o a c h for r a d i a l basis f u n c t i o n s i n S e c t i o n 34.4 b e l o w .
Before we describe a n y o f t h e specialized p r e c o n d i t i o n i n g p r o c e d u r e s for r a d i a l
basis f u n c t i o n i n t e r p o l a t i o n m a t r i c e s we g i v e t w o e x a m p l e s p r e s e n t e d i n t h e e a r l y
RBF p a p e r [Jackson (1989a)] t o i l l u s t r a t e t h e effects o f a n d m o t i v a t i o n for p r e c o n -
d i t i o n i n g i n t h e c o n t e x t o f r a d i a l basis f u n c t i o n s .
303
304 Meshfree Approximation Methods with MATLAB
9 8 76 0
w i t h ^ - c o n d i t i o n n u m b e r c o n d ( A ) 67. I n s t e a d o f s o l v i n g t h e l i n e a r s y s t e m Ac =
T 1 0
y, w h e r e y [ y i , . . . ,yio] E K is a v e c t o r o f g i v e n r e a l n u m b e r s ( d a t a v a l u e s ) ,
we c a n find a s u i t a b l e m a t r i x B t o p r e - m u l t i p l y b o t h sides o f t h e e q u a t i o n s u c h
t h a t t h e s y s t e m is s i m p l e r t o solve. I d e a l l y , t h e n e w s y s t e m m a t r i x BA s h o u l d be
t h e i d e n t i t y m a t r i x , i.e., B s h o u l d be a n approximate inverse o f A. Thus, having
f o u n d a n a p p r o p r i a t e m a t r i x B, we m u s t n o w solve t h e l i n e a r s y s t e m BAc = By.
T h e m a t r i x B is u s u a l l y referred t o as t h e preconditioner o f the linear system. For
t h e m a t r i x A above we c a n choose a p r e c o n d i t i o n e r B as
1 0 0 0 0 0
l -1 h1 0 0 0
2 2
1
0 2 - ]1 \ 0 0
1 0 0
B = 0 0 2
0 0 0 0 - 1 *
0 0 0 0 0 1
T h i s leads t o t h e f o l l o w i n g p r e c o n d i t i o n e d s y s t e m m a t r i x
"0 1 2 . . . 8 9"
0 10 0 0
0 0 1 0 0
BA
0 0 0 1 0
9 8 7 1 0
i n t h e s y s t e m BAc = By. N o t e t h a t BA is a l m o s t a n i d e n t i t y m a t r i x . O n e c a n
easily check t h a t n o w c o n d ( B A ) 45.
T h e m o t i v a t i o n for t h i s choice o f B is t h e f o l l o w i n g . T h e f u n c t i o n (fi(r) = r
or $ ( r r ) = is a f u n d a m e n t a l s o l u t i o n o f t h e L a p l a c i a n A ( = i n the one-
d i m e n s i o n a l case), i.e.
34- Improving the Condition Number of the Interpolation Matrix 305
0 1o o1 3 n
2 2
0 1
A = 1 0
3 | 0
3 2 ^ 0
w i t h cond(>l) 18.15, a n d i f we choose
1 0 0 0
3 I
1 - - 2
0
x
2
1
B = oi 1
5
6 3
_ 4
0 0 3
3
0 0 0 0
based o n second-order b a c k w a r d differences o f t h e p o i n t s i n X, then the precondi-
t i o n e d s y s t e m t o be solved becomes
n I 3 o 1
u
2 2 2
0 10 0 0
c = By.
0 0 10 0
0 0 0 1 0
LI 3 2 I 0
O n c e m o r e , t h i s s y s t e m is a l m o s t t r i v i a l t o solve a n d has a n i m p r o v e d c o n d i t i o n
number of cond(B^4) 8.94.
I l l - c o n d i t i o n i n g o f t h e i n t e r p o l a t i o n m a t r i c e s was i d e n t i f i e d as a serious p r o b l e m
v e r y early, a n d N i r a D y n a l o n g w i t h some o f her c o - w o r k e r s (see, e.g., [ D y n (1987);
D y n (1989); D y n a n d L e v i n ( 1 9 8 3 ) ; D y n et al. ( 1 9 8 6 ) ] ) p r o v i d e d some o f t h e first
p r e c o n d i t i o n i n g s t r a t e g i e s t a i l o r e d e s p e c i a l l y t o r a d i a l basis f u n c t i o n i n t e r p o l a n t s .
For t h e f o l l o w i n g discussion w e c o n s i d e r t h e g e n e r a l i n t e r p o l a t i o n p r o b l e m t h a t
includes p o l y n o m i a l r e p r o d u c t i o n (see C h a p t e r 6 ) . T h e r e f o r e , w e h a v e t o solve t h e
following system of linear equations
" A P~ c y
T
(34.1)
P O d 0
306 Meshfree Approximation Methods with MATLAB
f 2fc-s i g
r 0 r ? s even,
^ = { r ^ , sodd,
s
2k > s, are f u n d a m e n t a l s o l u t i o n s o f t h e k-th i t e r a t e d L a p l a c i a n i n M , i.e.
k
A v(\\x\\) = c5 (x), 0
w h e r e 5n is t h e D i r a c d e l t a f u n c t i o n c e n t e r e d a t t h e o r i g i n , a n d c is a n a p p r o p r i a t e
constant.
2 : L 2
F o r t h e (inverse) m u l t i q u a d r i c s (f(r) = (1 + r ) / , w h i c h are also discussed i n
t h e p a p e r s m e n t i o n e d above, a p p l i c a t i o n o f t h e L a p l a c i a n y i e l d s a s i m i l a r l i m i t i n g
behavior, i.e.
l i m A (p(r)
k
= 0,
r>oo
a n d for r * 0
A cp(r)
k
1.
Fig. 34.1 Dirichlet tesselation (dashed lines) and corresponding Delaunay triangulation (solid
lines) of 25 Halton points (circles).
(2) D i s c r e t i z e t h e L a p l a c i a n o n t h i s t r i a n g u l a t i o n . I n o r d e r t o also t a k e i n t o a c c o u n t
t h e b o u n d a r y p o i n t s D y n , L e v i n a n d R i p p a i n s t e a d use a d i s c r e t i z a t i o n o f a n
2
i t e r a t e d Green's f o r m u l a w h i c h has t h e space I I n _ 1 as i t s n u l l space. The
necessary p a r t i a l d e r i v a t i v e s are t h e n a p p r o x i m a t e d o n t h e t r i a n g u l a t i o n u s i n g
c e r t a i n sets o f vertices o f t h e t r i a n g u l a t i o n . ( t h r e e p o i n t s for first o r d e r p a r t i a l s ,
six for second o r d e r ) .
F i g u r e 3 4 . 1 was c r e a t e d i n M A T L A B u s i n g t h e c o m m a n d s
load('Data2D_25h')
tes = delaunayn(dsites);
triplot(tes,dsites(:,1),dsites(:,2),'k-')
h o l d on
[vx, vy] = voronoi(dsites(:,1),dsites(:,2),tes);
plot(dsites(:,1),dsites(:,2),'ko',vx,vy,'k')
axis([0 1 0 1])
N
(BA) jk = E bjM\\xi - x \\)
k
m
A <p(\\ --XklDixj), j,k = l , . . . , N. (34.2)
i=l
A c t u a l l y , t h e t o p p a r t o f t h e s y s t e m , t h e s q u a r e s y s t e m BAc = By, is s i n g u l a r ,
but i t is s h o w n i n t h e p a p e r [ D y n et al. (1986)] t h a t the a d d i t i o n a l constraints
T
Pc = 0 g u a r a n t e e existence o f a u n i q u e s o l u t i o n . F u r t h e r m o r e , t h e coefficients d
i n t h e o r i g i n a l e x p a n s i o n o f t h e i n t e r p o l a n t Vf c a n be o b t a i n e d b y s o l v i n g
Pd y Ac,
i.e., b y f i t t i n g t h e p o l y n o m i a l p a r t o f t h e e x p a n s i o n t o t h e r e s i d u a l y Ac.
T h e a p p r o a c h j u s t d e s c r i b e d leads t o l o c a l i z e d basis f u n c t i o n s \ I / t h a t are l i n e a r
c o m b i n a t i o n s o f t h e o r i g i n a l basis f u n c t i o n s (p. M o r e precisely,
N
C X X
v (x)
f = Y M \ \ - J)>
t h e j-th a p p r o x i m a t e c a r d i n a l f u n c t i o n is g i v e n as a l i n e a r c o m b i n a t i o n o f t h e basis
310 Meshfree Approximation Methods with MATLAB
N
34 4
*J = E^^H -^H) ( -)
i=l
H e r e pj is a p o l y n o m i a l i n Tl _ m 1 t h a t is u s e d o n l y i n t h e c o n d i t i o n a l l y p o s i t i v e
d e f i n i t e case, a n d t h e coefficients bji satisfy t h e u s u a l c o n d i t i o n s
N
b
E m(^i) = 0 for a 1 1
Pj e n s
m -i- (34.5)
i=l
T h e k e y f e a t u r e i n d e s i g n i n g t h e a p p r o x i m a t e c a r d i n a l f u n c t i o n s is t o h a v e o n l y
a few n <C N coefficients i n ( 3 4 . 4 ) t o be n o n z e r o . I n t h a t case t h e f u n c t i o n s \&j
are f o u n d b y s o l v i n g s m a l l n x n l i n e a r s y s t e m s , w h i c h is m u c h m o r e efficient t h a n
dealing w i t h the original N x N system. F o r e x a m p l e , i n [ B e a t s o n et al. (1999)]
t h e a u t h o r s use n 50 for p r o b l e m s i n v o l v i n g u p t o 10000 centers. T h e r e s u l t i n g
p r e c o n d i t i o n e d s y s t e m is o f t h e s a m e f o r m as t h e e a r l i e r p r e c o n d i t i o n e r ( 3 4 . 2 ) , i.e.,
we n o w have t o solve t h e p r e c o n d i t i o n e d p r o b l e m
(BA)c = By,
\Vj(xi)=5ij, i = l,...,n,
,tx
34- Improving the Condition Number of the Interpolation Matrix 311
A s p o i n t e d o u t at t h e b e g i n n i n g o f t h i s c h a p t e r , a n o t h e r a p p r o a c h t o o b t a i n i n g a
b e t t e r c o n d i t i o n e d i n t e r p o l a t i o n s y s t e m is t o w o r k w i t h a different basis for t h e
a p p r o x i m a t i o n space. W h i l e t h i s idea is i m p l i c i t l y addressed i n t h e p r e c o n d i t i o n i n g
strategies discussed above, w e w i l l n o w m a k e i t o u r p r i m a r y goal t o f i n d a b e t t e r
c o n d i t i o n e d basis for t h e R B F a p p r o x i m a t i o n space. U n i v a r i a t e piecewise linear
splines a n d n a t u r a l cubic splines c a n be i n t e r p r e t e d as r a d i a l basis f u n c t i o n s , and
we k n o w t h a t 73-splines f o r m stable bases for those spaces. T h e r e f o r e , i t s h o u l d be
possible t o generalize t h i s i d e a for o t h e r R B F s .
T h e process o f f i n d i n g a " b e t t e r " basis for c o n d i t i o n a l l y p o s i t i v e d e f i n i t e r a d i a l
basis f u n c t i o n s is closely c o n n e c t e d t o finding t h e r e p r o d u c i n g k e r n e l o f t h e associ-
a t e d n a t i v e space. Since we d i d n o t e l a b o r a t e o n t h e c o n s t r u c t i o n o f n a t i v e spaces
for c o n d i t i o n a l l y p o s i t i v e d e f i n i t e f u n c t i o n s earlier, we w i l l n o w present t h e relevant
formulas w i t h o u t going i n t o any further details. I n p a r t i c u l a r , for p o l y h a r m o n i c
splines we w i l l be able t o find a basis t h a t is i n a c e r t a i n sense homogeneous, and
therefore t h e c o n d i t i o n n u m b e r o f t h e r e l a t e d i n t e r p o l a t i o n m a t r i x w i l l d e p e n d o n l y
on t h e n u m b e r N o f d a t a p o i n t s , b u t not o n t h e i r s e p a r a t i o n d i s t a n c e (c.f. the
discussion i n C h a p t e r 16). T h i s a p p r o a c h was suggested b y B e a t s o n , L i g h t and
B i l l i n g s [Beatson et al. ( 2 0 0 0 ) ] , a n d has i t s r o o t s i n [Sibson a n d Stone ( 1 9 9 1 ) ] .
Let $ be a s t r i c t l y c o n d i t i o n a l l y positive definite kernel of order m, and
X {x\,... ,XN} C O C R s
be a n (m l ) - u n i s o l v e n t set o f centers. T h e n the
r e p r o d u c i n g k e r n e l for t h e n a t i v e space A / * ( f 2 ) is g i v e n b y
M M
pk x pe y Xk Xe> + 34 6
+ E Y, ( ) ( )( > ) ^ptWptty)' ( -)
k=l e=l 1=1
w h e r e t h e p o i n t s {x\,..., X M } c o m p r i s e a n (m l ) - u n i s o l v e n t subset o f X a n d t h e
polynomials p, k k = 1 , . . . , M, f o r m a cardinal basis for Tl _ m 1 o n t h i s subset whose
d i m e n s i o n is M = ( ^ " ^ Y 1
) , i.e.,
T h i s f o r m u l a t i o n o f t h e r e p r o d u c i n g k e r n e l for t h e c o n d i t i o n a l l y p o s i t i v e d e f i n i t e
case also appears i n t h e s t a t i s t i c s l i t e r a t u r e i n t h e c o n t e x t o f kriging (see, e.g.,
[ B e r l i n e t a n d T h o m a s - A g n a n ( 2 0 0 4 ) ] ) . I n t h a t c o n t e x t t h e k e r n e l K is a covariance
k e r n e l associated w i t h t h e g e n e r a l i z e d covariance <. T h e s e t w o kernels give rise t o
the k r i g i n g equations and d u a l k r i g i n g equations, respectively.
A n i m m e d i a t e consequence o f h a v i n g f o u n d t h e r e p r o d u c i n g k e r n e l K is t h a t w e
c a n express t h e r a d i a l basis f u n c t i o n i n t e r p o l a n t t o values o f some f u n c t i o n / g i v e n
on X i n the form
N
c K x x s
V (x)
f = Y i ( ' j ) > x e R .
3= 1
n(x,y) = K(x,y) - x
Y^P^ )P^v)-
e=i
Now, i f y denotes a n y one o f t h e p o i n t s x\,..., XM i n t h e (m l ) - u n i s o l v e n t subset
o f X used i n t h e c o n s t r u c t i o n o f K above, t h e n we h a v e
M M
fc=i e=i
M M
+E Y (') ( )( ' )
pk pe y xk xl
M M
= $(-,y) p x
- Y k(')^( k,y) - $(-,!/) + Y P k
( ' W X k y
> ) = 0
fc=i fc=i
since t h e p o l y n o m i a l s p k are c a r d i n a l o n i r i , . . . , XM, i-e-, o n l y one o f t h e Pk(y) will
"survive".
T h i s m e a n s t h a t t h e f u n c t i o n s K(-, X j ) , j 1 , . . . , N, c a n n o t be used as a basis
o f o u r a p p r o x i m a t i o n space. I n s t e a d we need t o r e m o v e t h e p o i n t s used t o define
t h e c a r d i n a l p o l y n o m i a l s a b o v e f r o m t h e set o f centers used for K. O n c e we d o t h i s
i t t u r n s o u t t h a t t h e m a t r i x C w i t h entries Cij = n(xi, X j ) , i,j = M+l,...,N,is
p o s i t i v e d e f i n i t e , a n d therefore we o b t a i n t h e f o l l o w i n g basis
d [di,..., ^M] , T
a n d t h e r i g h t - h a n d side v e c t o r s y p [/(xi),..., /(XM)] T
and
2/ =
[/(^M+I), i f(xN)] - T
The identity block (cardinality of the p o l y n o m i a l
basis f u n c t i o n s ) i m p l i e s t h a t t h e coefficient v e c t o r d is g i v e n b y
dj = f(xj), j = l,...,M,
a n d therefore t h e s y s t e m ( 3 4 . 8 ) c a n be s o l v e d as
T
Cc = y K - P d. (34.9)
As m e n t i o n e d above, one c a n s h o w t h a t t h e m a t r i x C is s y m m e t r i c a n d p o s i t i v e
definite.
M o s t i m p o r t a n t l y , for p o l y h a r m o n i c splines, t h e ^ - c o n d i t i o n n u m b e r o f t h e m a -
h
t r i x C is i n v a r i a n t u n d e r a u n i f o r m s c a l i n g o f t h e centers, i.e., i f C = (n(hxi, hxj)),
then
h
cond{C ) = cond(C).
T h i s is p r o v e d t o v a r y i n g degrees o f d e t a i l i n t h e p a p e r s [ B e a t s o n et al. (2000);
Iske (2003a)] a n d t h e b o o k [ W e n d l a n d ( 2 0 0 5 a ) ] .
E x a m p l e 3 4 . 3 . T h e s i m p l e s t e x a m p l e is g i v e n b y t h e p o l y h a r m o n i c s p l i n e <p(r) r.
I n t h i s case M = 1 so t h a t t h e o n l y p o l y n o m i a l t e r m is g i v e n b y t h e c o n s t a n t p = 1.
F o r s i m p l i c i t y we use t h e o r i g i n as a s p e c i a l p o i n t . U s i n g these c o n v e n t i o n s w e h a v e
t h e f o l l o w i n g t h r e e r e p r e s e n t a t i o n s o f t h e v a r i o u s kernels:
&{x,y) = \\x-y\\,
K( ,y)
X = \\x-y\\-\\y\\-\\x\\ + l,
Pi(z) = 1 - z x - 22,
p (z)
2 = z ,
x
w h e r e z = (z ,z )x 2 G R. 2
T h e p r o g r a m t p s K . m is c o m p l e t e l y v e c t o r i z e d , i.e., we i n p u t arrays of p o i n t s x
a n d y , a n d c r e a t e t h e e n t i r e m a t r i x w i t h e n t r i e s K(xi, X j ) , i,j 1,..., N (denoted
b y r b f i n t h e p r o g r a m ) . W e assemble t h e m a t r i x a c c o r d i n g t o t h e t e r m s i n ( 3 4 . 6 ) .
On lines 3 a n d 4 w e f i l l t w o m a t r i c e s , p x a n d p y , w h o s e c o l u m n s c o n t a i n t h e values
of the polynomials p , x p 2 a n d ps ( d e f i n e d as s e p a r a t e f u n c t i o n s a t t h e e n d o f t h e
p r o g r a m ) at a l l of the p o i n t s i n x a n d y, respectively. T h e first t e r m o f (34.6), the
m a t r i x <fr(x, y), is assembled o n l i n e 5 w h e r e w e c a l l t h e s u b r o u t i n e t p s .m l i s t e d as
P r o g r a m C . 4 i n A p p e n d i x C . N e x t , o n l i n e s 611 w e a d d t h e n e x t t w o s u m s f r o m
(34.6) s i m u l t a n e o u s l y . T h e d o u b l e s u m is a d d e d t o t h e m a t r i x r b f o n lines 12
17, a n d f i n a l l y t h e t e n o r p r o d u c t p o l y n o m i a l t e r m is c o m p u t e d a n d a d d e d o n lines
18-20.
P r o g r a m 34.1. t p s K . m
% rbf = tpsK(x,y)
% Computes matrix for thin plate spline kernel K with
% linear polynomials cardinal on (0,0), (1,0), (0,1)
% Calls on: tps
1 function rbf = tpsK(x,y)
Define points for cardinal polynomials
2 ppoints = [0 0; 1 0; 0 1];
3 px = [ p l ( x ) p2(x) p3(x)];
4 py = [pl(y) p2(y) p3(y)];
5 r = DistanceMatrix(x,y); rbf = tps(l,r);
6 for k=l:3
7 r = DistanceMatrix(ppoints(k,:),y);
34- Improving the Condition Number of the Interpolation Matrix 315
Since P r o g r a m 3 4 . 1 p r o d u c e s t h e e n t i r e i n t e r p o l a t i o n (or e v a l u a t i o n ) m a t r i x , w e
can use P r o g r a m 2.1 a n d replace lines 13 a n d 14 b y
IM = tpsK(dsites,ctrs);
a n d lines 15 a n d 16 b y
EM = tpsK(epoints,ctrs);
i n o r d e r t o solve t h e i n t e r p o l a t i o n p r o b l e m i n t h i s case.
T h e m a t r i x C is o b t a i n e d i n a s i m i l a r fashion b y u s i n g a p r o g r a m t p s H . m t h a t
is i d e n t i c a l t o t p s K . m e x c e p t t h a t lines 1 8 - 2 0 are r e m o v e d . I n a d d i t i o n , we n e e d t o
remove the corner points ( 0 , 0 ) , ( 1 , 0 ) , and (0,1) f r o m the c t r s and d s i t e s i n the
driver program.
I n the first experiment ( i l l u s t r a t e d i n T a b l e 34.3) t h e p r o b l e m is f o r m u l a t e d o n
2
t h e u n i t s q u a r e [0, l ] . H e r e b o t h t h e n u m b e r o f p o i n t s a n d t h e s e p a r a t i o n d i s t a n c e
v a r y f r o m one r o w i n t h e t a b l e t o t h e n e x t . T h e t h r e e different c o l u m n s l i s t t h e
^ 2 - c o n d i t i o n n u m b e r s o f t h e i n t e r p o l a t i o n m a t r i x for t h e t h r e e different a p p r o a c h e s
mentioned above. W i t h this setup a l l three methods perform comparably.
316 Meshfree Approximation Methods with MATLAB
2
Table 34.3 Condition numbers for different thin plate spline bases on [0, l ]
with increasing number of points and varying separation distance.
I n t h e s e c o n d e x p e r i m e n t ( s h o w n i n T a b l e 3 4 . 4 ) t h e n u m b e r o f p o i n t s is k e p t f i x e d
2
at 5 x 5 e q u a l l y spaced p o i n t s . H o w e v e r , t h e d o m a i n is scaled t o t h e s q u a r e [0, a]
w i t h scale p a r a m e t e r a ( t h i s c a n e a s i l y be d o n e u s i n g t h e s a m e p r o g r a m s as a b o v e
b y i n t r o d u c i n g a scale p a r a m e t e r a t t h e a p p r o p r i a t e places, see also P r o g r a m 3 4 . 2 ) .
T h e effect o f t h i s is t h a t o n l y t h e s e p a r a t i o n d i s t a n c e qx changes f r o m one r o w t o
t h e n e x t i n t h e t a b l e . N o w , c l e a r l y , t h e t w o n e w m e t h o d s s h o w less d e p e n d e n c e o n
the separation distance, w i t h the c o n d i t i o n n u m b e r o f the homogeneous m a t r i x C
b e i n g c o m p l e t e l y i n s e n s i t i v e t o t h e r e - s c a l i n g as c l a i m e d e a r l i e r .
2
Table 34.4 Condition numbers for different thin plate spline bases on [0, a ] with
fixed number of 25 points and varying separation distance.
W e close t h i s s e c t i o n b y p o i n t i n g o u t t h a t I s k e a n c o - w o r k e r s t a k e a d v a n t a g e o f
t h e scale i n v a r i a n c e o f p o l y h a r m o n i c s p l i n e s ( a n d t h i n p l a t e s p l i n e s i n p a r t i c u l a r ) i n
t h e c o n s t r u c t i o n o f a n u m e r i c a l m u l t i s c a l e s o l v e r for t r a n s p o r t p r o b l e m s (see, e.g.,
[ B e h r e n s et al. ( 2 0 0 2 ) ] ) .
I n t h i s s e c t i o n w e p r o v i d e a n e x a m p l e i l l u s t r a t i n g t h e s u r p r i s i n g fact t h a t for p o l y -
h a r m o n i c splines n o t o n l y t h e h o m o g e n e o u s k e r n e l K c a n be u s e d successfully f o r
p o o r l y scaled p r o b l e m s , b u t also t h e s t a n d a r d k e r n e l 3>.
2
E x a m p l e 3 4 . 4 . W e use t h e t h i n p l a t e s p l i n e basic f u n c t i o n <p(r) = r log r and
a scaled v e r s i o n o f F r a n k e ' s t e s t f u n c t i o n t o g e n e r a t e t e s t d a t a o n a 5 x 5 u n i f o r m
34- Improving the Condition Number of the Interpolation Matrix 317
2
g r i d i n t h e square [ 0 , a ] as i n T a b l e 34.4. H o w e v e r , n o w t h e scale p a r a m e t e r a w i l l
- 9 9
range from 1 0 t o 1 0 . W e w i l l present c o n d i t i o n n u m b e r s a n d r o o t - m e a n - s q u a r e
e r r o r s c o m p u t e d o n a 40 x 40 u n i f o r m g r i d for t h e t h r e e different kernels discussed
previously. W e list o n l y t h e M A T L A B code f o r t h e h o m o g e n e o u s case since the
t w o o t h e r p r o g r a m s are v e r y s i m i l a r t o p r e v i o u s ones. T h e f u n c t i o n t p s H . m c a l l e d
b y P r o g r a m 34.2 is a l m o s t t h e same as P r o g r a m 34.1 l i s t e d above. The required
m o d i f i c a t i o n s are n o t e d t h e r e .
M a n y p a r t s o f P r o g r a m 34.2 are f a m i l i a r . However, i n order t o deal w i t h the
k e r n e l K a n d t h e associated m a t r i x C w e need t o define t h e special p o i n t s at w h i c h
t h e c a r d i n a l p o l y n o m i a l s are defined. T h i s is d o n e o n l i n e 9, w h e r e t h e special
p o i n t s are t a k e n as t h r e e corners o f t h e scaled u n i t square. Since t h e k e r n e l is t h e
zero f u n c t i o n w h e n centered at these p o i n t s t h e y need t o be r e m o v e d f r o m t h e set
o f centers. T h i s is a c c o m p l i s h e d o n lines 1 1 , 12 a n d 14. T h e s c a l i n g o f t h e p r o b l e m
h a p p e n s o n lines 8, 9 a n d 13. T h e scale also e n t e r s i n a n u m b e r o f o t h e r places such
as t h e d e f i n i t i o n o f t h e e v a l u a t i o n g r i d o n l i n e 15, c o m p u t a t i o n o f t h e r i g h t - h a n d side
o n lines 1 7 - 1 9 , a n d t h e c o m p u t a t i o n o f t h e e x a c t s o l u t i o n o n l i n e 26. I n c o n t r a s t
t o m o s t o f o u r o t h e r i n t e r p o l a t i o n p r o g r a m s here we c o m p u t e t h e i n t e r p o l a t i o n
a n d e v a l u a t i o n m a t r i c e s w i t h a single s u b r o u t i n e (c.f. t h e calls t o t p s H o n lines 20
a n d 2 2 ) . N o t e t h a t t h e scale p a r a m e t e r a is passed t o t p s H . E q u a t i o n s 34.9 a n d
34.7 for t h e s o l u t i o n a n d e v a l u a t i o n o f t h e i n t e r p o l a n t are i m p l e m e n t e d t o g e t h e r o n
l i n e 25. F i n a l l y , t h e t h r e e c a r d i n a l p o l y n o m i a l s are c o d e d o n lines 3 5 - 4 3 . Since these
p o l y n o m i a l s are defined o n t h e u n i t square t h e y need t o be c a l l e d w i t h re-scaled
a r g u m e n t s (cf. lines 17 a n d 2 3 ) .
P r o g r a m 34.2. RBFInterpolation2DtpsH.m
% RBFInterpolation2DtpsH
V, S c r i p t t h a t performs 2D TPS i n t e r p o l a t i o n w i t h h o m o g e n e o u s k e r n e l
% C a l l s on: tpsH
1 function RBFInterpolation2DtpsH
'/ D e f i n e F r a n k e ' s f u n c t i o n as testfunction
2 f l = @(x,y) 0 . 7 5 * e x p ( - ( ( 9 * x - 2 ) . ~ 2 + ( 9 * y - 2 ) . ~ 2 ) / 4 ) ;
3 f 2 = @(x,y) 0 . 7 5 * e x p ( - ( ( 9 * x + l ) . ~ 2 / 4 9 + ( 9 * y + l ) . ~ 2 / 1 0 ) ) ;
4 f 3 = <3(x,y) 0 . 5 * e x p ( - ( ( 9 * x - 7 ) . ~ 2 + ( 9 * y - 3 ) . ~ 2 ) / 4 ) ;
5 f 4 = <3(x,y) 0 . 2 * e x p ( - ( ( 9 * x - 4 ) . ~ 2 + ( 9 * y - 7 ) . " 2 ) ) ;
6 t e s t f u n c t i o n = @(x,y) fl(x,y)+f2(x,y)+f3(x,y)-f4(x,y);
7 N = 25; g r i d t y p e = 'u';
8 a = le9;
9 ppoints = a*[0 0; 1 0; 0 1] ;
% Load d a t a points
10 name = s p r i n t f ( ' D a t a 2 D _ y o d y , s ' , N , g r i d t y p e ) ; load(name)
% Remove (0,0), (1,0), ( 0 , 1 ) t o work w i t h C m a t r i x
11a r e m o v e = [ f i n d ( d s i t e s ( : , 1 ) = = 0 & d s i t e s ( : , 2 ) = = 0 ) ; . . .
318 Meshfree Approximation Methods with M A T L A B
13 d s i t e s = a * d s i t e s ;
% L e t centers coincide with data s i t e s
14 c t r s = d s i t e s ;
15 n e v a l = 40; g r i d = l i n s p a c e ( 0 , a , n e v a l ) ;
16 [xe,ye] = m e s h g r i d ( g r i d ) ; e p o i n t s = [ x e ( : ) y e ( : ) ] ;
% C r e a t e r i g h t - h a n d s i d e f o r homogeneous problem
17 DP = [ p l ( d s i t e s / a ) p 2 ( d s i t e s / a ) p 3 ( d s i t e s / a ) ] ' ;
18 d = t e s t f u n c t i o n ( p p o i n t s ( : , 1 ) / a , p p o i n t s ( : , 2 ) / a ) ;
19 r h s = t e s t f u n c t i o n ( d s i t e s ( : , 1 ) / a , d s i t e s ( : , 2 ) / a ) - DP'*d;
% Compute i n t e r p o l a t i o n m a t r i x f o r t h e s p e c i a l case of TPS
% n a t i v e space k e r n e l (no need t o add p o l y n o m i a l s )
20 IM = t p s H ( d s i t e s , c t r s , a ) ;
% Compute c o n d i t i o n number of i n t e r p o l a t i o n m a t r i x
0
21 f p r i n t f ('12-condition : /,e\n' , cond(IM))
% Compute e v a l u a t i o n m a t r i x
22 EM = t p s H ( e p o i n t s , c t r s , a ) ;
23 EP = [ p i ( e p o i n t s / a ) p 2 ( e p o i n t s / a ) p 3 ( e p o i n t s / a ) ] ;
24 EM = [EM E P ] ;
V, Compute RBF i n t e r p o l a n t
25 Pf = EM * [ ( I M \ r h s ) ; d ] ;
% Compute e x a c t s o l u t i o n
26 exact = t e s t f u n c t i o n ( e p o i n t s ( : , l ) / a , e p o i n t s ( : , 2 ) / a ) ;
/ Compute e r r o r s on e v a l u a t i o n g r i d
0
27 maxerr = n o r m ( P f - e x a c t , i n f ) ;
28 r m s _ e r r = n o r m ( P f - e x a c t ) / n e v a l ;
29 f p r i n t f ('RMS e r r o r : %e\n' , r m s . e r r )
30 f p r i n t f ( 'Maximum e r r o r : '/,e\n', maxerr)
31 f v i e w = [160,20] ; viewing angles f o r p l o t
32 PlotSurf(xe,ye,Pf,neval,exact,maxerr,fview);
33 PlotError2D(xe,ye,Pf,exact,maxerr,neval,fview);
34 return
% The c a r d i n a l p o l y n o m i a l s
35 f u n c t i o n w = p l ( z )
36 w = 1 - z ( : ,1) - z ( : , 2 ) ;
37 return
38 function w = p2(z)
39 w = z(:,1);
40 return
34- Improving the Condition Number of the Interpolation Matrix 319
41 function w = p3(z)
42 w = z(:,2);
43 return
I n T a b l e 34.5 we l i s t t h e r o o t - m e a n - s q u a r e e r r o r s r e s u l t i n g f r o m t h e t h r e e dif-
ferent i n t e r p o l a t i o n m e t h o d s . T h e s c a l i n g o f t h e d o m a i n w a s chosen m o r e e x t r e m e
t h a n i n T a b l e 34.4 so t h a t t h e s e n s i t i v i t y o f t h e r e p r o d u c i n g k e r n e l K becomes
9
c l e a r l y v i s i b l e . I t s c o n d i t i o n n u m b e r o f t h e i n t e r p o l a t i o n m a t r i x for a 1 0 ~ was
9
5 . 3 5 4 1 3 4 e + 0 1 8 , w h i l e for a = 10 i t was 6.994062e+019. W h i l e b o t h o f these
c o n d i t i o n n u m b e r s are c l e a r l y v e r y h i g h a n d t h e r e f o r e i n d i c a t e t h a t we m i g h t ex-
pect n u m e r i c a l difficulties s o l v i n g a p r o b l e m o n these l e n g t h scales, t h e o t h e r t w o
m e t h o d s ( s t a n d a r d T P S basis f u n c t i o n s a n d t h e h o m o g e n e o u s k e r n e l K ) perform
p e r f e c t l y t h r o u g h o u t t h e e n t i r e r a n g e o f scalings. Moreover, the condition n u m -
bers for t h e s t a n d a r d T P S i n t e r p o l a t i o n m a t r i x are m u c h h i g h e r t h a n for t h e K
9 9
k e r n e l : 7 . 2 9 9 4 0 8 e + 0 2 1 for a = 1 C T , a n d e v e n 2 . 7 4 9 5 3 7 e + 0 3 8 for a = 1 0 . N e v e r -
theless, t h e s t a n d a r d T P S i n t e r p o l a n t does not suffer f r o m i n s t a b i l i t y due t o t h i s
i l l - c o n d i t i o n i n g . T h e same is t r u e for a l l o t h e r tests we h a v e p e r f o r m e d w i t h s t a n -
d a r d p o l y h a r m o n i c spline i n t e r p o l a n t s (such as, e.g., t h e n o r m basic f u n c t i o n ) .
2
Table 34.5 R M S errors for different thin plate spline interpolants on [ 0 , a ] with
fixed number of 25 points and varying separation distance.
IO- 9
2.969478e-002 NAN 2.969478e-002
ICR 6
2.969478e-002 2.970740e-002 2.969478e-002
3
10- 2.969478e-002 2.969478e-002 2.969478e-002
1.0 2.969478e-002 2.969478e-002 2.969478e-002
10 3
2.969478e-002 2.969478e-002 2.969478e-002
6
10 2.969478e-002 2.969218e-002 2.969478e-002
9
10 2.969478e-002 1.207446e+003 2.969478e-002
Chapter 35
V (x)
f = J2 k$(x,
c
x ),
k x e R s
.
k=l
321
322 Meshfree Approximation Methods with MATLAB
I n [ G r e e n g a r d a n d S t r a i n (1991)] s u c h a n a l g o r i t h m w a s d e v e l o p e d , a n d i n [ S t r a i n
(1991)] a m o d i f i c a t i o n was s u g g e s t e d t o cover also t h e case o f v a r i a b l e scales e k as
needed w i t h q u a s i - i n t e r p o l a t i o n a t s c a t t e r e d sites o r w i t h v a r i a b l e shape p a r a m e t e r s .
O n e o f t h e c e n t r a l i n g r e d i e n t s for t h e fast G a u s s t r a n s f o r m are t h e multivariate
Hermite functions h a defined as
2
h (x)
a = (-i)ll> -IMI , e (35.2)
s
w h e r e ct = (a ,...,
x a) s G N is a m u l t i - i n d e x . T h e s e f u n c t i o n s are r e l a t e d t o t h e
multivariate Hermite polynomials H a via
s
2
H {x)
a = \ { H (x ) ad d = e^ h (x) a (35.3)
d=i
h i(x)
n+ = 2xh {x) n 2nh -. (x), n x n = 1, 2 , . . . ,
| x 2
h (x)
0 = e- l , hx(x) = 2xe~W\
w h i c h f o l l o w s i m m e d i a t e l y f r o m ( 3 5 . 3 ) a n d t h e r e c u r s i o n r e l a t i o n for H e r m i t e p o l y -
n o m i a l s (see, e.g., f o r m u l a ( 6 . 1 . 1 0 ) i n [ A n d r e w s et al. ( 1 9 9 9 ) ] ) .
The algorithm of Greengard a n d S t r a i n is based o n t h r e e basic e x p a n s i o n s
w h i c h w e l i s t b e l o w as T h e o r e m s 3 5 . 1 - 3 5 . 3 (see [Greengard a n d S t r a i n (1991);
G r e e n g a r d a n d S u n ( 1 9 9 8 ) ] ) . T h e m a i n effect o f these e x p a n s i o n s is t h e f a c t t h a t t h e
v a r i a b l e s yj a n d x k w i l l b e s e p a r a t e d . T h i s is t h e f u n d a m e n t a l " t r i c k " used w i t h a l l
35. Other Efficient Numerical Methods 323
T h e o r e m 3 5 . 1 . Let IB be the index set denoting the sources x k that lie in a box
B with center XB and side length 1/e, and let yc be the center of the target box
C IR(B) of radius r c containing the targets yj. Then the Gaussian field due to
the sources in B ,
The error E T ( P ) due to truncating the series (35.4) after the p-th order terms
satisfies the bound
a
\ET( )\
P = I E" ~ vc)T I < ( 1 . 0 9 ) ' F < * > - = =
T h i s idea is used i n
324 Meshfree Approximation Methods with MATLAB
B) M y k n
G (yj)
f = E f M e - ^ \
kei B
b a = . E x
f( k) x
((k - x B ) ) a
keiB
The error EH(P) due to truncating the series (35.6) after p-th order terms satisfies
the bound
P+I
=|E -
'). (r) c
~ <* B))
a
\EH{P)\ B H X
I < (1.09) F^
1 er c
ot>p
G f (yj) { BC)
= T,c0Wyi-yc)f- (35.7)
(-1)101
= -pi 2^ <* <*+p ( ( B -
c
/3 b h
X
yc)),
a<p
with b a as in Theorem 35.2. The error ET{P) due to truncating the series (35.7)
after p-th order terms satisfies the bound
P+I
1 er
t^p V(P+1)! c
h, (e(yj - x ) ) = Yl ~ g i ((i e y
~ y c
^ ha
+P
( ( X B
~ y c
^
B
(3>0 P'
35. Other Efficient Numerical Methods 325
N o t e t h a t t h e e r r o r e s t i m a t e s i n t h e o r i g i n a l p a p e r o n t h e fast Gauss t r a n s f o r m
[ G r e e n g a r d a n d S t r a i n (1991)] were i n c o r r e c t . I n t h e m e a n t i m e a n u m b e r o f o t h e r
a u t h o r s have p r o v i d e d a l t e r n a t e e r r o r b o u n d s i n t h e i r p a p e r s (see, e.g., [Baxter
a n d Roussos (2002); F l o r e n c e a n d v a n L o a n (2000); G r e e n g a r d a n d S u n ( 1 9 9 8 ) ;
W e n d l a n d (2004)]).
F o r I D c a l c u l a t i o n s o n t h e o r d e r o f p = 20 t e r m s are r e q u i r e d t o achieve d o u b l e
p r e c i s i o n accuracy. F o r t h e 2 D case one c a n get b y w i t h a s m a l l e r value o f p ( a b o u t
s
15), b u t t h e n u m b e r o f t e r m s is o f course m u c h h i g h e r ( o n t h e o r d e r o f p for
s-dimensional problems).
T h e basic o u t l i n e o f t h e a l g o r i t h m is as follows:
boc =
'
E kei
x
f( *>) (
( X k
~ X
B)) L
, OL<P,
of i t s H e r m i t e e x p a n s i o n ( 3 5 . 6 ) .
(3) For each e v a l u a t i o n b o x C, d e t e r m i n e i t s i n t e r a c t i o n r e g i o n IR(C).
(4) For each e v a l u a t i o n b o x C t r a n s f o r m a l l H e r m i t e expansions i n source boxes
w i t h i n t h e i n t e r a c t i o n r e g i o n IR(C) i n t o a single T a y l o r e x p a n s i o n u s i n g ( 3 5 . 7 ) ,
i.e.,
/9<P
where
C
P = ^-4jj E E BelR(C) at<p
6
^ + / 3 (e(x B - yc))
^'()-(^)-'/E/(*).(^),
K 1
l
w i t h a G a u s s i a n <E> o n N = 2 + 1, 2 , 3 , 4 , . . . , 18, e q u a l l y spaced p o i n t s i n [ 0 , 1 ]
w i t h the mollified test f u n c t i o n
,-(*-2) /42 3 2
(x + l ) / 4 9 1 2
(*-7) /4 1 -(x-4) s
f(x) = 15e^^-D a
+ 6
4 ' 44" " +
" 22" '
e
5'
A l l e r r o r s were c o m p u t e d o n M = 524289 e q u a l l y spaced p o i n t s i n [ 0 , 1 ] . In
t h e " r a t e " c o l u m n we l i s t t h e n u m b e r r a t e = l n ( e ^ _ i / e ^ ) / l n 2 c o r r e s p o n d i n g t o t h e
T&te
e x p o n e n t i n t h e 0(h ) n o t a t i o n . O t h e r p a r a m e t e r s w e r e T> = 4, a n d t h e d e f a u l t
values for t h e FGT code ( i . e . , R = 0 . 5 ) . A l l t i m e s w e r e m e a s u r e d i n seconds.
direct fast
w i t h g e n e r a t i n g f u n c t i o n <& w e r e q u i r e t h e m u l t i v a r i a t e T a y l o r e x p a n s i o n o f <I> a b o u t
s
a p o i n t ZQ R , i.e.,
*(*) = E D ^ ( z ) \ z = Z 0
{ z
' ^ r
, (35.9)
a>0
and let yc be the center of the target box C containing an evaluation point yj. Then
the quasi-interpolant due to sources in B
Q?\vi) E = HxkMyj-Vk)
kei B
oc>0
where
dry t ^ l . ^ f(x )T (y ,x )
k a c k
a!
kei B
withT (y ,x )
a c k = (-l)WD$(z)\ _ . z=yc Xk
Q f (yj){
)
= T , * ( y - y c ) j
a
,
a>0
where
E f{*k)T {y ,x ). a c k
cx\
kei B
E x a m p l e 3 5 . 1 . I f we t a k e 3>(cc) = e ^ then
T (y ,x )
a c k = h (yc a - x) k = h (xk a - yc),
a n d T h e o r e m 35.4 is e q u i v a l e n t t o T h e o r e m 3 5 . 1 g i v e n a b o v e .
W e c a n see t h a t t h e T a y l o r e x p a n s i o n has a l l o w e d us t o s e p a r a t e t h e e v a l u a t i o n
p o i n t s yj from the data points x . k
fc6/ B tx>0
| o t | Q :
U s i n g t h e a b b r e v i a t i o n T (y ,x ) a 3 B = (-l) iP $(2:)| 2 ; = : y ._
j : C s w e c a n reverse t h e
r o l e o f t h e T a y l o r coefficients a n d t h e p o l y n o m i a l s t o w r i t e t h i s as
6 r
Q/ (Wj) = Z ) ( f i , a 5 B ) ,
B)
<x>0
with
& a = x a
a! ^ f ( k ) ( x k ~ x B ) .
- 2
E x a m p l e 3 5 . 2 . U s i n g $(x) = e "*" t h i s is e q u i v a l e n t t o T h e o r e m 35.2.
that lie in a box B with center x B , and let yc be the center of the target box C
containing y.
3 Then a fast summation formula for the quasi-interpolant
N
Qfivj) = ^2f(xk)$(yj - x k )
k=l
where
(-1)1^1 ^ ,
C
P = m 2^ 2^T B(yc,x )b ,
a+ B a
T B(yc,x )
a+ B = (l)\ a + f 3
\D a + ( 3
<!<>(z)\ =y -. z c X B , and the moments b a are as in
Theorem 35.5.
Qfto) = E /(**)E ( - i ) M T
( y
' " B )
*
B kl B >0
3<Q
= E E ( - u | c
" ^ f e c , s s ) E(-i) : 2v^ >
< w(>,
V
f
,c
<*>0 B /3<a
E / ( ^ ) ^ ^ -
I n fact, we c a n i n t r o d u c e t h e m o m e n t s o f T h e o r e m 35.5 a n d w r i t e
V
a>0 B /3<a
where
6
0 =
E f ( x
k ) ( x
k - XB) - 13
p
' k e i B
[ H J
Oi<p B B<cx '
U s i n g t h e fact t h a t
a b a 3 = b a a a = b a a
E E ~ E E E E <*+0'
ct <p B<cx o;<p ct</3<p a<p c*+/3<p
w h i c h c a n be v e r i f i e d b y a s i m p l e r e a r r a n g e m e n t o f t h e s u m m a t i o n s a n d a n i n d e x
transformation, we o b t a i n (interchanging the role of a a n d (3) t h e f o l l o w i n g fast
summation formula:
| a |
G/(i/i)E E (-i) 4iE(- ) 1 | o t + / 3 r
' +/3(yc,a:B)6c,(yi-yc) . / 3
0<pa+3<p B
T h i s is e q u i v a l e n t t o t h e s t a t e m e n t o f t h e t h e o r e m .
- 3 3 2
E x a m p l e 3 5 . 3 . U s i n g $(cc) = e " " T h e o r e m 35.6 is a l m o s t e q u i v a l e n t t o T h e o -
r e m 35.2. H o w e v e r , o u r a l t e r n a t e f o r m u l a is m o r e efficient since o n l y H e r m i t e f u n c -
t i o n s u p t o o r d e r p are r e q u i r e d (as o p p o s e d t o o r d e r 2p i n t h e Greengard/Strain
v e r s i o n ) . T h i s g a i n is a c h i e v e d b y u s i n g t h e b i n o m i a l t h e o r e m i n s t e a d o f a second
T a y l o r e x p a n s i o n . T h e H e r m i t e series e x p a n s i o n used i n t h e t r a d i t i o n a l fast Gauss
t r a n s f o r m is e q u i v a l e n t t o a T a y l o r e x p a n s i o n .
35. Other Efficient Numerical Methods 331
F i n a l l y , a n o t h e r m e t h o d c o m m o n l y used t o d e a l w i t h large c o m p u t a t i o n a l p r o b l e m s
is t h e domain decomposition method. D o m a i n d e c o m p o s i t i o n is f r e q u e n t l y imple
m e n t e d o n p a r a l l e l c o m p u t e r s i n o r d e r t o speed u p t h e c o m p u t a t i o n . A s t a n d a r d
reference (based m o s t l y o n f i n i t e difference a n d f i n i t e element m e t h o d s ) is t h e b o o k
b y S m i t h , B j 0 r s t a d a n d G r o p p [ S m i t h et al. ( 1 9 9 6 ) ] . F o r r a d i a l basis f u n c t i o n s
t h e r e is a recent p a p e r b y B e a t s o n , L i g h t a n d B i l l i n g s [ B e a t s o n et al. ( 2 0 0 0 ) ] .
T h e m a i n a i m o f t h e p a p e r [ B e a t s o n et al. (2000)] is t o solve t h e r a d i a l basis
f u n c t i o n i n t e r p o l a t i o n p r o b l e m discussed m a n y t i m e s i n p r e v i o u s c h a p t e r s . I n p a r -
t i c u l a r , a so-called multiplicative Schwarz a l g o r i t h m ( w h i c h is analogous t o Gauss-
Seidel i t e r a t i o n ) is presented, a n d l i n e a r convergence o f t h e a l g o r i t h m is p r o v e d . A
s e c t i o n w i t h n u m e r i c a l e x p e r i m e n t s r e p o r t s r e s u l t s for a n additive Schwarz method
( w h i c h is analogous t o J a c o b i i t e r a t i o n ) .
I n p a r t i c u l a r , t h e a u t h o r s i m p l e m e n t e d p o l y h a r m o n i c r a d i a l basis f u n c t i o n s a n d
used t h e scale i n v a r i a n t basis discussed i n S e c t i o n 34.4.
T h e classical a d d i t i v e Schwarz a l g o r i t h m is u s u a l l y discussed i n t h e context
o f p a r t i a l d i f f e r e n t i a l e q u a t i o n s , a n d i t is k n o w n t h a t one s h o u l d a d d a coarse level
c o r r e c t i o n i n o r d e r t o ensure convergence a n d t o f i l t e r o u t some o f t h e l o w - f r e q u e n c y
o s c i l l a t i o n s (see, e.g., [ S m i t h et al. ( 1 9 9 6 ) ] ) .
I n [Beatson et al. (2000)] a t w o - l e v e l a d d i t i v e a l g o r i t h m for i n t e r p o l a t i o n p r o b -
lems was presented. O n e b e g i n s b y s u b d i v i d i n g t h e set o f i n t e r p o l a t i o n p o i n t s X
i n t o M smaller sets X{, i = 1 , . . . , M, whose p a i r w i s e i n t e r s e c t i o n is n o n - e m p t y . The
p o i n t s t h a t b e l o n g t o one set Xi o n l y are c a l l e d inner points o f Xi. Those points
i n t h e i n t e r s e c t i o n o f m o r e t h a n one set need t o be assigned i n some w a y as i n n e r
p o i n t s t o o n l y one o f t h e subsets Xi so t h a t t h e c o l l e c t i o n o f a l l i n n e r p o i n t s y i e l d s
t h e e n t i r e set X. T h i s c o r r e s p o n d s t o t h e c o n c e p t o f overlapping domains. O n e also
needs t o choose a coarse g r i d y t h a t c o n t a i n s p o i n t s f r o m a l l o f t h e i n n e r p o i n t sets.
I n t h e setup phase o f t h e a l g o r i t h m t h e r a d i a l basis f u n c t i o n i n t e r p o l a t i o n m a t r i -
ces for t h e smaller p r o b l e m s o n each o f t h e subsets Xi, i = 1 , . . . , M, are c o m p u t e d
a n d f a c t o r e d . A t t h i s p o i n t one c a n use t h e h o m o g e n e o u s basis o f S e c t i o n 34.4 t o
ensure n u m e r i c a l s t a b i l i t y . N o w t h e a l g o r i t h m proceeds as follows:
332 Meshfree Approximation Methods with MATLAB
Algorithm 35.2.
end
Make c orthogonal to Tl _ .
m l
I n t e r p o l a t e t o r\ o n t h e coarse g r i d y u s i n g a n R B F e x p a n s i o n u . 2
U p d a t e u < u + u\ + u . 2
R e - e v a l u a t e t h e g l o b a l r e s i d u a l r = / u o n t h e w h o l e set X
end
a l i n e a r l y i n d e p e n d e n t set o f c o n t i n u o u s l i n e a r f u n c t i o n a l s a n d / is some ( s m o o t h )
d a t a f u n c t i o n . For e x a m p l e , A^ c o u l d d e n o t e p o i n t e v a l u a t i o n at t h e p o i n t X i a n d
t h u s y i e l d a L a g r a n g e i n t e r p o l a t i o n c o n d i t i o n , or i t c o u l d d e n o t e e v a l u a t i o n o f some
d e r i v a t i v e at t h e p o i n t X \ . H o w e v e r , we a l l o w t h e set A t o c o n t a i n m o r e g e n e r a l
f u n c t i o n a l s such as, e.g., l o c a l i n t e g r a l s . T h i s k i n d o f p r o b l e m was r e c e n t l y s t u d i e d i n
[Beatson a n d L a n g t o n (2006)]. F u r t h e r m o r e , we stress t h a t t h e r e is n o a s s u m p t i o n
t h a t requires t h e d e r i v a t i v e s t o be i n consecutive o r d e r as is u s u a l l y t h e case for
333
334 Meshfree Approximation Methods with MATLAB
p o l y n o m i a l or spline-type H e r m i t e i n t e r p o l a t i o n problems.
W e t r y t o find a n i n t e r p o l a n t o f t h e f o r m
N
^/(*) = $>^(ll*ll), ^ r , (36.i)
KVf^Xif, i = 1,..., N.
a n d r e q u i r e i t t o satisfy
KV f = Xif, i = l,...,N.
A =X Xfy,
ij i i,j = l , . . . , i V , (36.3)
T
a n d r i g h t - h a n d side f \ [Xif,..., Ajv/] .
I n t h e references m e n t i o n e d at t h e b e g i n n i n g o f t h i s c h a p t e r i t is s h o w n t h a t
A is n o n - s i n g u l a r for t h e same classes o f cp t h a t w e r e a d m i s s i b l e for s c a t t e r e d d a t a
i n t e r p o l a t i o n i n our earlier chapters.
N o t e t h a t w h e n w e are a s s e m b l i n g t h e i n t e r p o l a t i o n m a t r i x A t h e f u n c t i o n a l s A
act o n (p b o t h as a f u n c t i o n o f t h e first v a r i a b l e as w e l l as t h e second v a r i a b l e . T h i s
2 k k
i m p l i e s t h a t we need t o use C functions i n order t o interpolate C d a t a . T h i s is
t h e p r i c e we need t o p a y t o e n s u r e i n v e r t i b i l i t y o f A.
I t is i n t e r e s t i n g t o n o t e t h a t t h e effect o f t h e d e r i v a t i v e a c t i n g o n t h e second
v a r i a b l e ( i . e . , t h e c e n t e r ) o f <p ( w h i c h leads t o a s i g n change for d e r i v a t i v e s o f o d d
orders) was n o t t a k e n i n t o a c c o u n t i n t h e e a r l y p a p e r [ H a r d y ( 1 9 7 5 ) ] , a n d t h u s his
i n t e r p o l a t i o n m a t r i x is n o t s y m m e t r i c .
I t s h o u l d be p o i n t e d o u t t h a t t h e f o r m u l a t i o n i n (36.2) is v e r y g e n e r a l a n d goes
c o n s i d e r a b l y b e y o n d t h e s t a n d a r d n o t i o n o f H e r m i t e i n t e r p o l a t i o n ( w h i c h refers t o
36. Generalized Hermite Interpolation 335
Vf{x) = Y, M\\*-t\\)*
c
x
^ s
-
3= 1
However, i n t h i s case t h e i n t e r p o l a t i o n m a t r i x w i l l n o t be s y m m e t r i c a n d m u c h m o r e
difficult t o analyze t h e o r e t i c a l l y . I n fact, t h e a p p r o a c h j u s t suggested is f r e q u e n t l y
used for t h e s o l u t i o n o f e l l i p t i c p a r t i a l d i f f e r e n t i a l e q u a t i o n s (see t h e d e s c r i p t i o n
of K a n s a ' s m e t h o d i n C h a p t e r 3 8 ) , a n d i t is k n o w n t h a t for c e r t a i n c o n f i g u r a t i o n s
o f t h e c o l l o c a t i o n p o i n t s a n d c e r t a i n d i f f e r e n t i a l o p e r a t o r s t h e s y s t e m m a t r i x does
indeed become singular.
T h e q u e s t i o n o f w h e n t h e f u n c t i o n a l s i n A are l i n e a r l y i n d e p e n d e n t is n o t ad-
dressed i n m o s t papers o n t h e s u b j e c t . However, the b o o k [Wendland (2005a)]
contains t h e f o l l o w i n g reassuring t h e o r e m t h a t covers b o t h H e r m i t e i n t e r p o l a t i o n
a n d c o l l o c a t i o n solutions o f P D E s .
s 2k s
T h e o r e m 3 6 . 1 . Suppose that < G L i ( R ) f l C (M. ) is a strictly positive definitek-
a ( , )
ernel. If the functionals Xj = ( 5 j ; . o D , j = 1 , . . . , N, with multi-indices \a^\ < k
are pairwise distinct, meaning that ct^ ^ if Xj = for different
X j ^ i, then
S
they are also linearly independent over the native space A / $ ( R ) .
I n t h e t h e o r e m above t h e f u n c t i o n a l 5 . X denotes p o i n t e v a l u a t i o n at t h e p o i n t
X j , a n d t h e kernel $ is r e l a t e d t o cp as usual, i.e., <fr(cc, ) = cp(\\x | | ) . L i k e m o s t
results o n s t r i c t l y p o s i t i v e definite f u n c t i o n s , t h i s t h e o r e m c a n also be generalized
t o t h e s t r i c t l y c o n d i t i o n a l l y p o s i t i v e definite case.
a d a p t i v e least squares a p p r o x i m a t i o n s h o u l d be r e p l a c e d b y a p p r o p r i a t e d i r e c t i o n a l
d e r i v a t i v e s o f one o f t h e basis f u n c t i o n s .
W e n o w present a t h e o r e t i c a l j u s t i f i c a t i o n for t h i s o b s e r v a t i o n based o n a n a n a l -
ysis o f a o n e - d i m e n s i o n a l e x a m p l e . A m o r e g e n e r a l a n a l y s i s i n v o l v i n g h i g h e r d e r i v a -
t i v e s a n d h i g h e r - d i m e n s i o n a l spaces w o u l d be o f t h e same flavor u s i n g t h e m u l t i v a r i -
ate T a y l o r t h e o r e m . W e discuss i n t e r p o l a t i o n t o f u n c t i o n values a n d first d e r i v a t i v e s
a t g i v e n p o i n t s o n t h e r e a l l i n e u s i n g r a d i a l basis f u n c t i o n s .
To show h o w one g e n e r a l s u b - b l o c k i n t h e H e r m i t e m a t r i x relates t o a n associated
b l o c k o f a L a g r a n g e m a t r i x , i t w i l l suffice t o a n a l y z e t h e s u b - b l o c k o f t h e L a g r a n g e
i n t e r p o l a t i o n m a t r i x c o r r e s p o n d i n g t o t w o p a i r s o f n e a r b y p o i n t s . L e t these p o i n t s
be Xi, Xi + Ax, and / + A for some indices i a n d j a n d some s m a l l distances
Ax a n d A . F u r t h e r m o r e , l e t t h e r a d i a l f u n c t i o n b e o f t h e f o r m ip <p(\x
x, K. W e also assume (p is d i f f e r e n t i a b l e a t t h e o r i g i n . I n the proof of the
f o l l o w i n g l e m m a we m a k e use o f t h e f o l l o w i n g i d e n t i t i e s , w h i c h are s t r a i g h t f o r w a r d
applications of the univariate Taylor theorem
where M L is the part of the Lagrange matrix corresponding to the basis functions
centered at j and + A interpolating to values at Xi and Xi + Ax, i.e.,
I) (&+AOI)
_cp{\(xi + Ax) - 0 1 ) <p(\(xi + Ax) - + AOI)
M H
cp(\xi-^\) v(l*i-(&+A0l)
det M L = Ax
&<p(\xi - 61) + O(Ax) <p(\Xi - (0 + A)|) + O(Ax)
T h i s t e c h n i q u e is c o m m o n l y used w h e n a n a l y z i n g s i g n p r o p e r t i e s o f H e r m i t e m a t r i -
ces (see, e.g., [ S c h u m a k e r ( 1 9 8 1 ) ] ) . N o w w e r e p e a t t h i s process w i t h (36.5) a n d t h e
36. Generalized Hermite Interpolation 337
second c o l u m n o f M L t o get
detM L = AzAd; x
a n d t h u s t h e s t a t e m e n t follows.
J^CjX^cpdlx
7= 1
J
n N
Y.cjfiwx - fcii)+ E
j=n+l
n
dip
E^H*
J'=l
~ u)- E j'=n+l
A f t e r e n f o r c i n g t h e i n t e r p o l a t i o n c o n d i t i o n s t h e s y s t e m m a t r i x is g i v e n b y
A At
A =
A x Ax
with
dip
{A )ij
x i = n + l,...,N, j = l, ,n,
dx
2
d <p
{A )ij
x
dx 2 (ll*i-U)> i,3 = n + 1 , . . - , N.
N o t e t h a t t h e t w o b l o c k s A$ a n d A x are i d e n t i c a l p r o v i d e d t h e d a t a sites a n d
centers coincide since i n t h i s case t h e s i g n change d u e t o d i f f e r e n t i a t i o n w i t h respect
t o t h e second v a r i a b l e i n A^ is c a n c e l l e d b y t h e i n t e r c h a n g e o f t h e roles o f X i a n d
j when compared t o A . x H e r e one needs t o realize t h a t t h e p a r t i a l d e r i v a t i v e o f <p
w i t h respect t o t h e c o o r d i n a t e x w i l l a l w a y s c o n t a i n a l i n e a r f a c t o r i n x, i.e., (for
338 Meshfree Approximation Methods with MATLAB
2 2
t h e 2 D e x a m p l e c o n s i d e r e d h e r e ) c/?(||ai||) = <p(r) = ip(y/'x + y ), so t h a t b y t h e
chain rule
|^>(ll*||) = |:V(r)^r(x,y)
d x
2
dr y/ 2x + y
= ivrf (36.6)
2 2
since r = ||cc|| = \/x + y. T h i s a r g u m e n t generalizes for a n y o d d - o r d e r d e r i v a t i v e .
N o t e t h a t t h e m a t r i x A is also s y m m e t r i c f o r e v e n - o r d e r d e r i v a t i v e s . F o r e x a m -
ple, one c a n easily v e r i f y t h a t
(
2 2 d
d / us 1
i d 2
, s V , A
2 2 2
dx r \ dr r dr
W e n o w i l l u s t r a t e t h e s y m m e t r i c a p p r o a c h t o H e r m i t e i n t e r p o l a t i o n w i t h a set o f
n u m e r i c a l e x p e r i m e n t s for f i r s t - o r d e r H e r m i t e i n t e r p o l a t i o n (i.e., to positional and
g r a d i e n t d a t a ) i n 2 D u s i n g t h e M A T L A B p r o g r a m R B F H e r m i t e _ 2 D . m l i s t e d b e l o w as
P r o g r a m 3 7 . 1 . Since d e r i v a t i v e s o f b o t h t h e R B F s a n d t h e test f u n c t i o n need t o be
i n c l u d e d i n t h e p r o g r a m w e use t h e f u n c t i o n
_ t a n h ( 9 ( y - x)) + 1
J y )
^ ~ tanh(9) + l
w h i c h has f a i r l y s i m p l e p a r t i a l d e r i v a t i v e s (see lines 9 - 1 0 o f t h e p r o g r a m ) t o generate
t h e d a t a . T h e R B F used i n t h i s set o f e x p e r i m e n t s is t h e m u l t i q u a d r i c w i t h shape
p a r a m e t e r e = 6.
W e c o m p a r e four different p r o b l e m s :
T h e s t a n d a r d L a g r a n g e i n t e r p o l a n t s were c o m p u t e d v i a P r o g r a m 2.1 w i t h t h e
r e q u i r e d m o d i f i c a t i o n o f t h e R B F a n d test f u n c t i o n d e f i n i t i o n s , i.e., l i n e 1 is r e p l a c e d
by
1 r b f = @(e,r) s q r t ( l + ( e * r ) . ~ 2 ) ; ep = 6 ;
2 t e s t f u n c t i o n = @(x,y) ( t a n h ( 9 * ( y - x ) ) + l ) / ( t a n h ( 9 ) + l ) ;
T h e e x p e r i m e n t s w i t h L a g r a n g e i n t e r p o l a t i o n a t c l u s t e r e d d a t a sites w e r e ac-
c o m p l i s h e d b y t h e same p r o g r a m b y a d d i n g t h e f o l l o w i n g code b e t w e e n lines 8 a n d
9 i n Program 2.1:
339
340 Meshfree Approximation Methods with MATLAB
q = 0.1/(sqrt(N)-l);
grid = linspace(0,1,sqrt(N));
s h i f t e d = l i n s p a c e ( q , 1 + q , s q r t ( N ) ) ; s h i f t e d ( e n d ) = 1-q;
[xcl.ycl] = meshgrid(shifted,grid);
[xc2,yc2] = meshgrid(grid,shifted);
dsites = [dsites; x c l ( : ) y c l ( : ) ; xc2(:) yc2(:)];
1
1
f*" -8" -8* " i
% 8o 8o 8o
0.6
y iio 8o 8o 8o
0.4
! 8o 8o 8o o
0.2
oft -8e-
0.2 0.4 0.6 0.8
x
Fig. 37.1 Clustered point sets with N = 25 basic data points. Cluster size h/10 (left) and cluster
size h/100 (right).
4 dxxrbf = @(e,r,dy) e ~ 2 * ( l + ( e * d y ) . ~ 2 ) . / ( l + ( e * r ) . ~ 2 ) . ~ ( 3 / 2 ) ;
6 dyyrbf = @(e,r,dx) e~2*(l+(e*dx).~2)./(l+(e*r).~2)."(3/2);
H e r e dx a n d dy d e n o t e n o n - r a d i a l difference t e r m s o f t h e x or y - c o m p o n e n t s , re-
s p e c t i v e l y (see, e.g., (36.6)). W e choose t h e f o r m e r r e p r e s e n t a t i o n since for m a n y
o t h e r basic f u n c t i o n s these second-order p a r t i a l s are m o r e n a t u r a l l y expressed i n
t e r m s o f t h e differences o f t h e v a r i a b l e o f d i f f e r e n t i a t i o n (i.e., dxxrbf is expressed
i n t e r m s o f x-differences, etc.).
Since t h e d e r i v a t i v e s o f t h e basic f u n c t i o n n o w also c o n t a i n t h e difference t e r m s
m e n t i o n e d above, we need a n o t h e r subroutine that computes m a t r i c e s o f differ-
ences o f p o i n t c o o r d i n a t e s . T h i s s u b r o u t i n e is c a l l e d D i f f e r e n c e M a t r i x . m (see
P r o g r a m 37.2), a n d i t is b u i l t a n a l o g o u s t o P r o g r a m 1.1 (DistanceMatrix.m). T h u s ,
o n lines 17-22 o f P r o g r a m 37.1 w e c o m p u t e n o t o n l y d i s t a n c e m a t r i c e s o f d a t a sites
a n d centers ( o r e v a l u a t i o n p o i n t s a n d c e n t e r s ) , b u t also t h e c o r r e s p o n d i n g difference
37. RBF Hermite Interpolation in MATLAB 341
matrices. These three matrices are then required when we evaluate the R B F and its
partials to obtain the building blocks of the interpolation and evaluation matrices
(see lines 25-35). Note the minus signs used with the blocks in columns 2 and 3 of
the block matrices IM and EM on lines 31 and 35. They reflect differentiation of the
basic function with respect to its second variable (c.f. (36.2) and (36.3)).
The data are generated by sampling the test function and its derivatives (see
lines 8-10, and line 23). Evaluation of the interpolant, error computation and
rendering are exactly the same as in earlier programs.
'/. RBFHermite_2D
% S c r i p t t h a t performs f i r s t - o r d e r 2D RBF Hermite i n t e r p o l a t i o n
% C a l l s on: D i s t a n c e M a t r i x , D i f f e r e n c e M a t r i x
% Define RBF and i t s d e r i v a t i v e s
1 r b f = @(e,r) s q r t ( l + ( e * r ) . "2) ; 7, MQ RBF
2 dxrbf = @(e,r,dx) dx*e~2./sqrt ( l + ( e * r ) . ""2) ;
3 dyrbf = @(e,r,dy) d y * e ~ 2 . / s q r t ( l + ( e * r ) . ~ 2 ) ;
4a dxxrbf = @(e,r,dx) e ~ 2 * ( l + ( e * r ) . ~ 2 - ( e * d x ) . ~ 2 ) . / . . .
4b (l+(e*r).~2).~(3/2);
5 dxyrbf = @(e,r,dx,dy) - e " 4 * d x . * d y . / ( l + ( e * r ) . " 2 ) . " ( 3 / 2 ) ;
6a dyyrbf = @(e,r,dy) e~2*(1+(e*r)."2-(e*dy)."2)./...
6b (l+(e*r)."2).~(3/2);
7 ep = 6;
% Define t e s t f u n c t i o n and i t s d e r i v a t i v e s
8 t f = (x,y) ( t a n h ( 9 * ( y - x ) ) + l ) / ( t a n h ( 9 ) + l ) ;
9 tfDx = @(x,y) 9 * ( t a n h ( 9 * ( y - x ) ) . ~ 2 - l ) / ( t a n h ( 9 ) + l ) ;
10 tfDy = @(x,y) 9 * ( l - t a n h ( 9 * ( y - x ) ) . ~ 2 ) / ( t a n h ( 9 ) + l ) ;
5
11 N = 289; g r i d t y p e = u ' ;
12 neval = 40;
% Load data p o i n t s
0
13 name = s p r i n t f ( 'Data2D_y d / s' ,N,gridtype) ; load(name)
o 0
14 c t r s = d s i t e s ;
'/, Create n e v a l - b y - n e v a l e q u a l l y spaced e v a l u a t i o n l o c a t i o n s
% i n t h e u n i t square
15 g r i d = l i n s p a c e ( 0 , 1 , n e v a l ) ; [xe,ye] = m e s h g r i d ( g r i d ) ;
16 e p o i n t s = [ x e ( : ) y e ( : ) ] ;
Compute t h e d i s t a n c e and d i f f e r e n c e m a t r i c e s f o r
'/, e v a l u a t i o n matrix
17 DM_eval = D i s t a n c e M a t r i x ( e p o i n t s , c t r s ) ;
18 dx_eval = D i f f e r e n c e M a t r i x ( e p o i n t s ( : , 1 ) , c t r s ( : , 1 ) ) ;
19 dy_eval = D i f f e r e n c e m a t r i x ( e p o i n t s ( : , 2 ) , c t r s ( : , 2 ) ) ;
% Compute t h e d i s t a n c e and d i f f e r e n c e m a t r i c e s f o r
342 Meshfree Approximation Methods with MATLAB
% interpolation matrix
20 DM_data = D i s t a n c e M a t r i x ( d s i t e s , c t r s ) ;
21 dx_data = D i f f e r e n c e M a t r i x ( d s i t e s ( : , 1 ) , c t r s ( : , 1 ) ) ;
22 dy_data = D i f f e r e n c e M a t r i x ( d s i t e s ( : , 2 ) , c t r s ( : , 2 ) ) ;
23a r h s = [ t f ( d s i t e s ( : , 1 ) , d s i t e s ( : , 2 ) ) ; ...
23b t f D x ( d s i t e s ( : , 1 ) , d s i t e s ( : , 2 ) ) ; ...
23c tfDy(dsites(:,1),dsites(:,2))];
24 exact = t f ( e p o i n t s ( : , 1 ) , e p o i n t s ( : , 2 ) ) ;
/o Compute b l o c k s f o r i n t e r p o l a t i o n m a t r i x
25 IM = rbf(ep,DM_data) ;
26 DxIM = dxrbf(ep,DM_data,dx_data);
27 DylM = dyrbf(ep,DM_data,dy_data);
28 DxxIM = dxxrbf(ep,DM_data,dx_data);
29 DxylM = dxyrbf(ep,DM_data,dx_data,dy_data);
30 DyyIM = dyyrbf(ep,DM_data,dy_data);
/o Assemble symmetric i n t e r p o l a t i o n m a t r i x
31a IM = [IM -DxIM -DylM;
31b DxIM -DxxIM -DxylM;
31c DylM -DxylM -DyyIM];
% Compute b l o c k s f o r e v a l u a t i o n m a t r i x
32 EM = rbf(ep,DM_eval);
33 DxEM = dxrbf(ep,DM_eval,dx_eval);
34 DyEM = dyrbf(ep,DM_eval,dy_eval);
/, Assemble e v a l u a t i o n m a t r i x
35 EM = [EM -DxEM -DyEM];
RBF Hermite i n t e r p o l a n t
36 Pf = EM * ( I M \ r h s ) ;
% Compute e r r o r s on e v a l u a t i o n g r i d
37 maxerr = n o r m ( P f - e x a c t , i n f ) ;
38 rms_err = n o r m ( P f - e x a c t ) / n e v a l ;
39 f p r i n t f ('RMS e r r o r : /oe\n', r m s _ e r r )
40 f p r i n t f ( 'Maximum e r r o r : y,e\n', maxerr)
41 fview = [-30,30] ; viewing angles f o r plot
42 PlotSurf(xe,ye,Pf,neval,exact,maxerr,fview);
43 PlotError2D(xe,ye,Pf,exact,maxerr,neval,fview);
P r o g r a m 3 7 . 2 . DifferenceMatrix.m
/, DM = D i f f e r e n c e M a t r i x ( d a t a c o o r d , c e n t e r c o o r d )
% Forms t h e d i f f e r e n c e m a t r i x of two s e t s of p o i n t s i n R
% (some f i x e d c o o r d i n a t e of p o i n t i n R ~ s ) , i . e . ,
% DM(j,k) = datacoord_j - centercoord_k .
1 f u n c t i o n DM = D i f f e r e n c e M a t r i x ( d a t a c o o r d , c e n t e r c o o r d )
r
I n T a b l e s 3 7 . 1 a n d 37.2 as w e l l as F i g u r e 37.2 w e d i s p l a y R M S - e r r o r s , - 2
The a d v a n t a g e o f t h e H e r m i t e i n t e r p o l a t i o n a p p r o a c h over t h e c l u s t e r e d L a -
g r a n g e a p p r o a c h is c l e a r l y e v i d e n t f o r t h e e x p e r i m e n t s w i t h N 33 x 33 = 1089
basic d a t a p o i n t s ( o r N = 3 2 6 7 c l u s t e r e d d a t a p o i n t s ) . I n t h i s case t h e ^ - c o n d i t i o n
2 0
n u m b e r o f A for t h e c l u s t e r e d i n t e r p o l a n t s is o n t h e o r d e r o f 1 0 , w h i l e i t is " o n l y "
6.261336e-)-018 for t h e H e r m i t e m a t r i x . T h i s difference, however, has a s i g n i f i c a n t
344 Meshfree Approximation Methods with MATLAB
z
0.5-
z
0.5
X 10
1.5
z
0.5-
z
0.5-
2
UJ
10.5
Fig. 37.2 F i t s for clustered interpolants with N 289 basic data points. Top left to bottom
right: Lagrange interpolant, interpolant with cluster size h/10, interpolant with cluster size h/100,
Hermite interpolant.
Chapter 38
v (x)
f = J2cMW* ~ J\\)>
X X
e R , s
(38.1)
such t h a t
V (xi)
f = fi, i = l,...,N.
T h e s o l u t i o n o f t h i s p r o b l e m leads t o a l i n e a r s y s t e m Ac = / w i t h t h e e n t r i e s o f A
given by
345
346 Meshfree Approximation Methods with MATLAB
o f s t r i c t l y c o n d i t i o n a l l y p o s i t i v e d e f i n i t e f u n c t i o n s s u c h as p o l y h a r m o n i c splines t h e
p r o b l e m needs t o be a u g m e n t e d b y p o l y n o m i a l s .
W e now s w i t c h to the collocation s o l u t i o n o f p a r t i a l differential equations. As-
s
s u m e we are g i v e n a d o m a i n 17 C R , a n d a l i n e a r e l l i p t i c p a r t i a l d i f f e r e n t i a l e q u a t i o n
of t h e f o r m
w i t h (for s i m p l i c i t y o f d e s c r i p t i o n ) D i r i c h l e t b o u n d a r y c o n d i t i o n s
u(x) = J2 M\\x-tj\\)-
c
(38.5)
3= 1
As i n t h e p r e v i o u s c h a p t e r o n H e r m i t e i n t e r p o l a t i o n we n o w f o r m a l l y d i s t i n -
guish i n our n o t a t i o n between centers 3 {i,...,jv} a n
d collocation points
X = {xi,..., XN} C 17. W h i l e f o r m a l l y different, these p o i n t s w i l l o f t e n p h y s i c a l l y
coincide. A scenario w i t h 3 ^ X w i l l be e x p l o r e d i n C h a p t e r s 39 a n d 40. F o r t h e
f o l l o w i n g discussion we assume t h e s i m p l e s t possible s e t t i n g , i.e., 3 X a n d no
p o l y n o m i a l t e r m s are a d d e d t o t h e e x p a n s i o n ( 3 8 . 5 ) .
T h e c o l l o c a t i o n m a t r i x t h a t arises w h e n m a t c h i n g t h e d i f f e r e n t i a l e q u a t i o n (38.3)
a n d t h e b o u n d a r y c o n d i t i o n s (38.4) at t h e c o l l o c a t i o n p o i n t s X w i l l be o f t h e f o r m
(38.6)
H e r e t h e set X o f c o l l o c a t i o n p o i n t s is s p l i t i n t o a set X o f i n t e r i o r p o i n t s , a n d a
set B o f b o u n d a r y p o i n t s . T h e p r o b l e m is w e l l - p o s e d i f t h e l i n e a r s y s t e m Ac = y,
w i t h y a v e c t o r c o n s i s t i n g o f entries f(xi), Xi G X , f o l l o w e d b y g(xi), Xi G B, has
a unique solution.
W e n o t e t h a t a change i n t h e b o u n d a r y c o n d i t i o n s (38.4) is as s i m p l e as m a k i n g
changes t o a few r o w s o f t h e m a t r i x A i n (38.6) as w e l l as o n the* r i g h t - h a n d side y.
W e also p o i n t o u t t h a t w h i l e t h i s is a r a t h e r general d e s c r i p t i o n o f a n u m e r i c a l
m e t h o d w i t h n o p a r t i c u l a r R B F i n m i n d , K a n s a specifically p r o p o s e d t o use m u l t i -
quadrics i n (38.5), and consequently this non-symmetric collocation approach often
appears i n t h e l i t e r a t u r e as t h e multiquadric method. I n the paper [Kansa (1990b)]
t h e a u t h o r describes t h r e e sets o f e x p e r i m e n t s u s i n g t h e m u l t i q u a d r i c m e t h o d a n d he
38. Solving Elliptic Partial Differential Equations via RBF Collocation 347
T h e f o l l o w i n g s y m m e t r i c c o l l o c a t i o n m e t h o d is based o n t h e generalized H e r m i t e
i n t e r p o l a t i o n m e t h o d d e t a i l e d i n C h a p t e r 36. A s s u m e w e are g i v e n t h e same l i n e a r
e l l i p t i c P D E (38.3) w i t h D i r i c h l e t b o u n d a r y c o n d i t i o n s (38.4) as i n t h e previous
s e c t i o n o n K a n s a ' s m e t h o d . I n o r d e r t o be able t o a p p l y t h e r e s u l t s f r o m g e n e r a l i z e d
H e r m i t e i n t e r p o l a t i o n t h a t w i l l ensure t h e n o n - s i n g u l a r i t y o f t h e c o l l o c a t i o n m a t r i x
we propose t h e f o l l o w i n g e x p a n s i o n for t h e u n k n o w n f u n c t i o n u:
N T N
Hx)=J2c ^(\\ -$\\)k=Z +
j X j E cMWx-ZA)- (38-7)
3= 1 j=Nx +l
H e r e Nj denotes t h e n u m b e r o f nodes i n t h e i n t e r i o r o f O, a n d is t h e d i f f e r e n t i a l
o p e r a t o r used i n t h e d i f f e r e n t i a l e q u a t i o n ( 3 8 . 3 ) , b u t a c t i n g o n ip v i e w e d as a f u n c t i o n
of t h e second a r g u m e n t , i.e., dp is e q u a l t o C^-cp u p t o a possible difference i n s i g n .
T h u s , t h e l i n e a r f u n c t i o n a l s A i n (36.2) are g i v e n b y Xj = <5^. o , j = 1 , . . . ,Nx,
a n d Xj = 5 , $j j = N x + 1, . , N.
After enforcing the collocation conditions
Cu(Xi) = f(xi), Xi G X ,
u(xi) = g(xi), Xi G B,
we end u p w i t h a c o l l o c a t i o n m a t r i x A t h a t is o f t h e f o r m
Ar
j A c
A (38.8)
Ac< A
N o t e t h a t we have i d e n t i f i e d t h e t w o sets X = X U B o f c o l l o c a t i o n p o i n t s a n d E o f
centers.
T h e m a t r i x A o f (38.8) is o f t h e same t y p e as t h e generalized H e r m i t e i n t e r p o l a -
t i o n m a t r i c e s ( 3 6 . 3 ) , a n d therefore n o n - s i n g u l a r as l o n g as ip is chosen a p p r o p r i a t e l y .
T h u s , v i e w e d u s i n g t h e n e w e x p a n s i o n (38.7) for w, t h e c o l l o c a t i o n a p p r o a c h is cer-
t a i n l y well-posed. A n o t h e r p o i n t i n favor o f t h e H e r m i t e - b a s e d a p p r o a c h is t h a t
t h e m a t r i x (38.8) is s y m m e t r i c as o p p o s e d t o t h e c o m p l e t e l y u n s t r u c t u r e d m a t r i x
(38.6) o f t h e same size used i n t h e n o n - s y m m e t r i c a p p r o a c h . T h i s p r o p e r t y is o f
v a l u e w h e n t r y i n g t o devise a n efficient i m p l e m e n t a t i o n o f t h e c o l l o c a t i o n m e t h o d .
A l s o n o t e t h a t a l t h o u g h A n o w consists o f f o u r b l o c k s , i t s t i l l is o f t h e same size,
n a m e l y N x N, as t h e c o l l o c a t i o n m a t r i x (38.6) o b t a i n e d for K a n s a ' s approach.
r
38. Solving Elliptic Partial Differential Equations via RBF Collocation 349
38.3 E r r o r B o u n d s for S y m m e t r i c C o l l o c a t i o n
u f in fl,
u g on dfl
has a unique solution u 6 jV<&(fl) for given f G C(fl) and g G C(dfl). Let u be the
approximate collocation solution of the form (38.7) based on $ = <p(|| | | ) . Then
fe 2
l l - w | U ( f ) < C7i - |MU/-*(fi)
0 0 2
for all sufficiently small h, where h is the larger of the fill distances in the interior
and on the boundary of fl, respectively.
38.4 O t h e r Issues
Since t h e m e t h o d s d e s c r i b e d a b o v e w e r e b o t h o r i g i n a l l y used w i t h g l o b a l l y s u p -
p o r t e d basis f u n c t i o n s , t h e same concerns a b o u t s t a b i l i t y a n d n u m e r i c a l efficiency
a p p l y as for i n t e r p o l a t i o n p r o b l e m s . T h e t w o r e c e n t p a p e r s [ L i n g a n d K a n s a ( 2 0 0 4 ) ;
L i n g a n d K a n s a (2005)] address these issues. I n p a r t i c u l a r , t h e a u t h o r s d e v e l o p a
p r e c o n d i t i o n e r i n t h e s p i r i t o f t h e one d e s c r i b e d i n S e c t i o n 34.3, a n d d e s c r i b e t h e i r
experience w i t h a d o m a i n d e c o m p o s i t i o n a l g o r i t h m .
R e c e n t l y , M i r a n d a [ M i r a n d a (2004)] has s h o w n t h a t K a n s a ' s m e t h o d w i l l be
w e l l - p o s e d i f i t is c o m b i n e d w i t h so-called R-functions. T h i s i d e a was also u s e d
b y H o l l i g a n d his c o - w o r k e r s i n t h e i r d e v e l o p m e n t o f web-splines (see, e.g., [Hollig
(2003)]).
O t h e r recent p a p e r s i n v e s t i g a t i n g v a r i o u s aspects o f r a d i a l basis f u n c t i o n c o l l o c a -
t i o n are, e.g., [ C h e n g et al. ( 2 0 0 3 ) ; Fedoseyev et al. ( 2 0 0 2 ) ; K a n s a a n d H o n ( 2 0 0 0 ) ;
Larsson and Fornberg (2003); L e i t a o (2001); M a i - D u y a n d T r a n - C o n g (2001a);
Y o u n g et al. ( 2 0 0 4 ) ] .
F o r e x a m p l e , i n t h e p a p e r [Fedoseyev et al. (2002)] t h e a u t h o r s suggest t h a t
t h e c o l l o c a t i o n p o i n t s o n t h e b o u n d a r y s h o u l d also be used t o satisfy t h e P D E . T h e
m o t i v a t i o n for t h i s m o d i f i c a t i o n is t h e w e l l - k n o w n fact t h a t b o t h for i n t e r p o l a t i o n
a n d c o l l o c a t i o n w i t h r a d i a l basis f u n c t i o n s t h e e r r o r is largest n e a r t h e b o u n d a r y . I n
order t o prevent the collocation m a t r i x f r o m becoming t r i v i a l l y singular (by using
d u p l i c a t e c o l u m n s , i.e., basis f u n c t i o n s ) i t is suggested i n [Fedoseyev et al. (2002)]
t h a t t h e c o r r e s p o n d i n g centers l i e o u t s i d e t h e d o m a i n S7 ( t h u s c r e a t i n g a d d i t i o n a l
basis f u n c t i o n s ) . I n v a r i o u s n u m e r i c a l e x p e r i m e n t s t h i s s t r a t e g y is s h o w n t o i m p r o v e
the accuracy o f Kansa's n o n - s y m m e t r i c m e t h o d . We implement this approach i n
t h e n e x t c h a p t e r . H o w e v e r , i t s h o u l d be n o t e d t h a t t h e r e is once m o r e n o t h e o r e t -
i c a l f o u n d a t i o n for t h i s m o d i f i c a t i o n o f e i t h e r t h e n o n - s y m m e t r i c o r t h e s y m m e t r i c
method.
L a r s s o n a n d F o r n b e r g c o m p a r e K a n s a ' s basic c o l l o c a t i o n m e t h o d , t h e m o d i f i c a -
t i o n j u s t described, a n d t h e Hermite-based s y m m e t r i c approach m e n t i o n e d earlier
(see [Larsson a n d F o r n b e r g ( 2 0 0 3 ) ] ) . U s i n g m u l t i q u a d r i c basis f u n c t i o n s i n a s t a n -
d a r d i m p l e m e n t a t i o n t h e y c o n c l u d e t h a t t h e s y m m e t r i c m e t h o d is t h e m o s t accu-
rate, followed b y the n o n - s y m m e t r i c m e t h o d w i t h b o u n d a r y collocation. T h e reason
for t h i s is t h e b e t t e r c o n d i t i o n i n g o f t h e s y s t e m f o r t h e s y m m e t r i c m e t h o d . Lars-
son a n d F o r n b e r g also discuss a n i m p l e m e n t a t i o n o f t h e t h r e e m e t h o d s u s i n g t h e
complex Contour-Pade i n t e g r a t i o n m e t h o d mentioned i n Section 16.1. W i t h this
t e c h n i q u e s t a b i l i t y p r o b l e m s are o v e r c o m e , a n d i t t u r n s o u t t h a t b o t h t h e s y m m e t -
ric a n d t h e n o n - s y m m e t r i c m e t h o d p e r f o r m w i t h c o m p a r a b l e accuracy. Boundary
r
38. Solving Elliptic Partial Differential Equations via RBF Collocation 351
l;.
Chapter 39
Non-Symmetric R B F Collocation
in MATLAB
I n t h i s a n d t h e n e x t t w o c h a p t e r s we present a n u m b e r o f M A T L A B i m p l e m e n t a t i o n s
for s t a n d a r d L a p l a c e / P o s s i o n p r o b l e m s , p r o b l e m s w i t h v a r i a b l e coefficients, a n d
p r o b l e m s w i t h m i x e d or piecewise defined b o u n d a r y c o n d i t i o n s . T h e n o n - s y m m e t r i c
K a n s a m e t h o d is discussed i n t h i s c h a p t e r . W e p r o v i d e a f a i r l y d e t a i l e d p r e s e n t a t i o n
since t h e M A T L A B code changes r a t h e r s i g n i f i c a n t l y f r o m one p r o b l e m t o a n o t h e r .
M o s t o f t h e f o l l o w i n g t e s t examples are s i m i l a r t o those s t u d i e d i n [ L i et al.
(2003)]. W e r e s t r i c t ourselves t o t w o - d i m e n s i o n a l e l l i p t i c p r o b l e m s whose a n a l y t i c
s o l u t i o n is r e a d i l y available a n d t h e r e f o r e can easily be verified. W e w i l l refer t o a
2
point x in R as (x,y).
E x a m p l e 3 9 . 1 . Consider t h e f o l l o w i n g Poisson p r o b l e m w i t h D i r i c h l e t b o u n d a r y
conditions:
(39.1)
A M A T L A B p r o g r a m for t h e n o n - s y m m e t r i c c o l l o c a t i o n s o l u t i o n o f t h i s p r o b l e m
u s i n g inverse m u l t i q u a d r i c R B F s is p r o v i d e d as P r o g r a m 3 9 . 1 . W h i l e t h i s p r o g r a m
s t i l l is o f t h e same general s t r u c t u r e as earlier i n t e r p o l a t i o n p r o g r a m s we n o w r e q u i r e
n o t o n l y a d e f i n i t i o n o f t h e basic f u n c t i o n , b u t also o f i t s L a p l a c i a n (see l i n e 2 ) . O n
lines 3 a n d 4 we define t h e exact s o l u t i o n a n d i t s L a p l a c i a n for t h i s test p r o b l e m .
N o t e t h a t w h e n we define t h e r i g h t - h a n d side o f t h e p r o b l e m , i n s t e a d o f b r e a k i n g t h e
b o u n d a r y c o n d i t i o n d o w n i n t o t w o pieces as g i v e n i n t h e p r o b l e m d e f i n i t i o n above
353
Li
3
354 Meshfree Approximation Methods with MATLAB
we s i m p l y evaluate t h e k n o w n s o l u t i o n o n t h e b o u n d a r y (see l i n e 26 o f t h e c o d e ) . O f
course, t h i s is n o t possible i n g e n e r a l since t h e s o l u t i o n w i l l n o t b e k n o w n . I n t h a t
case one w o u l d have t o replace l i n e 26 b y t h e s l i g h t l y m o r e c o m p l i c a t e d expression
rhs = [Lu(intdata(:,1),intdata(:,2));...
sin(pi*bdydata(l:sn-1,1)); zeros(3*(sn-1),1)];
indx = f i n d ( d s i t e s ( : , 1 ) = = 0 I d s i t e s ( : , 1 ) = = 1 | ...
dsites(:,2)==0 I dsites(:,2)==1);
bdydata = d s i t e s ( i n d x , : ) ;
intdata = dsites(setdiff([1:N],indx), :) ;
bdyctrs = bdydata;
H o w e v e r , we d o n o t f o l l o w t h i s a p p r o a c h here.
W e c a n create a d d i t i o n a l c o l l o c a t i o n p o i n t s for t h e b o u n d a r y c o n d i t i o n s . T h e s e
p o i n t s c a n lie a n y w h e r e o n t h e b o u n d a r y . W e t a k e t h e m t o be e q u a l l y spaced
(see lines 9 - 1 1 ) . N o t e t h a t we arrange the b o u n d a r y points i n a counter-
clockwise m a n n e r s t a r t i n g f r o m t h e o r i g i n . N o w w e have several choices for
t h e b o u n d a r y centers:
W e c a n l e t t h e b o u n d a r y centers c o i n c i d e w i t h t h e b o u n d a r y c o l l o c a t i o n
points. However, this approach w i l l lead t o a singular collocation m a t r i x
for u n i f o r m i n t e r i o r p o i n t s (since t h a t set a l r e a d y c o n t a i n s p o i n t s o n t h e
b o u n d a r y , a n d t h e r e f o r e d u p l i c a t e c o l u m n s are c r e a t e d ) . N o t e , however,
t h a t t h i s a p p r o a c h w o r k s fine i f we t a k e t h e i n t e r i o r c o l l o c a t i o n p o i n t s t o
be H a l t o n p o i n t s (since t h o s e p o i n t s d o n o t lie o n t h e b o u n d a r y o f t h e u n i t
s q u a r e ) . T h i s a p p r o a c h c a n be r e a l i z e d b y r e p l a c i n g lines 1 2 - 1 4 b y
bdyctrs = bdydata;
P r o g r a m 3 9 . 1 . KansaLaplace_2D .m
/ KansaLaplace_2D
% S c r i p t t h a t performs Kansa c o l l o c a t i o n f o r 2D L a p l a c e equation
% C a l l s on: DistanceMatrix
% IMQ RBF and i t s L a p l a c i a n
1 r b f = @(e,r) 1 . / s q r t ( l + ( e * r ) . ~ 2 ) ; ep = 3;
2 Lrbf = @(e,r) e ~ 2 * ( ( e * r ) . " 2 - 2 ) . / ( l + ( e * r ) . ~ 2 ) . " ( 5 / 2 ) ;
% Exact s o l u t i o n and i t s L a p l a c i a n f o r t e s t problem
3 u = @(x,y) s i n ( p i * x ) . * c o s ( p i * y / 2 ) ;
4 Lu = @(x,y) - 1 . 2 5 * p i ~ 2 * s i n ( p i * x ) . * c o s ( p i * y / 2 ) ;
% Number and type of c o l l o c a t i o n p o i n t s
5 N = 289; gridtype = 'u';
6 n e v a l = 40;
% Load ( i n t e r i o r ) c o l l o c a t i o n p o i n t s
, 0 0
7 name = s p r i n t f ( Data2D_ / d / s' ,N .gridtype) ; load (name) ;
0 0
8 intdata = dsites;
% A d d i t i o n a l ( e q u a l l y spaced) boundary c o l l o c a t i o n p o i n t s
9 sn = s q r t ( N ) ; b d y l i n = l i n s p a c e ( 0 , 1 , s n ) ' ;
10 bdyO = z e r o s ( s n - 1 , 1 ) ; bdyl = o n e s ( s n - 1 , 1 ) ;
11a bdydata = [ b d y l i n ( l : e n d - 1 ) bdyO; bdyl b d y l i n d :end-1) ; . . .
lib f l i p u d ( b d y l i n ( 2 : e n d ) ) bdyl; bdyO f l i p u d ( b d y l i n ( 2 : e n d ) ) ] ;
% Create a d d i t i o n a l boundary c e n t e r s OUTSIDE the domain
12 h = l / ( s n - l ) ; b d y l i n = ( h : h : l - h ) ' ;
13 bdyO = -h*ones(sn-2,1); bdyl = ( l + h ) * o n e s ( s n - 2 , 1 ) ;
14a b d y c t r s = [-h -h; b d y l i n bdyO; 1+h -h; bdyl b d y l i n ; . . .
14b 1+h 1+h; f l i p u d ( b d y l i n ) bdyl; -h 1+h; bdyO f l i p u d ( b d y l i n ) ] ;
15 c t r s .= [ i n t d a t a ; b d y c t r s ] ;
% Create neval-by-neval e q u a l l y spaced e v a l u a t i o n l o c a t i o n s
% i n the u n i t square
16 g r i d = l i n s p a c e ( 0 , 1 , n e v a l ) ; [xe.ye] = m e s h g r i d ( g r i d ) ;
17 epoints = [ x e ( : ) y e ( : ) ] ;
% Compute e v a l u a t i o n m a t r i x
356 Meshfree Approximation Methods with MATLAB
18 DM_eval = D i s t a n c e M a t r i x ( e p o i n t s , c t r s ) ;
19 EM = rbf(ep,DM_eval);
20 exact = u ( e p o i n t s ( : , 1 ) , e p o i n t s ( : , 2 ) ) ;
% Compute b l o c k s f o r c o l l o c a t i o n m a t r i x
21 DM_intdata = D i s t a n c e M a t r i x ( i n t d a t a , c t r s ) ;
22 LCM = Lrbf(ep,DM_intdata);
23 DM_bdydata = D i s t a n c e M a t r i x ( b d y d a t a , c t r s ) ;
24 BCM = rbf(ep,DM_bdydata);
25 CM = [LCM; BCM] ;
'/. Create r i g h t - h a n d s i d e
26a r h s = [ L u ( i n t d a t a ( : , 1 ) , i n t d a t a ( : , 2 ) ) ; ...
26b u(bdydata(:,1),bdydata(:,2))];
/ Compute RBF s o l u t i o n
27 Pf = EM * (CM\rhs);
/ Compute maximum e r r o r on e v a l u a t i o n g r i d
0
28 maxerr = n o r m ( P f - e x a c t , i n f ) ;
29 rms_err = n o r m ( P f - e x a c t ) / n e v a l ;
30 f p r i n t f ('RMS e r r o r : '/ e\n', r m s _ e r r )
0
1 r b f = @(e,r) e x p ( - ( e * r ) . ~ 2 ) ; ep = 3;
39. Non-Symmetric RBF Collocation in MATLAB 357
Table 39.2 Non-symmetric collocation solution of Example 39.1 with Gaussians and
I M Q s , = 3 and uniform interior points and boundary centers outside the domain.
Gaussian IMQ
X 10
1.2
1
o oo o oo o oo o o o o o o
o oo o oo o oo o o o o o o
0.8 o oo o oo o oo o o o o o o
o oo o oo o oo o o o o o o
o oo o oo o oo o o o o o o
o oo o oo o oo o o o o o o 0.5-
0.6 o oo o oo o oo oo o o o o
z
o oo o oo o oo o o o o o o 9
o oo o oo o oo oo o o o o
0.4 o oo o oo o oo o o o o o e UJ
o oo o oo o oo o o o o o o
o oo o oo o oo o o o o o o
0.2 o oo o oo o oo o o o o o o
o oo o oo o oo oo o o o o
o oo o oo o oo o o o o o o
0
f i l l
-0.2
-0.2 0.2 0.4 0.6 0.8 1.2
Fig. 39.1 Collocation points (interior: blue circles, boundary: red crosses) and centers (interior:
blue circles, boundary: green crosses) (left) and non-symmetric R B F collocation solution (right)
for Example 39.1 using I M Q s with e 3 and N = 289 interior points.
E x a m p l e 3 9 . 2 . Consider t h e f o l l o w i n g e l l i p t i c e q u a t i o n w i t h v a r i a b l e coefficients
a n d homogeneous D i r i c h l e t b o u n d a r y c o n d i t i o n s :
d ( d \ d ( d \
2
( a(x,y) u(x,y)\ + ^ ( b(x, y ) u(x, y) j = f{x,y), (x,y) e fl = [0, l ] ,
where
x y 2 2
f{x, y) = - 1 6 z ( l - x){3 - 2y)e ~ + 3 2 y ( l - y)(Sx + y - x - 2 ) ,
a n d t h e coefficients are g i v e n b y
2 2 x y
a(x, y) = 2 - x - y , b(x, y) = e~.
T h e c o r r e s p o n d i n g M A T L A B p r o g r a m is l i s t e d as P r o g r a m 39.2. T h e d e f i n i t i o n
section o f t h i s p r o g r a m (lines 1-9) is m u c h longer t h a n before since we need t o
w o r k w i t h first a n d second-order p a r t i a l d e r i v a t i v e s o f t h e basic f u n c t i o n . A l s o , t h e
coefficients a a n d b a n d t h e i r p a r t i a l s are r e q u i r e d .
W h i l e m o s t o f t h e r e m a i n d e r o f t h e p r o g r a m is i d e n t i c a l t o t h e p r e v i o u s one,
t h e assembly o f t h e c o l l o c a t i o n m a t r i x (lines 2 6 - 3 2 ) is m u c h m o r e i n v o l v e d since
we need t o a p p l y t h e d i f f e r e n t i a l o p e r a t o r t o t h e basis f u n c t i o n s (see l i n e 30 for
t h e c o m p u t a t i o n o f t h e b l o c k LCM w h i c h c o r r e s p o n d s t o t h e b l o c k Ac i n o u r earlier
discussion ( 3 8 . 6 ) ) .
P r o g r a m 3 9 . 2 . K a n s a E l l i p t i c V C J 2 D .m
% KansaEllipticVC_2D
% S c r i p t t h a t performs K a n s a c o l l o c a t i o n f o r 2D e l l i p t i c PDE
39. Non-Symmetric RBF Collocation in MATLAB 359
% with v a r i a b l e c o e f f i c i e n t s
% C a l l s on: DistanceMatrix, DifferenceMatrix
% IMQ RBF and i t s d e r i v a t i v e s
1 r b f = @(e,r) 1 . / s q r t ( l + ( e * r ) . ~ 2 ) ; ep = 3;
2 dxrbf = @(e,r,dx) - d x * e ~ 2 . / ( l + ( e * r ) . ~ 2 ) . " ( 3 / 2 ) ;
3 dyrbf = @(e,r,dy) - d y * e ~ 2 . / ( l + ( e * r ) . ~ 2 ) . " ( 3 / 2 ) ;
4a dxxrbf = @(e,r,dx) e ~ 2 * ( 3 * ( e * d x ) . ~ 2 - l - ( e * r ) . ~ 2 ) . / . . .
4b (l+(e*r).~2)."(5/2);
5a dyyrbf = @(e,r,dy) e ~ 2 * ( 3 * ( e * d y ) . " 2 - 1 - ( e * r ) . ~ 2 ) . / . . .
5b (l+(e*r).~2)."(5/2);
/ T e s t problem input ( r i g h t - h a n d s i d e , c o e f f i c i e n t s )
0
6 u = @(x,y) 1 6 * x . * ( l - x ) . * y . * ( l - y ) ;
7a Lu = @(x,y) - 1 6 * x . * e x p ( x - y ) . * ( l - x ) . * ( 3 - 2 * y ) + . . .
7b 32*y.*(1-y).*(3*x."2+y.~2-x-2);
8 a = @(x,y) 2-x."2-y."2; ax = @(x,y) -2*x;
9 b = @(x,y) e x p ( x - y ) ; by = @(x,y)-exp(x-y);
10 N = 289; gridtype = 'h';
11 n e v a l = 40;
% Load ( i n t e r i o r ) c o l l o c a t i o n p o i n t s
0
12 name = s p r i n t f ( 'Data2D_yod / s' ,N, g r i d t y p e ) ; l o a d (name) ;
0
13 i n t d a t a = d s i t e s ;
% A d d i t i o n a l boundary c o l l o c a t i o n p o i n t s
5
14 sn = s q r t ( N ) ; b d y l i n = l i n s p a c e ( 0 , 1 , s n ) ;
15 bdyO = z e r o s ( s n - 1 , 1 ) ; bdyl = o n e s ( s n - 1 , 1 ) ;
16a bdydata = [ b d y l i n d : end-1) bdyO; bdyl b d y l i n ( l : end-1) ;.. .
16b f l i p u d ( b d y l i n ( 2 : e n d ) ) b d y l ; bdyO f l i p u d ( b d y l i n ( 2 : e n d ) ) ] ;
% Create a d d i t i o n a l boundary c e n t e r s OUTSIDE the domain
17 h = l / ( s n - l ) ; b d y l i n = ( h : h : l - h ) ' ;
18 bdyO = -h*ones(sn-2,1); bdyl = ( l + h ) * o n e s ( s n - 2 , 1 ) ;
19a bdyctrs = [-h -h; b d y l i n bdyO; 1+h -h; bdyl b d y l i n ; . . .
19b 1+h 1+h; f l i p u d ( b d y l i n ) b d y l ; -h 1+h; bdyO f l i p u d ( b d y l i n ) ] ;
20 c t r s = [ i n t d a t a ; b d y c t r s ] ;
% Create neval-by-neval e q u a l l y spaced e v a l u a t i o n l o c a t i o n s
/ i n the u n i t square
0
21 g r i d = l i n s p a c e ( 0 , 1 , n e v a l ) ; [xe,ye] = m e s h g r i d ( g r i d ) ;
22 epoints = [ x e ( : ) y e ( : ) ] ;
% Compute e v a l u a t i o n m a t r i x
23 DM_eval = D i s t a n c e M a t r i x ( e p o i n t s , c t r s ) ;
24 EM = rbf(ep,DM_eval);
25 exact = u ( e p o i n t s ( : , 1 ) , e p o i n t s ( : , 2 ) ) ;
% Compute blocks f o r c o l l o c a t i o n matrix
26 DM_intdata = D i s t a n c e M a t r i x ( i n t d a t a , c t r s ) ;
360 Meshfree Approximation Methods with MATLAB
27 DM_bdydata = DistanceMatrix(bdydata,ctrs);
28 dx_intdata = D i f f e r e n c e m a t r i x ( i n t d a t a ( : , 1 ) , c t r s ( : , 1 ) ) ;
29 dy_intdata = D i f f e r e n c e m a t r i x ( i n t d a t a ( : , 2 ) , c t r s ( : , 2 ) ) ;
30a LCM = d i a g ( a x ( i n t d a t a ( : , 1 ) ) ) * ...
30b dxrbf(ep,DM_intdata,dx_intdata) + ...
30c d i a g ( a ( i n t d a t a ( : , 1 ) , i n t d a t a ( : , 2 ) ) ) * ...
30d dxxrbf(ep,DM_intdata,dx_intdata) + ...
30e d i a g ( b y ( i n t d a t a ( : , 1 ) , i n t d a t a ( : , 2 ) ) ) * ...
30f dyrbf(ep,DM_intdata,dy_intdata) + ...
30g d i a g ( b ( i n t d a t a ( : , 1 ) , i n t d a t a ( : , 2 ) ) ) * ...
30h dyyrbf(ep,DM_intdata,dy_intdata);
31 BCM = rbf(ep,DM_bdydata);
32 CM = [LCM; BCM];
7, C r e a t e r i g h t - h a n d s i d e
33 rhs = [Lu(intdata(:,1),intdata(:,2)); zeros(4*(sn-1),1)];
7, RBF s o l u t i o n
34 Pf = EM * (CM\rhs);
7o Compute maximum e r r o r on e v a l u a t i o n g r i d
35 maxerr = n o r m ( P f - e x a c t , i n f ) ;
36 rms_err = n o r m ( P f - e x a c t ) / n e v a l ;
37 f p r i n t f ('RMS e r r o r : 7,e\n', r m s . e r r )
38 f p r i n t f ( 'Maximum e r r o r : 7 e\n' , maxerr)
0
7 P l o t c o l l o c a t i o n p o i n t s and c e n t e r s
39 hold on; p l o t ( i n t d a t a ( : , 1 ) , i n t d a t a ( : , 2 ) , ' b o ' ) ;
40 plot(bdydata(:,1),bdydata(:,2),'rx');
41 plot(bdyctrs(:,1).bdyctrs(:,2),'gx'); hold off
42 fview = [-30,30]; % v i e w i n g angles f o r p l o t
43 PlotSurf(xe,ye,Pf,neval,exact,maxerr,fview);
44 PlotError2D(xe,ye,Pf,exact,maxerr,neval,fview);
1 r b f = @(e,r) e x p ( - ( e * r ) . ~ 2 ) ; ep = 3;
2 dxrbf = @(e,r,dx) - 2 * d x * e ~ 2 . * e x p ( - ( e * r ) . " 2 ) ;
3 dyrbf = @(e,r,dy) - 2 * d y * e ~ 2 . * e x p ( - ( e * r ) . ~ 2 ) ;
4 dxxrbf = @(e,r,dx) 2 * e ~ 2 * ( 2 * ( e * d x ) . ~ 2 - l ) . * e x p ( - ( e * r ) . ~ 2 ) ;
5 dyyrbf = @(e,r,dy) 2*e~2*(2*(e*dy)."2-1).*exp(-(e*r).~2);
T h e t o p p a r t o f F i g u r e 39.2 c o n t a i n s p l o t s o f t h e a p p r o x i m a t e s o l u t i o n a n d
m a x i m u m e r r o r for t h e inverse m u l t i q u a d r i c s o l u t i o n based o n N = 289 i n t e r i o r
39. Non-Symmetric RBF Collocation in MATLAB 361
Table 39.3 Solution of Example 39.2 with Gaussians and I M Q s , e = 3 and interior
Halton points.
Gaussian IMQ
and 64 b o u n d a r y p o i n t s .
u(x,y) = 0, (x,y)er UT , 1 3
u(x,y) = l, (x,y)eT ,4
where
For t h i s p r o b l e m t h e exact s o l u t i o n is g i v e n b y
u(x,y) = 1 - 0.9a; . 3
N o t e t h a t t h e n o r m a l d e r i v a t i v e o n t h e edges T i a n d T3 is g i v e n b y ^ and
^1 respectively. T h e r e f o r e , for t h e M A T L A B p r o g r a m w e r e q u i r e t h e y - p a r t i a l o f
t h e basic f u n c t i o n i n a d d i t i o n t o i t s d e f i n i t i o n a n d i t s L a p l a c i a n (see lines 1-3 o f
P r o g r a m 39.3). A g a i n , t h e m a i n difference i n t h e code is i n t h e assembly o f t h e
c o l l o c a t i o n m a t r i x o n lines 22-30. N o t e t h a t t h i s t i m e we need t o d e a l c a r e f u l l y
w i t h t h e b o u n d a r y c o n d i t i o n s a n d r i g h t - h a n d side (see lines 26-29 a n d 30). I t is
i m p o r t a n t t h a t t h e o r i e n t a t i o n o f t h e b o u n d a r y p o i n t s is consistent.
P r o g r a m 3 9 . 3 . KansaLaplaceMixedBC_2D .m
/. KansaLaplaceMixedBC_2D
"/, S c r i p t t h a t performs Kansa c o l l o c a t i o n f o r 2D L a p l a c e e q u a t i o n
*/, w i t h mixed BCs
% C a l l s on: D i s t a n c e M a t r i x , D i f f e r e n c e M a t r i x
362 Meshfree Approximation Methods with MATLAB
9 intdata = dsites;
% A d d i t i o n a l boundary c o l l o c a t i o n p o i n t s
5
10 s n = s q r t ( N ) ; b d y l i n = l i n s p a c e ( 0 , 1 , s n ) ;
11 bdyO = z e r o s ( s n - 1 , 1 ) ; bdyl = o n e s ( s n - 1 , 1 ) ;
12a bdydata = [ b d y l i n d : end-1) bdyO; bdyl b d y l i n d : end-1) ; ...
12b f l i p u d ( b d y l i n ( 2 : e n d ) ) b d y l ; bdyO f l i p u d ( b d y l i n ( 2 : e n d ) ) ]
% Create a d d i t i o n a l boundary c e n t e r s OUTSIDE t h e domain
J
13 h = l / ( s n - l ) ; b d y l i n = ( h : h : l - h ) ;
14 bdyO = - h * o n e s ( s n - 2 , l ) ; bdyl = (1+h)*ones(sn-2,1);
15a b d y c t r s = [-h -h; b d y l i n bdyO; 1+h -h; bdyl b d y l i n ; ...
15b 1+h 1+h; f l i p u d ( b d y l i n ) b d y l ; -h 1+h; bdyO f l i p u d ( b d y l i n
16 c t r s = [ i n t d a t a ; b d y c t r s ] ;
/ Create n e v a l - b y - n e v a l e q u a l l y spaced e v a l u a t i o n l o c a t i o n s
0
% i n the u n i t square
17 g r i d = l i n s p a c e ( 0 , 1 , n e v a l ) ; [xe.ye] = m e s h g r i d ( g r i d ) ;
18 epoints = [ x e ( : ) y e ( : ) ] ;
% Compute e v a l u a t i o n m a t r i x
19 DM_eval = D i s t a n c e M a t r i x ( e p o i n t s , c t r s ) ;
20 EM = rbf(ep,DM_eval);
21 exact = u ( e p o i n t s ( : , 1 ) , e p o i n t s ( : , 2 ) ) ;
% Compute b l o c k s f o r c o l l o c a t i o n m a t r i x
22 DM_intdata = D i s t a n c e M a t r i x d n t d a t a , c t r s ) ;
23 DM_bdydata = D i s t a n c e M a t r i x ( b d y d a t a , c t r s ) ;
24 dy_bdydata = D i f f e r e n c e m a t r i x ( b d y d a t a ( : , 2 ) , c t r s ( : , 2 ) ) ;
25 LCM = Lrbf(ep,DM_intdata);
26 BCM1 = -dyrbf(ep,DM_bdydata(l:sn-1,:),dy_bdydata(l:sn-1,:));
27 BCM2 = rbf(ep,DM_bdydata(sn:2*sn-2,:));
28a BCM3 = dyrbf(ep,DM_bdydata(2*sn-l:3*sn-3,:),...
28b dy_bdydata(2*sn-l:3*sn-3,:));
29 BCM4 = rbf(ep,DM_bdydata(3*sn-2rend,:));
39. Non-Symmetric RBF Collocation in MATLAB 363
Table 39.4 Non-symmetric collocation solution of Example 39.3 with Gaussians and
I M Q s , e = 3 and interior Halton points.
Gaussian IMQ
y 0 o x y 0 o
Fig. 39.2 Top: Non-symmetric collocation solution (left) and error plot (right) for Example 39.2
using I M Q s with e = 3 and N = 289 interior Halton points. Bottom: Approximate solution (left)
and error plot (right) for Example 39.3 using I M Q s with e 3 and AT = 289 interior Halton points.
I n [ L i et al. (2003)] t h e a u t h o r s r e p o r t t h a t t h e n o n - s y m m e t r i c c o l l o c a t i o n
s o l u t i o n for t h i s p r o b l e m w i t h m u l t i q u a d r i c R B F s is several o r d e r s o f m a g n i t u d e
m o r e a c c u r a t e t h a n a s o l u t i o n w i t h piecewise l i n e a r f i n i t e elements u s i n g t h e same
n u m b e r o f nodes.
Chapter 40
I n t h i s c h a p t e r we discuss t h e i m p l e m e n t a t i o n o f t h e H e r m i t e - b a s e d symmetric
c o l l o c a t i o n m e t h o d . A g a i n , o u r discussion is f a i r l y d e t a i l e d w i t h c o m p l e t e M A T L A B
code. A s i n t h e p r e v i o u s c h a p t e r w e r e s t r i c t ourselves t o t w o - d i m e n s i o n a l e l l i p t i c
p r o b l e m s whose a n a l y t i c s o l u t i o n is r e a d i l y a v a i l a b l e a n d t h e r e f o r e c a n easily be
2
verified. W e w i l l refer t o a p o i n t x i n R as (x,y).
For p r o b l e m s i n v o l v i n g t h e L a p l a c i a n we n o w r e q u i r e also t h e d i f f e r e n t i a l o p e r a t o r
2 2 2 2 2 2 2 2
d d d d d d d d
2 2 2 2 2 2 2 2
<9 dx dr) dx d dy drj dy
4 4 4
d d n d \
4
+ 2 - 2 2
+ 4
dx dx y dy J '
V 2 2 -( r)
v e
2
= 1 6 4 ( 2 _ 4 ( r )2 + ( r ) 4 ) ~(er)^
e G a u s s i a i l j ( 4 0 .1)
9 9 1 3 (3(er) 4 4
- 2 4 ( e r ) + 8) 2
n r t t N
2 (40 2)
V
^ V
7 T T F F =
(iU^ ' -
2 7 / 2
(l + (er) )
M o r e examples o f R B F s a n d t h e i r d e r i v a t i v e s are c o l l e c t e d i n A p p e n d i x D .
365
366 Meshfree Approximation Methods with MATLAB
corresponding one for the non-symmetric collocation method (c.f. Program 39.1).
The evaluation matrix EM now consists of two blocks (similar to the collocation ma-
trix for the non-symmetric case, see lines 19-23), whereas the collocation matrix is
assembled from four blocks (c.f. lines 25-33). Note that we now also require one of
the iterated Laplacians of the basic function as listed in (40.1)-(40.3).
P r o g r a m 40.1. HermiteLaplace_2D.m
% HermiteLaplace_2D
% S c r i p t t h a t performs Hermite c o l l o c a t i o n f o r 2D L a p l a c e equation
7, C a l l s on: D i s t a n c e M a t r i x
7o IMQ RBF and i t s L a p l a c i a n and double L a p l a c i a n
1 r b f = <3(e,r) 1 . / s q r t ( l + ( e * r ) . ~ 2 ) ; ep = 3;
2 Lrbf = @(e,r) e~2* ( ( e * r ) . "2-2) . / ( l + ( e * r ) . "2) . " (5/2) ;
3a L2rbf = @(e,r) 3*e"4*(3*(e*r)."4-24*(e*r)."2+8)./...
3b (l+(e*r)."2)."(9/2);
7. Exact s o l u t i o n and i t s L a p l a c i a n f o r t e s t problem
4 u = @(x,y) s i n ( p i * x ) . * c o s ( p i * y / 2 ) ;
5 Lu = @(x,y) - 1 . 2 5 * p i ~ 2 * s i n ( p i * x ) . * c o s ( p i * y / 2 ) ;
7. Number and type of c o l l o c a t i o n p o i n t s
6 N = 289; g r i d t y p e = 'u';
7 n e v a l = 40;
7o Load ( i n t e r i o r ) c o l l o c a t i o n p o i n t s
8 name = s p r i n t f ( 'Data2D_7od7oS' ,N,gridtype) ; load (name) ;
9 intdata = dsites;
7o A d d i t i o n a l ( e q u a l l y spaced) boundary c o l l o c a t i o n p o i n t s
10 sn = s q r t ( N ) ; b d y l i n = l i n s p a c e ( 0 , 1 , s n ) ' ;
11 bdyO = z e r o s ( s n - 1 , 1 ) ; b d y l = o n e s ( s n - 1 , 1 ) ;
12a bdydata = [ b d y l i n d : end-1) bdyO; bdyl b d y l i n d : end-1) ; ...
12b f l i p u d ( b d y l i n ( 2 : e n d ) ) bdyl; bdyO f l i p u d ( b d y l i n ( 2 : e n d ) ) ] ;
7. C r e a t e a d d i t i o n a l boundary c e n t e r s OUTSIDE the domain
13 h = l / ( s n - l ) ; b d y l i n = ( h : h : l - h ) ' ;
14 bdyO = -h*ones(sn-2,1); bdyl = (1+h)*ones(sn-2,1);
15a b d y c t r s = [-h -h; b d y l i n bdyO; 1+h -h; b d y l b d y l i n ; ...
15b 1+h 1+h; f l i p u d ( b d y l i n ) bdyl; -h 1+h; bdyO f l i p u d ( b d y l i n ) ] ;
16 i n t c t r s = i n t d a t a ;
7. Create n e v a l - b y - n e v a l e q u a l l y spaced e v a l u a t i o n l o c a t i o n s
7o i n t h e u n i t square
17 g r i d = linspace(0,1neval); [xe.ye] = m e s h g r i d ( g r i d ) ;
18 e p o i n t s = [ x e ( : ) y e ( : ) ] ;
7o Compute e v a l u a t i o n m a t r i x
19 DM_inteval = D i s t a n c e M a t r i x ( e p o i n t s , i n t c t r s ) ;
20 LEM = L r b f ( e p , D M _ i n t e v a l ) ;
21 DM_bdyeval = DistanceMatrix(epoints,bdyctrs);
^ .Li.
40. Symmetric RBF Collocation in MATLAB 367
22 BEM = rbf(ep,DM_bdyeval);
23 EM = [LEM BEM];
24 exact = u ( e p o i n t s ( : , 1 ) , e p o i n t s ( : , 2 ) ) ;
% Compute b l o c k s f o r c o l l o c a t i o n m a t r i x
25 DM_IIdata = D i s t a n c e M a t r i x d n t d a t a , i n t c t r s ) ;
26 LLCM = L2rbf(ep,DM_IIdata);
27 DM_IBdata = D i s t a n c e M a t r i x d n t d a t a , b d y c t r s ) ;
28 LBCM = Lrbf(ep,DM_IBdata);
29 DM_BIdata = D i s t a n c e M a t r i x ( b d y d a t a , i n t c t r s ) ;
30 BLCM = Lrbf(ep,DM_BIdata);
31 DM_BBdata = D i s t a n c e M a t r i x ( b d y d a t a , b d y c t r s ) ;
32 BBCM = rbf(ep,DM_BBdata);
33 CM = [LLCM LBCM; BLCM BBCM];
% Create right-hand s i d e
34a r h s = [ L u ( i n t d a t a ( : , 1 ) , i n t d a t a ( : , 2 ) ) ; ...
34b sin(pi*bdydata(l:sn-1,1)); zeros(3*(sn-1),1)];
% Compute RBF s o l u t i o n
35 Pf = EM * (CM\rhs);
% Compute maximum e r r o r on e v a l u a t i o n g r i d
36 maxerr = n o r m ( P f - e x a c t , i n f ) ;
37 rms.err = norm(Pf-exact)/neval;
38 fprintf('RMS e r r o r : %e\n', r m s . e r r )
39. f p r i n t f ('Maximum e r r o r : /e\n' , maxerr)
/ P l o t c o l l o c a t i o n p o i n t s and c e n t e r s
0
As above we deal with the boundary by allowing the use of different collocation
points and centers along the boundary. This causes the collocation matrix to be
non-symmetric, and therefore the theoretical foundation of Chapter 38 no longer
applies, i.e., it is not clear that in this case the matrix is invertible. In order to
work with a "safe" symmetric (and guaranteed invertible) matrix one should replace
lines 13-15 with
b d y c t r s = bdydata;
Note that, contrary to the non-symmetric Kansa approach, we can do this for both
uniform and non-uniform interior points. In this case it is also possible to simplify
the assembly of the collocation matrix. We can remove lines 29-30 and replace
line 33 by
CM = [LLCM LBCM; LBCM' BBCM];
368 Meshfree Approximation Methods with MATLAB
Table 40.2 Symmetric collocation solution of Example 40.1 with Gaussians and I M Q s ,
e = 3 and uniform points with boundary centers outside the domain.
Gaussian IMQ
N
(interior points) RMS-error cond(>l) RMS-error cond(yl)
I t is r e m a r k a b l e , h o w e v e r , h o w s m a l l t h e difference i n p e r f o r m a n c e b e t w e e n t h e
s y m m e t r i c a n d n o n - s y m m e t r i c a p p r o a c h is. T h i s c a n be c o n c l u d e d b y c o m p a r i n g
t h e t a b l e s i n E x a m p l e 3 9 . 1 w i t h t h o s e i n E x a m p l e 4 0 . 1 . A l s o , F i g u r e 4 0 . 1 shows
e r r o r p l o t s for t h e t w o m e t h o d s u s i n g t h e same set o f p a r a m e t e r s , i.e., inverse
multiquadrics w i t h e = 3, N = 289 interior H a l t o n points and 64 boundary points
w i t h t h e b o u n d a r y centers p l a c e d o u t s i d e t h e d o m a i n as i n F i g u r e 3 9 . 1 .
E x a m p l e 4 0 . 2 . A M A T L A B i m p l e m e n t a t i o n o f t h e v a r i a b l e coefficient p r o b l e m o f
E x a m p l e 3 9 . 2 , w h i l e t h e o r e t i c a l l y possible, is v e r y c u m b e r s o m e u s i n g t h e s y m m e t r i c
40. Symmetric RBF Collocation in MATLAB 369
X10 x10
11.2
10.8
|0.6.fc
10.4
10.2
Fig. 40.1 Error plots for the collocation solution of Example 39.1 (Example 40.1) using I M Q s
with e 3 and N 289 interior Halton points; boundary centers outside domain. Kansa's method
(left) and symmetric method (right).
c o l l o c a t i o n m e t h o d . For e x a m p l e , since t h e d i f f e r e n t i a l o p e r a t o r C is g i v e n b y
t h e basic e x p a n s i o n for t h e R B F s o l u t i o n is
N B N
3= 1 3=NB + 1
with
4
a d A
+
= a(x, y)a(, + (a(x, y)b(, r,) + b(x, y)a(, r))) 9 g 2 2
V) - Kx, y) ) + 2
, dy dr) J dy dx
&
di dx
( da{x,y) db^rj) db(x,y) da(^r))\ d 2
db(x,y) dbfoy) d 2
2
V dx dr) dy d J dxdy dy dr, dy
370 Meshfree Approximation Methods with MATLAB
where
r 5
= {(x,y) x = - l , 0 < y < 1}.
P r o g r a m 40.2. HermiteLaplaceMixedBCTref_2D .m
% HermiteLaplaceMixedBCTref_2D
% S c r i p t t h a t performs Hermite c o l l o c a t i o n f o r 2D L a p l a c e equation
7, Note: Prog 36 i n T r e f e t h e n (2000), e x a c t s o l u t i o n not provided
/ C a l l s on: D i s t a n c e M a t r i x
0
8 intdata = 2*dsites-l;
% A d d i t i o n a l boundary c o l l o c a t i o n p o i n t s
9 sn = sqrt(N); bdylin = l i n s p a c e ( - 1 , 1 , s n ) ' ;
10 bdyl = ones(sn-1,1);
11a bdydata = [ b d y l i n d : end-1) -bdyl; bdyl b d y l i n d : end-1) ;
lib f l i p u d ( b d y l i n ( 2 : e n d ) ) bdyl; -bdyl f l i p u d ( b d y l i n ( 2 : e n d ) ) ] ;
/ Create a d d i t i o n a l boundary c e n t e r s OUTSIDE t h e domain
0
12 h = 2 / ( s n - l ) ; b d y l i n = (-l+h:h:1-h)';
13 bdyO = repmat(-1-h,sn-2,1); bdyl = repmat(1+h,sn-2,1);
14a bdyctrs = [-1-h -1-h; b d y l i n bdyO; 1+h -1-h; bdyl b d y l i n ; ...
14b 1+h 1+h; f l i p u d ( b d y l i n ) bdyl; -1-h 1+h; bdyO f l i p u d ( b d y l i n ) ] ;
15 i n t c t r s = intdata;
% Create neval-by-neval e q u a l l y spaced e v a l u a t i o n l o c a t i o n s
% i n the u n i t square
16 g r i d = l i n s p a c e ( - 1 , 1 , n e v a l ) ; [xe,ye] = m e s h g r i d ( g r i d ) ;
17 epoints = [ x e ( : ) y e ( : ) ] ;
% Compute e v a l u a t i o n matrix
18 DM_inteval = D i s t a n c e M a t r i x ( e p o i n t s , i n t c t r s ) ;
19 LEM = Lrbf(ep,DM_inteval);
20 DM_bdyeval = D i s t a n c e M a t r i x ( e p o i n t s , b d y c t r s ) ;
21 BEM = rbf(ep,DM_bdyeval);
22 EM = [LEM BEM] ;
7, Compute b l o c k s f o r c o l l o c a t i o n matrix
23 DM_IIdata = D i s t a n c e M a t r i x d n t d a t a , i n t c t r s ) ;
24 LLCM = L2rbf(ep,DM_IIdata);
25 DM_IBdata = D i s t a n c e M a t r i x d n t d a t a , b d y c t r s ) ;
26 LBCM = Lrbf(ep,DM_IBdata);
27 DM_BIdata = D i s t a n c e M a t r i x ( b d y d a t a , i n t c t r s ) ;
28 BLCM = Lrbf(ep,DM_BIdata);
29 DM_BBdata = D i s t a n c e M a t r i x ( b d y d a t a , b d y c t r s ) ;
30 BBCM = rbf(ep,DM_BBdata);
31 CM = [LLCM LBCM; BLCM BBCM];
7o Create right-hand s i d e
32a r h s = [ L u ( i n t d a t a ( : , 1 ) , i n t d a t a ( : , 2 ) ) ; z e r o s ( s n - 1 , 1 ) ; ...
32b 0.2*sin(3*pi*bdydata(sn:2*sn-2,2)); zeros((sn-l)/2,1);...
32c sin(pi*bdydata((5*sn-3)/2:3*sn-3,l)).~4; zeros(sn-l,1)];
7 Compute RBF s o l u t i o n
33 Pf = EM * (CM\rhs);
34 surf(xe,ye,reshape(Pf,neval,neval));
35 view(-20,45), a x i s ( [ - l 1 - 1 1 -.2 1 ] ) ;
36 t e x t ( 0 , . 8 , . 5 , s p r i n t f ( > u ( 0 , 0 ) = 7.12 . lOf ' ,Pf (841) ) )
372 Meshfree Approximation Methods with MATLAB
Fig. 40.2 Plots for solution of Example 40.3 using pseudospectral method with 361 points from
[Trefethen (2000)] (left), and with symmetric collocation using I M Q s with e = 3 and N = 289
uniform interior points; 64 additional boundary centers outside domain.
W e n o t e t h a t t h e q u a l i t y o f t h e t w o s o l u t i o n s d i s p l a y e d i n F i g u r e 40.2 is q u i t e
s i m i l a r . T h e t o t a l n u m b e r o f p o i n t s u s e d for t h e P S s o l u t i o n is 3 6 1 , w h i l e 353 p o i n t s
(289 i n t e r i o r p l u s 64 b o u n d a r y ) are used for t h e R B F s o l u t i o n .
A l l i n a l l , t h e n o n - s y m m e t r i c ( K a n s a ) m e t h o d seems t o p e r f o r m j u s t a l i t t l e b i t
b e t t e r t h a n t h e s y m m e t r i c ( H e r m i t e ) m e t h o d ( c o m p a r e T a b l e s 3 9 . 1 a n d 39.2 w i t h
T a b l e s 4 0 . 1 a n d 4 0 . 2 ) . F o r t h e s a m e v a l u e o f t h e shape p a r a m e t e r e t h e e r r o r s as w e l l
as t h e c o n d i t i o n n u m b e r s are s l i g h t l y s m a l l e r . T h i s does n o t agree w i t h t h e f i n d i n g s
i n [ L a r s s o n a n d F o r n b e r g (2003)] w h e r e t h e a u t h o r s c o n c l u d e d t h a t t h e s y m m e t r i c
m e t h o d is m o r e a c c u r a t e (see also o u r d i s c u s s i o n a t t h e e n d o f C h a p t e r 3 8 ) .
An a d v a n t a g e o f t h e H e r m i t e a p p r o a c h over K a n s a ' s m e t h o d is t h a t t h e c o l -
l o c a t i o n m a t r i c e s r e s u l t i n g f r o m t h e H e r m i t e a p p r o a c h are s y m m e t r i c i f a l l o f t h e
centers c o i n c i d e w i t h t h e c o l l o c a t i o n p o i n t s . T h e r e f o r e t h e a m o u n t o f c o m p u t a t i o n
c a n be r e d u c e d c o n s i d e r a b l y b y u s i n g a solver for s y m m e t r i c s y s t e m s . Since K a n s a ' s
m e t h o d r e q u i r e s fewer d e r i v a t i v e s o f t h e basic f u n c t i o n i t has t h e a d d e d advan-
tages o f b e i n g s i m p l e r t o i m p l e m e n t a n d a p p l i c a b l e t o p r o b l e m s w i t h less s m o o t h
solutions. M o r e o v e r , as w e saw i n E x a m p l e s 39.2 a n d 40.2, t h e non-symmetric
m e t h o d is m u c h s i m p l e r for p r o b l e m s w i t h n o n - c o n s t a n t coefficients. Further-
r
m o r e , i t is n o t clear h o w t o d e a l w i t h n o n - l i n e a r p r o b l e m s u s i n g t h e s y m m e t r i c
m e t h o d . F o r a t r e a t m e n t o f n o n - l i n e a r P D E s based o n t h e n o n - s y m m e t r i c c o l l o c a -
t i o n m e t h o d w i t h i n a n o p e r a t o r N e w t o n f r a m e w o r k see [ B e r n a l a n d K i n d e l a n ( 2 0 0 6 ) ;
Fasshauer (2001a)].
A n o t h e r c o n t r a p o s i t i o n o f t h e t w o m e t h o d s w i l l be p r e s e n t e d i n t h e c o n t e x t o f
p s e u d o s p e c t r a l m e t h o d s i n C h a p t e r 42.
B o t h o f t h e m e t h o d s d e s c r i b e d i n t h i s s e c t i o n have b e e n i m p l e m e n t e d for m a n y
different a p p l i c a t i o n s . Comparisons of the two methods were r e p o r t e d i n , e.g.,
[Fasshauer (1997); L a r s s o n a n d F o r n b e r g ( 2 0 0 3 ) ; P o w e r a n d B a r r a c o ( 2 0 0 2 ) ] .
I
'30
Chapter 41
W h i l e K a n s a i n i t i a l l y p r o p o s e d t h e n o n - s y m m e t r i c c o l l o c a t i o n m e t h o d for m u l t i -
q u a d r i c s , t h e general m e t h o d applies t o a n y k i n d o f R B F i n c l u d i n g those w i t h
c o m p a c t s u p p o r t . T h e same goes for t h e s y m m e t r i c m e t h o d . W e n o w present M A T -
6
L A B code for t h e s y m m e t r i c c o l l o c a t i o n m e t h o d based o n W e n d l a n d ' s C function
3 2
>3,3(0 (1 r ) ^ . ( 3 2 r + 2 5 r + 8r + 1). I t s L a p l a c i a n a n d b i h a r m o n i c d e r i v a t i v e s
are g i v e n b y
6 3 2
V V , 3 ( r ) = 4 4 ( 1 - r) (88r
3 + + 3r - 6 r - 1),
4 3 2
V V , ( r ) = 1 0 5 6 ( 1 - r ) _ ( 2 9 7 r - 2 1 2 r + 16r + 4 ) .
3 3
375
376 Meshfree Approximation Methods with MATLAB
P r o g r a m 41.1. HermiteLaplace_2D_CSRBF .m
7. HermiteLaplace_2D_CSRBF
% S c r i p t t h a t performs Hermite c o l l o c a t i o n f o r 2D L a p l a c e equation
7, w i t h s p a r s e m a t r i c e s
7. C a l l s on: DistanceMatrixCSRBF
7o Wendland C6 RBF, i t s L a p l a c i a n and double L a p l a c i a n
1 r b f = @(e,r) r . ~ 8 . * ( 6 6 * s p o n e s ( r ) - 1 5 4 * r + 1 2 1 * r . ~ 2 - 3 2 * r . ~ 3 ) ;
2 L r b f = @(e,r) 44*e~2*r."6.*(84*spones(r)-264*r+267*r.~2-88*r."3);
3a L2rbf = @(e,r) 1056*e~4*r."4.*...
3b (105*spones(r)-483*r+679*r.~2-297*r.~3);
4 ep = 0.25;
7o E x a c t s o l u t i o n and i t s L a p l a c i a n f o r t e s t problem
5 u = @(x,y) s i n ( p i * x ) . * c o s ( p i * y / 2 ) ;
6 Lu = @(x,y) - 1 . 2 5 * p i ~ 2 * s i n ( p i * x ) . * c o s ( p i * y / 2 ) ;
7o Number and type of c o l l o c a t i o n p o i n t s
7 N = 289; g r i d t y p e = 'h> ;
8 n e v a l = 40;
7o Load ( i n t e r i o r ) c o l l o c a t i o n p o i n t s
9 name = s p r i n t f ( 'Data2D_7od7oS' ,N .gridtype) ; l o a d (name) ;
10 i n t d a t a = d s i t e s ;
7. A d d i t i o n a l ( e q u a l l y spaced) boundary c o l l o c a t i o n p o i n t s
11 s n = s q r t ( N ) ; b d y l i n = l i n s p a c e ( 0 , 1 , s n ) ' ;
12 bdyO = z e r o s ( s n - 1 , 1 ) ; bdyl = o n e s ( s n - 1 , 1 ) ;
13a bdydata = [ b d y l i n d : end-1) bdyO; bdyl b d y l i n d : end-1) ; ...
13b f l i p u d ( b d y l i n ( 2 : e n d ) ) b d y l ; bdyO f l i p u d ( b d y l i n ( 2 : e n d ) ) ] ;
7o L e t c e n t e r s c o i n c i d e w i t h ALL d a t a s i t e s
14 b d y c t r s = bdydata;
15 c t r s = [ i n t d a t a ; b d y c t r s ] ;
7o C r e a t e n e v a l - b y - n e v a l e q u a l l y spaced e v a l u a t i o n l o c a t i o n s
7o i n t h e u n i t square
16 g r i d = l i n s p a c e ( 0 , 1 , n e v a l ) ; [xe,ye] = m e s h g r i d ( g r i d ) ;
17 e p o i n t s = [ x e ( : ) y e ( : ) ] ;
41- Collocation with CSRBFs in MATLAB 377
'/, Compute e v a l u a t i o n m a t r i x
18 DM_inteval = D i s t a n c e M a t r i x C S R B F ( e p o i n t s , i n t d a t a , e p ) ;
19 DM_bdyeval = D i s t a n c e M a t r i x C S R B F ( e p o i n t s , b d y c t r s , e p ) ;
20 LEM = L r b f ( e p , D M _ i n t e v a l ) ;
21 BEM = rbf(ep,DM_bdyeval);
22 EM = [LEM BEM];
23 exact = u ( e p o i n t s ( : , 1 ) , e p o i n t s ( : , 2 ) ) ;
% Compute blocks f o r c o l l o c a t i o n m a t r i x
24 DM_IIdata = D i s t a n c e M a t r i x C S R B F ( i n t d a t a , i n t d a t a , e p ) ;
25 DM_IBdata = D i s t a n c e M a t r i x C S R B F ( i n t d a t a , b d y c t r s , e p ) ;
26 DM_BIdata = DistanceMatrixCSRBF(bdydata,intdata,ep);
27 DM_BBdata = DistanceMatrixCSRBF(bdydata,bdyctrs,ep);
28 LLCM = L2rbf(ep,DM_IIdata);
29 LBCM = Lrbf(ep,DM_IBdata);
30 BLCM = Lrbf(ep,DM_BIdata);
31 BBCM = rbf(ep,DM_BBdata);
32 CM = [LLCM LBCM; BLCM BBCM];
7. Create right-hand s i d e
33a r h s = [ L u ( i n t d a t a ( : , 1 ) , i n t d a t a ( : , 2 ) ) ; ...
33b sin(pi*bdydata(l:sn-1,1)); zeros(3*(sn-1),1)];
% Compute RBF s o l u t i o n
34 Pf = EM * (CM\rhs);
% Compute maximum e r r o r on e v a l u a t i o n g r i d
35 maxerr = n o r m ( P f - e x a c t , i n f ) ;
36 rms_err = n o r m ( P f - e x a c t ) / n e v a l ;
37 fprintf('RMS e r r o r : %e\n', r m s _ e r r )
38 fprintf('Maximum e r r o r : %e\n', maxerr)
% P l o t c o l l o c a t i o n p o i n t s and c e n t e r s
39 hold on; p l o t ( i n t d a t a ( : , 1 ) , i n t d a t a ( : , 2 ) , ' b o ' ) ;
40 p l o t ( b d y d a t a ( : , 1 ) , b d y d a t a ( : , 2 ) , ' r x ' ) ;
41 p l o t ( b d y c t r s ( : , 1 ) , b d y c t r s ( : , 2 ) , ' g x ' ) ; hold o f f
42 fview = [-30,30]; '/. v i e w i n g angles f o r p l o t
43 P l o t S u r f ( x e , y e , P f , n e v a l , e x a c t , m a x e r r , f v i e w ) ;
44 PlotError2D(xe,ye,Pf,exact,maxerr,neval,fview);
% Compute e v a l u a t i o n m a t r i x
DM_eval = D i s t a n c e M a t r i x C S R B F ( e p o i n t s , c t r s , e p ) ;
EM = rbf(ep,DM_eval);
exact = u ( e p o i n t s ( : , 1 ) , e p o i n t s ( : , 2 ) ) ;
% Compute b l o c k s f o r c o l l o c a t i o n matrix
378 Meshfree Approximation Methods with MATLAB
DM_intdata = D i s t a n c e M a t r i x C S R B F ( i n t d a t a , c t r s , e p ) ;
DM_bdydata = D i s t a n c e M a t r i x C S R B F ( b d y d a t a , c t r s , e p ) ;
LCM = Lrbf(ep,DM_intdata);
BCM = rbf(ep,DM_bdydata);
CM = [LCM; BCM];
stationary non-stationary
stationary non-stationary
x 10~ 3
x 10'
y o o x y o o
Fig. 41.1 Plots for solution of Example 40.1 with non-symmetric (top) and symmetric (bottom)
collocation using C S R B F s with e = 2 (left) and e 0.25 (right) and N = 289 interior Halton
points; boundary centers coincide with equally spaced boundary collocation points.
W e e n d t h e discussion o f t h e c o l l o c a t i o n a p p r o a c h b y l o o k i n g a t a m u l t i l e v e l i m p l e -
mentation of R B F collocation w i t h compactly supported functions.
T h e m o s t s i g n i f i c a n t difference b e t w e e n t h e use o f c o m p a c t l y s u p p o r t e d RBFs
for s c a t t e r e d d a t a i n t e r p o l a t i o n a n d for t h e n u m e r i c a l s o l u t i o n o f P D E s b y c o l l o c a -
t i o n appears w h e n we t u r n t o t h e m u l t i l e v e l a p p r o a c h . R e c a l l t h a t t h e use o f t h e
m u l t i l e v e l m e t h o d is m o t i v a t e d b y o u r desire t o o b t a i n a c o n v e r g e n t scheme w h i l e a t
t h e same t i m e k e e p i n g t h e b a n d w i d t h f i x e d , a n d t h u s t h e c o m p u t a t i o n a l c o m p l e x i t y
at O(N).
H e r e is a n a d a p t a t i o n o f t h e s t a t i o n a r y m u l t i l e v e l a l g o r i t h m o f C h a p t e r 32 t o
t h e case o f a c o l l o c a t i o n s o l u t i o n o f t h e l i n e a r p r o b l e m Lu = /:
(1) L e t u 0 = 0
(2) For k = 1,2, ...,K do
(b) U p d a t e u k < u -i
k + u k
P r o g r a m 4 1 . 2 . ML_HermiteLaplaceCSRBF2D.m
7. M L _ H e r m i t e L a p l a c e C S R B F 2 D
% Script that performs s y m m e t r i c m u l t i l e v e l RBF c o l l o c a t i o n
7, u s i n g s p a r s e matrices
7. C a l l s o n : D i s t a n c e M a t r i x C S R B F
7o W e n d l a n d C6 RBF, i t s L a p l a c i a n a n d d o u b l e Laplacian
1 r b f = @(e,r) r.~8.*(66*spones(r)-154*r+121*r.~2-32*r."3);
2 Lrbf = @(e,r) 4 4 * e ~ 2 * r . ""6 . * ( 8 4 * s p o n e s ( r ) - 2 6 4 * r + 2 6 7 * r . " 2 - 8 8 * r . ~ 3 ) ;
3a L 2 r b f = @(e,r) 1056*e~4*r."4.*...
3b (105*spones(r)-483*r+679*r.~2-297*r.~3);
7o E x a c t s o l u t i o n a n d i t s Laplacian for test problem
4 u = @(x,y) s i n ( p i * x ) . * c o s ( p i * y / 2 ) ;
5 Lu = @(x,y) - 1 . 2 5 * p i ~ 2 * s i n ( p i * x ) . * c o s ( p i * y / 2 ) ;
6 K = 6; n e v a l = 40; g r i d t y p e = 'h';
7 ep = 0 . 5 * 2 . " [ 0 : K - 1 ] ;
7o C r e a t e n e v a l - b y - n e v a l e q u a l l y s p a c e d e v a l u a t i o n locations
7o i n t h e u n i t square
8 grid = linspace(0,1,neval); [xe,ye] = meshgrid(grid);
9 epoints = [xe(:) ye(:)];
,Lx
382 Meshfree Approximation Methods with MATLAB
% Compute exact s o l u t i o n
10 exact = u ( e p o i n t s ( : , 1 ) , e p o i n t s ( : , 2 ) ) ;
11 Rf_old = zeros(17,l);
12 f o r k=l:K
13 Nl = ( 2 ' k + l ) ~ 2 ; N2 = ( 2 " ( k + l ) + l ) ' 2 ;
14 namel = s p r i n t f ( 'Data2D_/d/s' ,N1,gridtype) ;
0
0
15 name2 = s p r i n t f ( Data2D_ /od / s' ,N2, g r i d t y p e ) ;
, 0
0
16 load(name2)
/ A d d i t i o n a l boundary p o i n t s f o r r e s i d u a l e v a l u a t i o n
0
/ p o i n t s ( r e s p o i n t s ) and c e n t e r s
0
40 forj=l:k
41- Collocation with CSRBFs in MATLAB 383
'/, P l o t c o l l o c a t i o n s o l u t i o n
78 fview = [-30,30];
79 PlotSurf(xe,ye,Pf,neval,exact,maxerr,fview);
80 PlotError2D(xe,ye,Pf,exact,maxerr,neval,fview);
81 end
DM_intdata = D i s t a n c e M a t r i x C S R B F ( i n t d a t a , c t r s { k } , e p ( k ) ) ;
DM_bdydata = D i s t a n c e M a t r i x C S R B F ( b d y d a t a , c t r s { k } , e p ( k ) ) ;
LCM = L r b f ( e p ( k ) , D M _ i n t d a t a ) ;
BCM = rbf(ep(k),DM_bdydata);
CM = [LCM; BCM];
lines 41-49 b y
DM_intres = D i s t a n c e M a t r i x C S R B F ( i n t r e s , c t r s { j } , e p ( j ) ) ;
DM_bdyres = D i s t a n c e M a t r i x C S R B F ( b d y r e s , c t r s - C j } , e p ( j ) ) ;
LRM = L r b f ( e p ( j ) , D M _ i n t r e s ) ;
BRM = rbf(ep(j),DM_bdyres);
RM{j} = [LRM; BRM];
DM_eval = D i s t a n c e M a t r i x C S R B F ( e p o i n t s , c t r s f k } , e p ( k ) ) ;
EM = rbf(ep(k),DM_eval);
symmetric non-symmetric
We n o t e t h a t t h e non-convergence b e h a v i o r c a n be o b s e r v e d for b o t h t h e s y m -
metric and the non-symmetric approach. However, w i t h the non-symmetric ap-
p r o a c h t h e convergence ceases a t a s i g n i f i c a n t l y l a t e r stage. T h e e x p l a n a t i o n for t h e
different convergence b e h a v i o r o f t h e t w o m e t h o d s is t h e same as t h a t p r e s e n t e d a t
41. Collocation with CSRBFs in MATLAB 385
t h e end o f t h e p r e v i o u s e x a m p l e . T h e h i g h e r d e r i v a t i v e s r e q u i r e d for t h e s y m m e t r i c
m e t h o d are n u m e r i c a l l y o f a m o r e l o c a l i z e d n a t u r e even t h o u g h here t h e spar-
s i t y p a t t e r n s o f t h e s y m m e t r i c a n d n o n - s y m m e t r i c m a t r i c e s are i d e n t i c a l (c.f. the
r i g h t - m o s t c o l u m n i n Tables 41.3 a n d 4 1 . 4 ) .
symmetric non-symmetric
A l s o , t h e a c c u r a c y t h a t c a n be o b t a i n e d w i t h t h e m u l t i l e v e l a l g o r i t h m w h i l e
better t h a n using the s t a t i o n a r y approach w i t h o u t residual i t e r a t i o n i n E x a m p l e 41.1
is c o n s i d e r a b l y p o o r e r t h a n w h a t w e were able t o o b t a i n w i t h g l o b a l l y s u p p o r t e d
f u n c t i o n s (c.f. E x a m p l e s 3 9 . 1 , 4 0 . 1 , or t h e n o n - s t a t i o n a r y p a r t o f E x a m p l e 4 1 . 1 ) .
T h e same s a t u r a t i o n p h e n o m e n o n was o b s e r v e d b y W e n d l a n d i n t h e c o n t e x t
of a m u l t i l e v e l G a l e r k i n a l g o r i t h m for c o m p a c t l y s u p p o r t e d R B F s (see [ W e n d l a n d
(1999b)] as w e l l as o u r discussion i n C h a p t e r 4 4 ) .
I t has been suggested t h a t t h e convergence b e h a v i o r o f t h e m u l t i l e v e l c o l l o c a -
t i o n a l g o r i t h m m a y be l i n k e d t o t h e p h e n o m e n o n o f a p p r o x i m a t e a p p r o x i m a t i o n .
H o w e v e r , so far n o c o n n e c t i o n has been e s t a b l i s h e d .
A s was s h o w n i n [Fasshauer ( 1 9 9 9 d ) ] a possible r e m e d y for t h e non-convergence
p r o b l e m is . O n e m i g h t also e x p e c t t h a t a s l i g h t l y different s c a l i n g o f t h e s u p p o r t
sizes o f t h e basis f u n c t i o n s (such t h a t t h e b a n d w i d t h o f t h e m a t r i x is a l l o w e d t o i n -
crease s l o w l y f r o m one i t e r a t i o n t o t h e n e x t , i.e., m o v i n g t o w a r d t h e n o n - s t a t i o n a r y
s e t t i n g ) w i l l lead t o b e t t e r r e s u l t s . I n [Fasshauer (1999d)] i t was s h o w n t h a t t h i s is
i n fact t r u e . H o w e v e r , s m o o t h i n g f u r t h e r i m p r o v e d t h e convergence. A discussion
of t h e idea o f p o s t - c o n d i t i o n i n g v i a s m o o t h i n g is b e y o n d t h e scope o f t h i s t e x t . W e
refer t h e reader t o t h e p a p e r [Fasshauer a n d J e r o m e (1999)].
Chapter 42
w h e r e u = [u(xi),..., U(XN)] T
is t h e v e c t o r o f values o f t h e a p p r o x i m a t e s o l u t i o n
u a t t h e c o l l o c a t i o n p o i n t s . F r e q u e n t l y , o r t h o g o n a l p o l y n o m i a l s such as C h e b y s h e v
p o l y n o m i a l s are used as basis f u n c t i o n s , a n d t h e c o l l o c a t i o n p o i n t s are c o r r e s p o n d i n g
C h e b y s h e v p o i n t s . I n t h i s case t h e entries o f t h e d i f f e r e n t i a t i o n m a t r i x are e x p l i c i t l y
k n o w n (see, e.g., [Trefethen ( 2 0 0 0 ) ] ) .
387
388 Meshfree Approximation Methods with MATLAB
t r a n s p o r t e q u a t i o n (c.f. t h e n u m e r i c a l e x p e r i m e n t s i n S e c t i o n 43.1.1 b e l o w ) :
u {x,t)
t + cu (x,t) x = 0, x > - 1 , t > 0 , (42.3)
u ( - l , * ) = 0,
u(x,0) = / ( x ) .
I n o r d e r t o solve t h i s p r o b l e m w e d i s c r e t i z e t h e s p a t i a l d o m a i n w i t h t h e c o l l o c a t i o n
p o i n t s Xi, i = 1 , . . . , N, so t h a t for a n y fixed time t n we h a v e t h e v e c t o r =
T
[u(xi,t ),...
n ,u(xN,t )] n o f values o f t h e a p p r o x i m a t e s o l u t i o n . I n o r d e r t o m a r c h
i n t i m e w e use a s t a n d a r d f o r w a r d difference a p p r o x i m a t i o n o f t h e t i m e d e r i v a t i v e ,
i.e.,
for t h e s o l u t i o n o f ( 4 2 . 3 ) . T h u s , t h e r e is no n e e d as w i t h t h e R B F c o l l o c a t i o n
m e t h o d s s t u d i e d earlier t o c o m p u t e t h e e x p a n s i o n coefficients Cj i n t h e represen-
t a t i o n (42.1) o f t h e a p p r o x i m a t e s o l u t i o n . A l s o , n o l i n e a r s y s t e m s are s o l v e d d u r i n g
t h e t i m e - m a r c h i n g phase o f t h e code. T h e d e t e r m i n a t i o n o f t h e d i f f e r e n t i a t i o n m a -
t r i x w i l l , however, i n v o l v e s o l u t i o n o f a l i n e a r s y s t e m i n t h e R B F f r a m e w o r k .
u = Ac, (42.5)
42. Using Radial Basis Functions in Pseudospectral Mode 389
I f w e a g a i n e v a l u a t e at t h e c o l l o c a t i o n p o i n t s Xi, t h e n we get i n m a t r i x - v e c t o r
notation
u' = A c, x (42.6)
F o r m o r e c o m p l e x l i n e a r d i f f e r e n t i a l o p e r a t o r s w i t h c o n s t a n t coefficients we
p r o c e e d i n a n analogous fashion t o o b t a i n a d i s c r e t i z e d d i f f e r e n t i a l o p e r a t o r (differ-
entiation matrix)
L = A A~\ C (42.7)
E x a m p l e 4 2 . 2 . T o o b t a i n a l i t t l e m o r e i n s i g h t i n t o t h e special p r o p e r t i e s o f r a -
d i a l basis f u n c t i o n s let us p r e t e n d t o solve t h e ill-posed linear elliptic P D E of the
f o r m Cu = f b y i g n o r i n g b o u n d a r y c o n d i t i o n s . A n a p p r o x i m a t e s o l u t i o n at the
c o l l o c a t i o n p o i n t s Xi m i g h t be o b t a i n e d b y s o l v i n g t h e discrete linear s y s t e m
Lu = /,
u = L- f = 1
A(Acr f, 1
F i r s t we discuss h o w t h e linear e l l i p t i c P D E p r o b l e m
Cu = / in Q
u = g on T = dfl
M P
Lr = (42.8)
0 I
7 (42.9)
.9
w h e r e t h e vectors / a n d g collect t h e values o f / a n d g a t t h e respective c o l l o c a -
t i o n p o i n t s , a n d t h e v e c t o r u o f g r i d values o f t h e a p p r o x i m a t e s o l u t i o n has been
r e o r d e r e d a l o n g w i t h t h e c o l u m n s o f t h e m a t r i x so t h a t i t c a n be d e c o m p o s e d i n t o
u = [UZ,UB] -
T
Here ux collects t h e values i n t h e i n t e r i o r o f t h e d o m a i n fl a n d u g
collects t h e values o n t h e b o u n d a r y .
S o l v i n g (42.9) for u& = g a n d s u b s t i t u t i n g t h i s b a c k i n t o t h e t o p p a r t w e o b t a i n
u T = M-\f-Pg),
We n o w see t h a t a l l t h a t r e a l l y m a t t e r s is w h e t h e r t h e m a t r i x M is i n v e r t i b l e . I n t h e
case o f Chebyshev p o l y n o m i a l basis f u n c t i o n s a n d t h e s e c o n d - d e r i v a t i v e o p e r a t o r
c o u p l e d w i t h different t y p e s o f b o u n d a r y c o n d i t i o n s t h i s q u e s t i o n has been answered
a f f i r m a t i v e l y b y G o t t l i e b a n d L u s t m a n (see [ G o t t l i e b a n d L u s t m a n (1983)], o r , e.g.,
S e c t i o n 11.4 o f [ C a n u t o et al. (1988)]). P r o g r a m 15 o f [ T r e f e t h e n (2000)] also
p r o v i d e s a discussion a n d a n i l l u s t r a t i o n o f one such p r o b l e m . W e w i l l l o o k a t t h e
m a t r i x M i n the R B F context i n t h e next section.
Once b o u n d a r y c o n d i t i o n s are a d d e d t o t h e P D E Cu = / , t h e n e i t h e r o f t h e t w o
c o l l o c a t i o n approaches discussed i n C h a p t e r s 3 8 - 4 1 are c o m m o n l y used i n t h e R B F
392 Meshfree Approximation Methods with MATLAB
C
7" (42.11)
A .9.
Ac
u = Ac = A
A
'Ac 1
=
A- .
A
I n d e e d , we have
'Ac
A -l _ 'M P~
A 0 /
w i t h t h e same blocks M, P , 0 a n d / as above. T o see t h i s we i n t r o d u c e t h e f o l l o w i n g
notation:
r T
A = and A 1
= [b x ... b]
N
a
L NJ
42. Using Radial Basis Functions in Pseudospectral Mode 393
T
Ac a
C , N - N B
A T
a
N - N + l B
T
a N
T
Ac 1
a
C , N - N
A ' = T
B
[&i ... b ] N
A a
N - N + l B
T
aN
AcAj 1
A A I -i
C B
AA.
1 1
Here we p a r t i t i o n e d A i n t o t h e blocks A x w i t h N N& c o l u m n s c o r r e s p o n d i n g t o
1
i n t e r i o r p o i n t s , a n d A^ with columns corresponding to the remaining boundary
p o i n t s . A l s o , we m a d e use o f t h e fact t h a t afbj = 5.13
T h i s is t h e same as (see ( 4 2 . 8 ) )
M P
0 /
L = ArA - l [AcAj 1
Ac 1
A^ ]
'Ac 1
'M P~
A' =
_A _ 0 /
T h e second R B F c o l l o c a t i o n m e t h o d is t h e s y m m e t r i c a p p r o a c h whose s y s t e m m a -
t r i x is i n v e r t i b l e for a l l g r i d c o n f i g u r a t i o n s a n d a n y s t r i c t l y p o s i t i v e d e f i n i t e basic
f u n c t i o n as e x p l a i n e d i n C h a p t e r 38.
R e c a l l t h a t for t h e s y m m e t r i c c o l l o c a t i o n m e t h o d one uses a different basis t h a n
for t h e n o n - s y m m e t r i c a p p r o a c h ( 4 2 . 1 0 ) , i.e., a different f u n c t i o n space t o r e p r e -
sent t h e a p p r o x i m a t e s o l u t i o n . F o r t h e same e l l i p t i c P D E a n d D i r i c h l e t b o u n d a r y
c o n d i t i o n s as above one n o w s t a r t s w i t h
N-N N
(*)= Y. + E ^;(*)-
B
c 42 12
j=N-N B + l
(-)
Since t h e <3>j are assumed t o be r a d i a l f u n c t i o n s , i.e., $>j(x) = <p(\\x xj\\) the
f u n c t i o n a l s | c a n be i n t e r p r e t e d as a n a p p l i c a t i o n o f t o ip v i e w e d as a f u n c t i o n
of t h e second v a r i a b l e f o l l o w e d b y e v a l u a t i o n a t X j (see t h e discussion i n C h a p t e r s 36
T
a n d 3 8 ) . O n e o b t a i n s t h e coefficients c = [ c i , c # ] b y solving the linear system
A s a l r e a d y m e n t i o n e d , i t is w e l l k n o w n t h a t t h e s y s t e m m a t r i x i n (42.13) is
i n v e r t i b l e for s t r i c t l y p o s i t i v e d e f i n i t e r a d i a l f u n c t i o n s . T h i s implies t h a t we can
o b t a i n t h e a p p r o x i m a t e s o l u t i o n at a n y p o i n t x b y u s i n g t h e c o m p u t e d coefficients
c i n ( 4 2 . 1 2 ) . T h u s t h i s R B F c o l l o c a t i o n m e t h o d is r a t h e r s i m i l a r t o K a n s a ' s n o n -
s y m m e t r i c m e t h o d w i t h t h e n o t a b l e difference t h a t t h e c o l l o c a t i o n a p p r o a c h is w e l l -
defined.
A nice c o n n e c t i o n b e t w e e n t h e s y m m e t r i c a n d n o n - s y m m e t r i c c o l l o c a t i o n m e t h -
ods appears i f we consider t h e c o r r e s p o n d i n g s y m m e t r i c p s e u d o s p e c t r a l approaches.
T o t h i s e n d we use t h e e x p a n s i o n (42.12) o n w h i c h t h e s y m m e t r i c R B F c o l l o c a -
t i o n m e t h o d is based as s t a r t i n g p o i n t for a p s e u d o s p e c t r a l m e t h o d , i.e.,
N-N B N
u(x)= Y c *${x)+
j Y, c
^ ( * ) - (42-14)
j=N-N +l B
T
u(x) = [a^. (x)$ a (x)]
c
B
T
w i t h a p p r o p r i a t e r o w v e c t o r s a^{x) a n d a (x). Evaluated o n the g r i d of colloca-
t i o n p o i n t s t h i s becomes
T
cx
u=[A * c A]
c
B
T
Here t h e b l o c k s A^z a n d A o f t h e e v a l u a t i o n m a t r i x are r e c t a n g u l a r m a t r i c e s w i t h
entries
( i ) i j = <p(\\Xi
T
-Xj\\), 1,...,N, j = N - N B + l,...,N,
T -l
Acca Ac 7"
_A _ Ace A_ .9.
Acc* Ac 'Ac
(42.15)
Ae c A_ A
w h e r e we a l r e a d y i n c o r p o r a t e d t h e b o u n d a r y c o n d i t i o n s i n a w a y a n a l o g o u s t o o u r
earlier discussion.
T h e p r o b l e m w i t h t h e d i f f e r e n t i a t i o n m a t r i x (42.15) for t h e s y m m e t r i c pseu-
d o s p e c t r a l a p p r o a c h is t h a t we c a n n o t be assured t h a t t h e m e t h o d itself, i.e., the
d i s c r e t i z e d d i f f e r e n t i a l o p e r a t o r , is w e l l - d e f i n e d . I n fact, d u e t o t h e Hon-Schaback
c o u n t e r e x a m p l e [ H o n a n d Schaback (2001)] w e k n o w t h a t t h e r e e x i s t g r i d c o n f i g u -
r a t i o n s for w h i c h t h e "basis" used for t h e s y m m e t r i c P S e x p a n s i o n is n o t l i n e a r l y
independent.
T h e r e f o r e , t h e s y m m e t r i c R B F c o l l o c a t i o n a p p r o a c h is w e l l - s u i t e d for p r o b l e m s
t h a t r e q u i r e i n v e r s i o n o f t h e d i f f e r e n t i a l o p e r a t o r (such as e l l i p t i c P D E s ) . Subse-
q u e n t e v a l u a t i o n o n a g r i d m a k e s t h e s y m m e t r i c c o l l o c a t i o n look like a pseudospec-
t r a l m e t h o d b u t i t m a y n o t be one (since we m a y n o t b e able t o f o r m u l a t e t h e
pseudospectral Ansatz).
T
u(x) = p (x)c, (42.16)
Vu(x) = /(X),
w h e r e / is a piecewise d e f i n e d f u n c t i o n t h a t collects t h e f o r c i n g f u n c t i o n s i n b o t h
the interior and on the boundary.
N o w we e v a l u a t e t h e t w o r e p r e s e n t a t i o n s (42.16) a n d (42.17) o n t h e g r i d o f
c o l l o c a t i o n p o i n t s X i , i = 1 , . . . , N, and obtain
u = Pc and UD = Qc
T
w i t h m a t r i c e s P a n d Q whose r o w s c o r r e s p o n d t o e v a l u a t i o n o f t h e v e c t o r s p (x)
T
a n d q (x), respectively, a t t h e c o l l o c a t i o n p o i n t s X i , i = 1 , . . . , N. T h e discretized
b o u n d a r y v a l u e p r o b l e m is t h e n
uv = f Qc = f, (42.18)
w h e r e / is t h e v e c t o r o f values o f / o n t h e g r i d .
F o r t h e n o n - s y m m e t r i c c o l l o c a t i o n a p p r o a c h t h e e v a l u a t i o n m a t r i x P is t h e s t a n -
d a r d R B F i n t e r p o l a t i o n m a t r i x , a n d t h e d e r i v a t i v e m a t r i x Q is K a n s a ' s m a t r i x ,
whereas for s y m m e t r i c c o l l o c a t i o n P is g i v e n b y t h e t r a n s p o s e o f K a n s a ' s m a t r i x ,
a n d Q is t h e s y m m e t r i c c o l l o c a t i o n m a t r i x .
I t is o u r g o a l t o f i n d t h e v e c t o r u, i.e., t h e values o f t h e a p p r o x i m a t e s o l u t i o n
o n t h e g r i d o f c o l l o c a t i o n p o i n t s . T h e r e are t w o w a y s b y w h i c h we c a n p o t e n t i a l l y
o b t a i n t h i s answer:
T h e n t h e d i s c r e t i z e d b o u n d a r y v a l u e p r o b l e m (42.18) becomes
x
QP~ u = /,
a n d we c a n o b t a i n t h e s o l u t i o n v e c t o r u b y s o l v i n g t h i s s y s t e m .
398 Meshfree Approximation Methods with MATLAB
42.6 Summary
A c
C A c
L r = [Acs i T
]
As c A
X 4
Chapter 43
R B F - P S Methods in MATLAB
43.1 C o m p u t i n g the R B F - D i f f e r e n t i a t i o nM a t r i x in M A T L A B
W e b e g i n b y e x p l a i n i n g h o w t o c o m p u t e t h e d i s c r e t i z e d d i f f e r e n t i a l o p e r a t o r s (dif-
f e r e n t i a t i o n m a t r i c e s ) t h a t came u p i n o u r discussion i n t h e p r e v i o u s c h a p t e r .
I n o r d e r t o c o m p u t e , for e x a m p l e , a f i r s t - o r d e r d i f f e r e n t i a t i o n m a t r i x we need
t o r e m e m b e r t h a t b y t h e c h a i n r u l e t h e d e r i v a t i v e o f a n R B F w i l l be o f t h e
general f o r m
401
402 Meshfree Approximation Methods with MATLAB
i f i c a t i o n o f t h e basic r o u t i n e C o s t E p s i l o n w h i c h w e c a l l C o s t E p s i l o n D R B F (see
P r o g r a m 43.2 b e l o w ) so t h a t w e o p t i m i z e t h e choice o f e f o r t h e m a t r i x p r o b l e m
l T T T
D = A A~ x ^ AD = (A ) .
X
P r o g r a m 4 3 . 1 . DRBF.m
'/. C D , x ] = D R B F ( N , r b f , d x r b f )
% Computes t h e differentiation matrix D for 1-D derivative
% u s i n g Chebyshev p o i n t s a n d L00CV f o r o p t i m a l shape parameter
% I n p u t : N, create N+l c o l l o c a t i o n points
% rbf, dxrbf function handles f o r rbf and i t s derivative
% Calls on: DistanceMatrix, DifferenceMatrix
'/, R e q u i r e s : CostEpsilonDRBF
1 function [D,x] = DRBF(N,rbf,dxrbf)
2 i f N==0, D=0; x = l ; r e t u r n , end
3 x = cos(pi*(0:N)/N)'; / C h e b y s h e v points
4 m i n e = . 1 ; maxe = 1 0 ; % Shape p a r a m e t e r interval
5 r = DistanceMatrix(x,x);
6 dx = D i f f e r e n c e M a t r i x ( x , x ) ;
7 ep = f m i n b n d ( @ ( e p ) CostEpsilonDRBF(ep,r,dx,rbf,dxrbf),mine,maxe);
8 f p r i n t f ( ' U s i n g e p s i l o n = / f \ n ' , 0 ep)
9 A = rbf(ep,r);
10 Ax = d x r b f ( e p , r , d x ) ;
11 D = Ax/A;
P r o g r a m 43.2. CostEpsilonDRBF.m
7, c e p s = C o s t E p s i l o n D R B F ( e p , r , d x , r b f , d x r b f )
% Provides the "cost of epsilon" f u n c t i o n f o r L00CV o p t i m i z a t i o n
7o o f s h a p e parameter
/ I n p u t :
0 ep, values of shape parameter
% r, dx, Distance and D i f f e r e n c e matrices
% rbf, dxrbf, definition o f r b f and its derivative
1 f u n c t i o n ceps = C o s t E p s i l o n D R B F ( e p , r , d x , r b f , d x r b f )
43. RBF-PS Methods in MATLAB 403
2 N = size(r,2);
3 A = rbf(ep,r); '/, = A~T s i n c e A i s symmetric
4 rhs = dxrbf(ep,r,dx)'; 7. A_x~T
5 invA = p i n v ( A ) ;
6 EF = (invA*rhs)./repmat(diag(invA),1,N);
7 ceps = n o r m ( E F ( : ) ) ;
We i l l u s t r a t e t h e use o f t h e s u b r o u t i n e DBRF. m b y s o l v i n g a o n e - d i m e n s i o n a l t r a n s -
port equation. Consider
u (x,
t t) + cu (x,x t) = 0, x > 1, t > 0,
u ( - l , t ) = 0,
u(x,0) = f(x),
I n P r o g r a m 43.3 we i m p l e m e n t a s o l u t i o n o f t h i s p r o b l e m w i t h t h e h e l p o f t h e
d i f f e r e n t i a t i o n m a t r i x f r o m P r o g r a m 43.1 above. N o t e t h a t w e c o u l d use a l m o s t t h e
i d e n t i c a l code t o solve t h i s p r o b l e m w i t h a C h e b y s h e v p s e u d o s p e c t r a l method as
discussed i n [ T r e f e t h e n (2000)]. I n fact, i n F i g u r e 43.1 w e d i s p l a y side-by-side t h e
solutions obtained w i t h Gaussian R B F s and w i t h Chebyshev polynomials. Both
s o l u t i o n s were c o m p u t e d o n a g r i d o f 21 C h e b y s h e v p o i n t s . T h e cross-validation
a l g o r i t h m r e t u r n e d a value o f e = 1.874049 for t h e G a u s s i a n . T h e m a x i m u m error
for t h e Gaussian s o l u t i o n a t t i m e t = 1 was 0.0416, w h i l e for t h e PS s o l u t i o n w e
get 0.0418. T h e o n l y difference i n t h e PS-code is t h e r e p l a c e m e n t o f line 4 i n
P r o g r a m 43.3 b y
4 [D,x] = cheb(N)
P r o g r a m 43.3. TransportDRBF. m
7. TransportDRBF
7. S c r i p t t h a t s o l v e s c o n s t a n t c o e f f i c i e n t wave e q u a t i o n
7o u _ t + c*u_x = 0, u s i n g RBF-PS approach
7, C a l l s on: DRBF
1 r b f = @(e,r) e x p ( - ( e * r ) . ~2) ; 7. G a u s s i a n RBF
2 dxrbf = @(e,r,dx) - 2 * d x * e ~ 2 . * e x p ( - ( e * r ) . ~ 2 ) ;
3 N = 20;
4 [D,x] = DRBF(N,rbf,dxrbf);
404 Meshfree Approximation Methods with MATLAB
5 x = f l i p u d ( x ) ; dt = 0.001; t = 0; c = -1;
6 v = 64*(-x).~3.*(l+x)."3;
7 v(find(x>0)) = zeros(length(find(x>0)),1);
% Time-stepping by e x p l i c i t E u l e r formula:
8 tmax = 1; t p l o t = .02; p l o t g a p = r o u n d ( t p l o t / d t ) ;
9 dt = t p l o t / p l o t g a p ; n p l o t s = r o u n d ( t m a x / t p l o t ) ;
5
10 data = [ v ; z e r o s ( n p l o t s , N + l ) ] ; t d a t a = t ;
11 I = e y e ( s i z e ( D ) ) ;
12 f o r i = l : n p l o t s
13 for n = l:plotgap
14 t = t+dt;
15 vv = v(end-1);
16 v = v - dt*c*(D*v); / e x p l i c i t E u l e r
17 v ( l ) = 0; v(end) = vv;
18 end
19 d a t a ( i + l , : ) = v'; t d a t a = [ t d a t a ; t ] ;
20 end
21 s u r f ( x , t d a t a , d a t a ) , view(10,70), colormap('default');
22 a x i s ( [ - l 1 0 tmax 0 1 ] ) , y l a b e l t , z l a b e l u, g r i d o f f
% exact s o l u t i o n and e r r o r
23 xx = l i n s p a c e ( - l , 1 , 1 0 1 ) ;
24 vone = 64*(1-xx)."3.*xx."3;
25 v o n e ( f i n d ( x x < 0 ) ) = z e r o s ( l e n g t h ( f i n d ( x x < 0 ) ) , 1 ) ;
26 w = i n t e r p l ( x , v , x x ) ;
27 maxErr = norm(w-vone,inf)
J
0.5- J
0.5
Fig. 43.1 Solution to transport equation based on Gaussian R B F s with e = 1.874049 (left) and
Chebyshev P S method (right). Explicit Euler time-stepping with (At = 0.001), and 21 Chebyshev
points.
43. RBF-PS Methods in MATLAB 405
T 1
u(x,e) = 6 (a;,e)(A())- / (43.1)
w i t h b(x,s)j = ip (\\x
e Xj\\) a t some e v a l u a t i o n p o i n t x a n d A(e)ij ip (\\xi
e Xj\\)
(c.f. t h e discussion i n t h e p r e v i o u s c h a p t e r a n d i n C h a p t e r 1 7 ) . T h e p a r a m e t e r e
is used t o d e n o t e t h e dependence o f b a n d A o n t h e choice o f t h a t p a r a m e t e r as a
s c a l i n g factor i n t h e basic f u n c t i o n ip = <p(e-).
1
Ac(e)(A(e))- u
c o m p u t e s t h e values o f t h e ( s p a t i a l ) d e r i v a t i v e o f u o n t h e c o l l o c a t i o n p o i n t s Xi.
B o u n d a r y c o n d i t i o n s can t h e n be i n c o r p o r a t e d l a t e r as i n t h e s t a n d a r d pseudospec-
t r a l a p p r o a c h (see, e.g., [ T r e f e t h e n (2000)] or o u r discussion i n S e c t i o n 4 2 . 2 ) .
T h i s means t h a t we are able t o s u p p l y y e t a n o t h e r s u b r o u t i n e t o c o m p u t e t h e
d i f f e r e n t i a t i o n m a t r i x o n l i n e 4 o f P r o g r a m 43.3 v i a t h e C o n t o u r - P a d e a l g o r i t h m .
We use t h e same e x a m p l e as i n S u b s e c t i o n 4 3 . 1 . 1 . I n t h i s s u b s e c t i o n we c o m p a r e
a s o l u t i o n based o n t h e C o n t o u r - P a d e a l g o r i t h m for G a u s s i a n R B F s i n t h e l i m i t i n g
case e > 0 t o t h e t w o m e t h o d s d e s c r i b e d e a r l i e r (based o n DRBF a n d cheb). A l l o f
these approaches use a n i m p l i c i t E u l e r m e t h o d w i t h t i m e s t e p At 0.001 for t h e
t i m e d i s c r e t i z a t i o n . W e p o i n t o u t t h a t for a n i m p l i c i t t i m e - s t e p p i n g m e t h o d b o t h
t h e C o n t o u r - P a d e a p p r o a c h a n d t h e DRBF a p p r o a c h used earlier, o f course, r e q u i r e
an inversion of the differentiation m a t r i x . Recall t h a t our theoretical discussion
suggested t h a t t h i s is j u s t i f i e d as l o n g as w e confine ourselves t o t h e l i m i t i n g case
s > 0 a n d one space d i m e n s i o n . W e w i l l see t h a t t h e n o n - l i m i t i n g case ( u s i n g DRBF)
seems t o w o r k j u s t as w e l l .
I n F i g u r e s 43.2 a n d 43.3 we p l o t t h e m a x i m u m e r r o r s a t t i m e t = 1 for a
t i m e step At = 0.001) a n d s p a t i a l d i s c r e t i z a t i o n s c o n s i s t i n g o f Af + 1 = 7 , . . . , 19
c o l l o c a t i o n p o i n t s . E r r o r s for t h e C o n t o u r - P a d e G a u s s i a n R B F s o l u t i o n are o n t h e
406 Meshfree Approximation Methods with MATLAB
6 8 10 12 14 16 18 6 8 10 12 14 16 18
N N
Fig. 43.2 Errors at t = 1 for transport equation. Gaussian R B F with e = 0 (left) and Chebyshev
PS-solution (right); variable spatial discretization N. Implicit Euler method with A t = 0.001.
6 8 10 12 14 16 18 6 8 10 12 14 16 18
N N
Fig. 43.3 Errors at t = 1 for transport equation using Gaussian R B F with "optimal" e (left)
and corresponding e-values (right); variable spatial discretization N. Implicit Euler method with
A t = 0.001.
T h e s p e c t r a o f t h e d i f f e r e n t i a t i o n m a t r i c e s for b o t h t h e G a u s s i a n Contour-Pade
a n d t h e C h e b y s h e v P S a p p r o a c h e s are p l o t t e d i n F i g u r e s 43.4 a n d 4 3 . 5 , r e s p e c t i v e l y .
43. RBF-PS Methods in MATLAB 407
T h e s u b p l o t s c o r r e s p o n d t o t h e use o f AT -f- 1 = 5, 9 , 1 3 , 1 7 C h e b y s h e v c o l l o c a t i o n
p o i n t s for t h e s p a t i a l d i s c r e t i z a t i o n . T h e p l o t s for t h e G a u s s i a n a n d Chebyshev
m e t h o d s s h o w some s i m i l a r i t i e s , b u t also some differences. T h e g e n e r a l d i s t r i b u t i o n
o f t h e eigenvalues for t h e t w o m e t h o d s is q u i t e s i m i l a r . H o w e v e r , t h e s p e c t r a for
t h e C o n t o u r - P a d e a l g o r i t h m w i t h G a u s s i a n R B F s seem t o be m o r e or less a s l i g h t l y
s t r e t c h e d r e f l e c t i o n a b o u t t h e i m a g i n a r y axis o f t h e s p e c t r a o f t h e C h e b y s h e v pseu-
d o s p e c t r a l m e t h o d . T h e differences increase as N increases. T h i s , however, is n o t
s u r p r i s i n g since t h e C o n t o u r - P a d e a l g o r i t h m is k n o w n t o be u n r e l i a b l e for l a r g e r
values o f N.
x 10"
0.2
0.15
0.1
0.05
1 o E 0
-0.05
-1
-0.1
-0.15
M o E 0
-2
-1
-4
-6
-2
-8
-2 10
Re Re
Fig. 43.4 Spectra of differentiation matrices for Gaussian R B F with e = 0 on Chebyshev collo-
cation points obtained with the Contour-Pade algorithm and N = 5, 9,13,17.
Fig. 43.5 Spectra of differentiation matrices for Chebyshev pseudospectral method on Chebyshev
collocation points with N = 5, 9,13, 17.
4 rhs = d2rbf(ep,r)';
Also, the number and type of parameters that are passed t o t h e f u n c t i o n s are
d i f f e r e n t since t h e f i r s t - o r d e r d e r i v a t i v e r e q u i r e s differences of collocation points
a n d the second-order derivative does n o t .
43. RBF-PS Methods in MATLAB 409
P r o g r a m 43.4. D2RBF.m
% [D2,x] = D2RBF(N,rbf,d2rbf)
% Computes the second-order d i f f e r e n t i a t i o n m a t r i x D2 f o r 1-D
% d e r i v a t i v e u s i n g Chebyshev p o i n t s and L00CV f o r optimal e p s i l o n
% Input: N, number of p o i n t s -1
% r b f , d2rbf, f u n c t i o n handles f o r r b f and i t s d e r i v a t i v e
% C a l l s on: D i s t a n c e M a t r i x , D i f f e r e n c e M a t r i x
% R e q u i r e s : CostEpsilonD2RBF
1 f u n c t i o n [D2,x] = D2RBF(N,rbf,d2rbf)
2 i f N==0, D2=0; x = l ; r e t u r n , end
3 x = cos(pi*(0:N)/N) ' ; % Chebyshev p o i n t s
4 mine = .1; maxe = 1 0 ; % Shape parameter i n t e r v a l
5 r = DistanceMatrix(x,x);
6 ep = fminbnd(@(ep) CostEpsilonD2RBF(ep,r,rbf,d2rbf),mine,maxe);
7 f p r i n t f ('Using e p s i l o n = /f\n', ep) 0
8 A = rbf(ep,r);
9 AD2 = d 2 r b f ( e p , r ) ;
10 D2 = AD2/A;
7 n E x e _ 1
u(x,Q) = 0.53a; + 0.47sin ^ - ^ ) > [ > !]
% p35
% S c r i p t t h a t s o l v e s Allen-Cahn equation w i t h boundary c o n d i t i o n
410 Meshfree Approximation Methods with MATLAB
Fig. 43.6 Solution of the Allen-Cahn equation using the Chebyshev pseudospectral method (left)
and an R B F - P S method with cubic Matern functions (right) with N = 20.
2 2
f(x,y)=exp(-10 (y-l) + (x-)
w h e r e D2 is t h e ( u n i v a r i a t e ) second-order d i f f e r e n t i a t i o n m a t r i x , / is a n i d e n t i t y
m a t r i x o f size (N + 1) x (N + 1 ) , a n d denotes t h e Kronecker tensor-product. For
p o l y n o m i a l PS m e t h o d s t h e second-order d i f f e r e n t i a t i o n m a t r i x c a n be computed
2
as t h e square o f t h e one for t h e f i r s t - o r d e r d e r i v a t i v e , i.e., D2 = D , a n d t h i s is
w h a t is used i n [ T r e f e t h e n ( 2 0 0 0 ) ] .
A s we p o i n t e d o u t earlier, for R B F s w e c a n n o t f o l l o w t h i s a p p r o a c h d i r e c t l y
2 2
since D ^ D^ \ T h u s , w e generate t h e m a t r i x D2 d i r e c t l y w i t h t h e h e l p o f t h e
s u b r o u t i n e D2RBF. H o w e v e r , as l o n g as t h e c o l l o c a t i o n p o i n t s f o r m a t e n s o r - p r o d u c t
g r i d a n d t h e R B F is separable (such as a G a u s s i a n or a p o l y n o m i a l ) , w e c a n s t i l l
employ the Kronecker tensor-product c o n s t r u c t i o n ( 4 3 . 2 ) . T h i s is i m p l e m e n t e d i n
lines 4 a n d 9 o f P r o g r a m 43.6
P r o g r a m 4 3 . 6 . M o d i f i c a t i o n o f P r o g r a m 17 o f [ T r e f e t h e n (2000)]
7. pl7
7. S c r i p t that solves Helmholtz equation
7. u _ x x + u _ y y + ( k " 2 ) u = f on [-1,1]x[-1,1]
7o We r e p l a c e t h e C h e b y s h e v m e t h o d b y a n RBF-PS method
7o a n d e x p l i c i t l y enforce the boundary conditions
7. C a l l s o n : D2RBF
7o G a u s s i a n RBF b a s i c function
1 r b f = @(e,r) exp(-(e*r).~2);
2 d2rbf = @(e,r) 2*e~2*(2*(e*r).~2-l).*exp(-(e*r)."2);
3 N = 24;
4 [D2,x] = D2RBF(N,rbf,d2rbf); y = x;
5 [xx,yy] = meshgrid(x,y);
6 xx = x x ( : ) ; yy = yy(:);
7 1 = eye(N+l);
8 k = 9;
9 L = kron(I,D2) + kron(D2,I) + k~2*eye((N+l)~2);
7o I m p o s e boundary c o n d i t i o n s by r e p l a c i n g appropriate rows o f L
10 b = find(abs(xx)==l I abs(yy)==l); '/ b o u n d a r y pts
11 L(b,:) = zeros(4*N,(N+l)~2); L ( b , b ) = eye(4*N);
12 f = exp(-10*((yy-l).~2+(xx-.5).~2));
13 f(b) = zeros(4*N,1);
7. S o l v e f o r u , reshape t o 2D g r i d , and plot:
il
43. RBF-PS Methods in MATLAB 413
14 u = L\f;
15 uu = r e s h a p e ( u , N + l , N + l ) ;
16 [xx,yy] = meshgrid(x,y);
17 [xxx.yyy] = meshgrid(-l:.0333:1,-1:.0333:1);
18 uuu = interp2(xx,yy,uu,xxx,yyy,'cubic');
19 figure, elf, surf(xxx,yyy,uuu),
20 xlabel x, ylabel y, zlabel u
21 t e x t ( . 2 , 1 , . 0 2 2 , s p r i n t f ( ' u ( O . O ) = /.13.1 I f ' , u u ( N / 2 + 1 , N / 2 + 1 ) ) )
T h e s o l u t i o n o f t h e H e l m h o l t z e q u a t i o n for k 9 w i t h Gaussians u s i n g a n
" o p t i m a l " shape p a r a m e t e r e = 2.549845 a n d N = 24 (i.e., 625 t o t a l p o i n t s ) is
d i s p l a y e d n e x t t o t h e Chebyshev p s e u d o s p e c t r a l s o l u t i o n o f [Trefethen (2000)] i n
F i g u r e 43.7. A g a i n , t h e s i m i l a r i t y o f t h e t w o s o l u t i o n s is r e m a r k a b l e .
for the use with the dense code D i s t a n c e M a t r i x .m in the subroutine LRBF .m (which
is listed below as Program 43.8). The output of Program 43.7 is displayed in
Figure 43.8.
7. pl7_2D
7o S c r i p t t h a t s o l v e s Helmholtz equation
7. u_xx + u_yy + ( k ~ 2 ) u = f on [-1,1]x[-1,1]
7o We r e p l a c e t h e Chebyshev method by an RBF-PS method,
7o e x p l i c i t l y e n f o r c e t h e boundary c o n d i t i o n s , and
7o use a 2-D implementation of t h e L a p l a c i a n
7. C a l l s on: LRBF
% Wendland C6 RBF b a s i c f u n c t i o n
1 r b f = @(e,r) m a x ( l - e * r , 0 ) . ~ 8 . * ( 3 2 * ( e * r ) . ~ 3 + 2 5 * ( e * r ) . ~ 2 + 8 * e * r + l ) ;
2a L r b f = @(e,r) 44*e"2*max(l-e*r,0)."6.*...
2b (88*(e*r).~3+3*(e*r).~2-6*e*r-l);
3 [L,x,y] = L R B F ( N , r b f , L r b f ) ;
4 [xx,yy] = m e s h g r i d ( x , y ) ;
5 xx = x x ( : ) ; yy = y y ( : ) ;
6 k = 9;
7 L = L + k~2*eye((N+l)~2);
7o Impose boundary c o n d i t i o n s by r e p l a c i n g a p p r o p r i a t e rows of L
8 b = find(abs(xx)==l I abs(yy)==l); 7, boundary p t s
9 L ( b , : ) = z e r o s ( 4 * N , ( N + l ) ~ 2 ) ; L(b,b) = eye(4*N);
10 f = e x p ( - 1 0 * ( ( y y - l ) . ~ 2 + ( x x - . 5 ) . ~ 2 ) ) ;
11 f ( b ) = z e r o s ( 4 * N , 1 ) ;
7o Solve f o r u, reshape t o 2D g r i d , and p l o t :
12 u = L \ f ;
13 uu = reshape(u,N+l,N+l);
14 [xx,yy] = m e s h g r i d ( x , y ) ;
15 [xxx,yyy] = meshgrid(-l:.0333:1,-1:.0333:1);
16 uuu = i n t e r p 2 ( x x , y y , u u , x x x , y y y c u b i c ' ) ;
17 f i g u r e , e l f , s u r f ( x x x , y y y , u u u ) ,
18 x l a b e l x, y l a b e l y, z l a b e l u
P r o g r a m 4 3 . 8 . LRBF.m
7. [L,x,y] = LRBF(N,rbf ,Lrbf )
7o Computes t h e L a p l a c i a n d i f f e r e n t i a t i o n m a t r i x L f o r 2-D
7o d e r i v a t i v e s u s i n g Chebyshev p o i n t s and L00CV f o r optimal e p s i l o n
% Input: N number of p o i n t s -1
7o r b f , L r b f , f u n c t i o n handles f o r r b f and i t s d e r i v a t i v e
43. RBF-PS Methods in MATLAB 415
% C a l l s on: D i s t a n c e M a t r i x
% Requires: CostEpsilonLRBF
1 f u n c t i o n [L,x,y] = LRBF(N,rbf,Lrbf)
2 i f N==0, L=0; x=l; r e t u r n , end
3 x = cos(pi*(0:N)/N)'; % Chebyshev p o i n t s
4 y = x; [xx.yy] = meshgrid(x,y);
% S t r e t c h 2D g r i d s t o ID v e c t o r s and put i n one a r r a y
5 points = [xx(:) y y ( : ) ] ;
6 mine = .1; maxe = 10; % Shape parameter i n t e r v a l
7 r = DistanceMatrix(points.points);
8 ep = fminbnd(@(ep) CostEpsilonLRBF(ep,r,rbf,Lrbf),mine,maxe);
9 f p r i n t f ('Using e p s i l o n = 7,f \n', ep)
10 A = r b f ( e p , r ) ;
11 AL = L r b f ( e p , r ) ;
12 L = AL/A;
Fig. 43.8 Solution of the 2D Helmholtz equation using a direct implementation of the Laplacian
6
based on C Wendland functions with e = 0.129440 on 625 tensor-product Chebyshev collocation
points.
O u r f i n a l e x a m p l e is a n o t h e r e l l i p t i c e q u a t i o n . T h i s t i m e we use t h e G a u s s i a n R B F
w i t h a n " o p t i m a l " shape p a r a m e t e r e = 2.549845. A g a i n , t h e s p a t i a l d i s c r e t i z a t i o n
consists o f a tensor p r o d u c t o f 25 x 25 C h e b y s h e v p o i n t s , a n d t h e d i f f e r e n t i a t i o n m a -
t r i x for t h e R B F - P S a p p r o a c h is c o m p u t e d u s i n g t h e D2RBF a n d k r o n c o n s t r u c t i o n
as i n t h e p r e v i o u s e x a m p l e .
<L 4 .
416 Meshfree Approximation Methods with MATLAB
W e consider t h e 2 D L a p l a c e e q u a t i o n
2
u x x + u y y = 0, x,y(-l,l) ,
w i t h boundary conditions
4
sin (7nr), y = 1 a n d 1 < x < 0,
!
isin(37ry), x = 1,
0, otherwise.
T h i s is t h e same p r o b l e m as u s e d i n P r o g r a m 36 o f [ T r e f e t h e n ( 2 0 0 0 ) ] , a n d we d o
n o t l i s t i t here due t o t h e s i m i l a r i t y w i t h p r e v i o u s e x a m p l e s a n d t h e o r i g i n a l code
i n [Trefethen (2000)].
F i g u r e 43.9 shows t h e s o l u t i o n o b t a i n e d v i a t h e C h e b y s h e v a n d R B F pseu-
dospectral methods, respectively. T h e q u a l i t a t i v e b e h a v i o r o f t h e t w o s o l u t i o n s is
very similar.
Fig. 43.9 Solution of the 2D Laplace equation using a Chebyshev P S approach (left) and Gaussian
R B F s (right) with e 2.549845 on 625 tensor-product Chebyshev collocation points.
43.6 Summary
W h i l e t h e r e is n o a d v a n t a g e i n g o i n g t o a r b i t r a r i l y spaced i r r e g u l a r c o l l o c a t i o n
p o i n t s for a n y o f t h e p r o b l e m s p r e s e n t e d here, t h e r e is n o t h i n g t h a t p r e v e n t s us
f r o m d o i n g so for t h e R B F p s e u d o s p e c t r a l a p p r o a c h . I n p a r t i c u l a r , as w e saw i n
S e c t i o n 43.4, we are n o t l i m i t e d t o u s i n g t e n s o r p r o d u c t g r i d s for h i g h e r - d i m e n s i o n a l
spatial discretizations. T h i s is a p o t e n t i a l a d v a n t a g e o f t h e R B F p s e u d o s p e c t r a l
a p p r o a c h over t h e s t a n d a r d p o l y n o m i a l m e t h o d s .
M o r e a p p l i c a t i o n s o f t h e R B F - P S m e t h o d c a n be f o u n d i n t h e r e c e n t p a p e r s
[ F e r r e i r a a n d Fasshauer ( 2 0 0 6 ) ; F e r r e i r a a n d Fasshauer ( 2 0 0 7 ) ] .
F u t u r e challenges i n c l u d e d e a l i n g w i t h l a r g e r p r o b l e m s i n a n efficient a n d s t a -
b l e way. T h u s , such issues as p r e c o n d i t i o n i n g a n d F F T - t y p e a l g o r i t h m s need t o
43. RBF-PS Methods in MATLAB 417
R B F Galerkin Methods
A v a r i a t i o n a l a p p r o a c h t o t h e s o l u t i o n o f P D E s w i t h R B F s i n E u c l i d e a n spaces has
so far o n l y been considered i n [ W e n d l a n d (1999a); W e n d l a n d (1999b)] a n d t h e v e r y
recent p a p e r [ H u et al. (2005)]. O n t h e sphere w h e r e we d o n o t have t o w o r r y
a b o u t b o u n d a r y c o n d i t i o n s w e also have [Le G i a (2004)]. I n [ W e n d l a n d (1999b)]
t h e a u t h o r studies t h e H e l m h o l t z e q u a t i o n w i t h n a t u r a l b o u n d a r y c o n d i t i o n s , i.e.,
Au + u = / i n fl,
d
u = 0 on dfl,
on
w h e r e n denotes t h e u n i t o u t e r n o r m a l v e c t o r .
T h e classical G a l e r k i n f o r m u l a t i o n t h e n leads t o t h e p r o b l e m o f f i n d i n g a f u n c t i o n
1
u GH (fl) such t h a t
1
a(u,v) = (f,v) n)
L2{ for a l l v G H (fl),
f)L (f2)
s u s u a
where ( / , 2 * the l Z/2-hiner p r o d u c t , a n d for t h e H e l m h o l t z e q u a t i o n t h e
b i l i n e a r f o r m a is g i v e n b y
a(u,v)
I (Vu V f + uv)dx.
Jo.
1
I n order t o o b t a i n a n u m e r i c a l scheme t h e i n f i n i t e - d i m e n s i o n a l space H (fl) is re-
1
placed b y some finite-dimensional subspace Sx ^ ^ (^) ) where X denotes t h e
c o m p u t a t i o n a l g r i d t o be used for t h e s o l u t i o n . I n t h e c o n t e x t o f R B F s Sx is t a k e n
as
u = Y C
M \ \ X
- J\\),
419
420 Meshfree Approximation Methods with MATLAB
a n d t h e s y s t e m (44.1) is g i v e n b y
i = l,. N.
U s i n g l i n e a r i t y a n d t h e d e f i n i t i o n o f u g i v e n above t h i s t u r n s i n t o
[ f(x)<p(\\x-Xi\\)dx, i = l,...,N.
a n d t h e r i g h t - h a n d side entries
T h e e v a l u a t i o n o f these i n t e g r a l s is w h a t is m o s t t i m e - c o n s u m i n g i n t h e RBF
G a l e r k i n a p p r o a c h (see t h e n u m e r i c a l e x p e r i m e n t s o f t h e n e x t c h a p t e r ) . Wend-
l a n d r e p o r t s t h a t t h e n u m e r i c a l e v a l u a t i o n o f these w e a k - f o r m i n t e g r a l s presents a
m a j o r p r o b l e m for t h e r a d i a l basis f u n c t i o n G a l e r k i n a p p r o a c h .
I n a d d i t i o n , R B F G a l e r k i n m e t h o d s w i l l face d i f f i c u l t i e s w i t h D i r i c h l e t (or some-
t i m e s also c a l l e d essential) b o u n d a r y c o n d i t i o n s . B o t h o f these d i f f i c u l t i e s are also
w e l l - k n o w n i n m a n y o t h e r flavors o f meshfree w e a k - f o r m m e t h o d s . A n especially
p r o m i s i n g s o l u t i o n t o t h e issue o f D i r i c h l e t b o u n d a r y c o n d i t i o n s seems t o be t h e use
of .R-functions as p r o p o s e d b y H o l l i g a n d R e i f i n t h e c o n t e x t o f web-splines (see,
e.g., [ H o l l i g (2003)] or o u r e a r l i e r d i s c u s s i o n i n t h e c o n t e x t o f c o l l o c a t i o n m e t h o d s i n
C h a p t e r 3 8 ) . A n o t h e r p o p u l a r a p p r o a c h uses L a g r a n g e m u l t i p l i e r s i n a c o n s t r a i n e d
optimization setting.
For m o r e o n t h e G a l e r k i n m e t h o d see, e.g., [Braess ( 1 9 9 7 ) ; B r e n n e r a n d S c o t t
(1994)] ( i n t h e c o n t e x t o f f i n i t e e l e m e n t s ) , o r [ B a b u s k a et al. (2003)] ( i n t h e c o n t e x t
of M L S - b a s e d meshfree m e t h o d s ) .
\\u - u\\ i
H ( C l ) < Ch a 1
||u||H(f2), (44.2)
44- RBF Galerkin Methods 421
Here is t h e v a r i a n t o f t h e s t a t i o n a r y m u l t i l e v e l c o l l o c a t i o n a l g o r i t h m l i s t e d i n C h a p -
ter 4 1 a d a p t e d for t h e weak f o r m u l a t i o n o f t h e P D E discussed at t h e b e g i n n i n g o f
t h i s chapter (see [ W e n d l a n d ( 1 9 9 9 b ) ] ) :
A l g o r i t h m 4 4 . 1 . Multilevel Galerkin
(1) u = 0
0
(2) For k f r o m 1 t o K do
A l g o r i t h m 4 4 . 2 . Nested M u l t i l e v e l G a l e r k i n
(c) Set Vj \
+ = u(vj).
I n P r o g r a m 45.1 we p r o v i d e a s i m p l e M A T L A B i m p l e m e n t a t i o n for t h e G a l e r k i n
solution of this problem. N o t e t h a t o u r p r o g r a m does n o t a t t e m p t t o p r o v i d e a
m u l t i l e v e l s o l u t i o n as described i n t h e p r e v i o u s c h a p t e r , n o r d o we p r e t e n d t o be
especially efficient ( a n d therefore t h e p r o g r a m is v e r y s l o w ) . A s p o i n t e d o u t i n t h e
previous chapter, t h e m o s t t i m e c o n s u m i n g p a r t is t h e c a l c u l a t i o n o f t h e i n t e g r a l s
needed for t h e stiffness m a t r i x A w i t h entries
a n d t h e r i g h t - h a n d side v e c t o r w i t h entries
f(x)ip(\\x - \\)dx.
Xi
-I,IP
W e c o m p u t e these integrals u s i n g t h e d b l q u a d n u m e r i c a l i n t e g r a t i o n r o u t i n e o n
lines 15-20 o f P r o g r a m 4 5 . 1 . N o t e t h a t we e x p l o i t t h e s y m m e t r y o f t h e stiffness
m a t r i x i n t h e for-loop, a n d t h e n c o m p l e t e t h e m a t r i x o n l i n e 2 1 . T h e f u n c t i o n s
needed for t h e i n t e g r a t i o n are p r o v i d e d o n lines 1-3 a n d 5 - 6 . I n [ W e n d l a n d (1999b)]
t h e a u t h o r details a s t r a t e g y for c o n v e r t i n g t h e d o u b l e i n t e g r a l s t o u n i v a r i a t e i n t e -
grals since a l l t h e functions i n v o l v e d are r a d i a l l y s y m m e t r i c . W e d o n o t p u r s u e t h a t
p o s s i b i l i t y here.
For t h i s e x a m p l e we use t h e C 2
W e n d l a n d f u n c t i o n <^3,i(r) = ( 1 r ) ^ _ ( 4 r + 1)
w i t h a s u p p o r t scaled b y e = 0.7. O n l i n e 4 we p r o v i d e t h e s t a n d a r d representation
423
424 Meshfree Approximation Methods with MATLAB
P r o g r a m 45.1. RBFGalerkin2D .m
% RBFGalerkin2D
70 S c r i p t t h a t performs G a l e r k i n s o l u t i o n of 2D Helmholtz equation
% - u_xx - u_yy + u = f
7. C a l l s on: D i s t a n c e M a t r i x , P l o t S u r f , P l o t E r r o r 2 D
% D e f i n i t i o n of t h e RBF and i t s g r a d i e n t , Wendland C2
l a rbf = @(e,x,y,xi,yi) m a x ( l - e * s q r t ( ( x - x i ) . ~ 2 + ( y - y i ) . ~ 2 ) , 0 ) . " 4 . * . . .
lb (4*e*sqrt((x-xi).~2+(y-yi).~2)+l);
2a dxrbf = @ ( e , x , y , x i , y i ) - 2 0 * ( x - x i ) * e ~ 2 . * . . .
2b max(l-e*sqrt((x-xi).~2+(y-yi)."2),0)."3;
3a dyrbf = Q ( e , x , y , x i , y i ) - 2 0 * ( y - y i ) * e ~ 2 . * . . .
3b max(l-e*sqrt((x-xi).~2+(y-yi).~2),0)."3;
4 e v a l r b f = @(e,r) m a x ( l - e * r , 0 ) . " 4 . * ( 4 * e * r + l ) ;
/ Products f o r i n t e g r a t i o n
0
5 rp = @(e,x,y,xi,yi,xj,yj) r b f ( e , x , y , x i , y i ) . * r b f ( e , x , y , x j , y j ) ;
6a gp = @ ( e , x , y , x i , y i , x j , y j ) d x r b f ( e , x , y , x i , y i ) . * . . .
6b dxrbf(e,x,y,xj,yj)+dyrbf(e,x,y,xi,yi).*dyrbf(e,x,y,xj,yj);
% Parameter f o r b a s i s f u n c t i o n
7 ep = .7;
% Right-hand s i d e f u n c t i o n f o r Helmholtz equation
8 f = @(x,y) c o s ( p i * x ) . * c o s ( p i * y ) ;
/ Exact s o l u t i o n
0
9 u = @(x,y) c o s ( p i * x ) . * c o s ( p i * y ) / ( 2 * p i " 2 + l ) ;
/ Number and type of c e n t e r s :
0
5
10 N = 25; g r i d t y p e = u ' ;
R e s o l u t i o n of e v a l u a t i o n g r i d f o r e r r o r s and p l o t t i n g
11 n e v a l = 40;
7. Load d a t a p o i n t s
5
12 name = s p r i n t f ('Data2D_7od7.s , N,gridtype); load(name)
7o S h i f t c e n t e r s t o t h e square [-1,1] ~2
13 ctrs = 2*dsites-l;
7o B u i l d s t i f f n e s s m a t r i x and r i g h t - h a n d s i d e
14 A = zeros(N,N); r h s = z e r o s ( N , l ) ;
15 f o r i=l:N
16 for j=l:i
17a A ( i , j ) = dblquad(@(x,y) g p ( e p , x , y , c t r s ( i , 1 ) , c t r s ( i , 2 ) , . . .
17b c t r s ( j , 1 ) , c t r s ( j , 2 ) ) , - 1 , 1 , - 1 , 1 ) + ...
17c dblquad(@(x,y) r p ( e p , x , y , c t r s ( i , 1 ) , c t r s ( i , 2 ) , . . .
17d ctrs(j,1),ctrs(j,2)),-1,1,-1,1);
45. RBF Galerkin Methods in MATLAB 425
18 end
19a r h s ( i ) = dblquad(@(x,y) f ( x , y ) . * . . .
19b rbf(ep,x,y,ctrs(i,l),ctrs(i,2)),-1,1,-1,1);
20 end
7, Make m a t r i x symmetric
5
21 A = A + A - d i a g ( d i a g ( A ) ) ;
7. Solve l i n e a r system, i . e . , compute expansion c o e f f i c i e n t s
22 c = A\rhs;
7o E v a l u a t i o n
23 g r i d = l i n s p a c e ( - 1 , 1 , n e v a l ) ; [xe, y e ] = m e s h g r i d ( g r i d ) ;
24 e p o i n t s = [ x e ( : ) y e ( : ) ] ;
25 exact = u ( e p o i n t s ( : , 1 ) , e p o i n t s ( : , 2 ) ) ;
26 DM_eval = D i s t a n c e M a t r i x ( e p o i n t s , c t r s ) ;
27 EM = evalrbf(ep,DM_eval);
28 Pf = EM * c;
7o Compute maximum e r r o r on e v a l u a t i o n g r i d
29 maxerr = n o r m ( P f - e x a c t , i n f ) ; rms.err = n o r m ( P f - e x a c t ) / n e v a l ;
30 f p r i n t f ('RMS e r r o r : 7.e\n', r m s . e r r )
31 f p r i n t f ('Maximum e r r o r : 7.e\n , maxerr) J
7o P l o t approximate s o l u t i o n
32 fview = [-30,30]; % viewing angle f o r p l o t
33 PlotSurf(xe,ye,Pf,neval,exact,maxerr,fview);
34 PlotError2D(xe,ye,Pf,exact,maxerr,neval,fview);
W e c a n see t h a t t h e convergence is r a t h e r e r r a t i c , a n d t h a t t h e c o n d i t i o n n u m b e r
increases r a p i d l y . T h e W\-convergence r a t e p r e d i c t e d i n [ W e n d l a n d (1999a)] for t h e
basic f u n c t i o n used here is 0(h). O n average, t h e r e s u l t s l i s t e d i n T a b l e 45.1 i n d i c a t e
2
r o u g h l y a n 0(h ) RMS-convergence rate.
426 Meshfree Approximation Methods with MATLAB
Appendix A
n = J^aip\
i=0
w h e r e each coefficient ai is a n integer such t h a t 0 < ai < p. F o r e x a m p l e , i f n = 10
a n d p = 3, t h e n
1 2
10 = 1 3 + 0 3 + 1 -3 ,
so t h a t k = 2 a n d an = a 2 = 1 a n d a\ = 0.
N e x t we define a f u n c t i o n h p t h a t m a p s t h e n o n n e g a t i v e integers t o t h e i n t e r v a l
[0,1) via
A:
y
i=0
For example
T h e r e s u l t i n g sequence h N Pt = {h (n) p : n = 0 , 1 , 2 , . . . , N} is k n o w n as a v a n
d e r C o r p u t sequence. For e x a m p l e
h ,w
3 = {0,1/3,2/3,1/9,4/9,7/9,2/9,5/9,8/9,1/27,10/27}.
427
428 Meshfree Approximation Methods with MATLAB
n
HS,N = { ( V ( ) > -> Ps( ))
h n
' n = 0 , 1 , . . . ,iV}
s
is t h e set o f N + 1 H a l t o n p o i n t s i n [0, l ) . H a l t o n p o i n t sets for s = 2 are d i s p l a y e d
i n F i g u r e 1.1 a n d t h e b o t t o m p a r t o f F i g u r e 14.5.
An nice p r o p e r t y o f H a l t o n p o i n t s is t h e fact t h a t t h e y are nested p o i n t sets,
i.e., HM SI C HN
S> for M < N. I n fact, t h e p o i n t sets c a n even be c o n s t r u c t e d
sequentially, i.e., one does n o t need t o s t a r t over i f one w a n t s t o a d d m o r e p o i n t s
t o a n e x i s t i n g set o f H a l t o n p o i n t s . T h i s d i s t i n g u i s h e s t h e H a l t o n p o i n t s f r o m t h e
related Hammersley points.
I t is k n o w n t h a t i n l o w space d i m e n s i o n s , t h e m u l t i - d i m e n s i o n a l H a l t o n sequence
q u i c k l y "fills u p " t h e u n i t cube i n a w e l l - d i s t r i b u t e d p a t t e r n . H o w e v e r , for h i g h e r
d i m e n s i o n s (such as s = 4 0 ) , u s i n g a r e l a t i v e l y s m a l l v a l u e o f N results i n p o o r l y
d i s t r i b u t e d H a l t o n p o i n t s . O n l y w h e n N is l a r g e e n o u g h r e l a t i v e t o s d o t h e p o i n t s
become w e l l - d i s t r i b u t e d . Since n o n e o f o u r e x a m p l e s exceed s = 6 t h i s is n o t a
c o n c e r n for us.
I n t h e M A T L A B p r o g r a m s t h r o u g h o u t t h i s b o o k we use t h e f u n c t i o n haltonseq
w r i t t e n b y D a n i e l D o u g h e r t y . T h i s f u n c t i o n c a n be d o w n l o a d e d f r o m t h e M A T L A B
C e n t r a l F i l e E x c h a n g e , see [ M C F E ] . I n t h i s i m p l e m e n t a t i o n o f H a l t o n sequences
t h e o r i g i n is n o t p a r t o f t h e p o i n t set, i.e., t h e H a l t o n p o i n t s are g e n e r a t e d s t a r t i n g
w i t h n 1 i n s t e a d o f n = 0 as d e s c r i b e d above.
A. 2 fed-Trees
d a t a p o i n t s . T h e r e f o r e t h e s p l i t t i n g planes p a r t i t i o n t h e set o f p o i n t s a t t h e m e d i a n
i n t o "left" a n d " r i g h t " (or " t o p " a n d " b o t t o m " ) subsets, each w i t h r o u g h l y h a l f t h e
p o i n t s o f t h e p a r e n t node. T h e s e c h i l d r e n are a g a i n p a r t i t i o n e d i n t o e q u a l halves,
u s i n g planes t h r o u g h a different d i m e n s i o n ( u s u a l l y one keeps o n c y c l i n g t h r o u g h t h e
d i m e n s i o n s w h e n d e t e r m i n i n g t h e n e x t s p l i t t i n g p l a n e ) . T h i s p a r t i t i o n i n g process
7
stops after l o g A " levels. I n t h e e n d every n o d e o f t h e fcd-tree, f r o m t h e r o o t t o t h e
leaves, stores a p o i n t . T h e c o m p u t a t i o n a l c o m p l e x i t y for b u i l d i n g a fcd-tree f r o m JV
s
points i n R is 0(sN l o g N). O n c e t h e t r e e is b u i l t , a r a n g e q u e r y c a n be p e r f o r m e d
i n 0(\ogN) t i m e . T h i s compares, f a v o r a b l y w i t h t h e O(N) time it would take to
search t h e " r a w " d a t a set.
I n o u r M A T L A B examples we use t h e f u n c t i o n s k d t r e e a n d k d r a n g e q u e r y from
t h e fcd-tree l i b r a r y ( g i v e n as a set o f M A T L A B M E X - f i l e s w r i t t e n b y G u y Shechter
t h a t c a n be d o w n l o a d e d f r o m t h e M A T L A B C e n t r a l F i l e E x c h a n g e , see [ M C F E ] ) .
F i g u r e A . l shows a s t a n d a r d m e d i a n - b a s e d p a r t i t i o n i n g o f n i n e H a l t o n p o i n t s
2
i n [0, l ] o n t h e left a l o n g w i t h t h e associated A;d-tree o n t h e r i g h t .
(1) XeA,
(2) A A i m p l i e s t h a t i t s c o m p l e m e n t ( i n X) is also c o n t a i n e d i n A ,
(3) Ai E A , i E N , i m p l i e s t h a t t h e u n i o n o f these sets is c o n t a i n e d i n A .
(1) M0) = o,
(2) for any sequence {Ai} o f d i s j o i n t sets i n A we have
oo oo
i=l i=l
431
432 Meshfree Approximation Methods with MATLAB
B.2 A B r i e f S u m m a r y of I n t e g r a l T r a n s f o r m s
W e s u m m a r i z e f o r m u l a s for v a r i o u s i n t e g r a l t r a n s f o r m s used t h r o u g h o u t t h e t e x t .
T h e F o u r i e r t r a n s f o r m c o n v e n t i o n s w e adhere t o are l a i d o u t i n
s
D e f i n i t i o n B . 4 . T h e Fourier transform o f / E L i ( R ) is g i v e n b y
/() = -=L= f ?
(27V) s
jRs
i
f(x)e- ^dx, u; E R*, (B.l)
f{x) = -JL= s
/ f(oj)e*"du,, x E W.
v /(27r) JWLS
T h i s d e f i n i t i o n o f t h e F o u r i e r t r a n s f o r m c a n be f o u n d i n [ R u d i n ( 1 9 7 3 ) ] . A n o t h e r ,
j u s t as c o m m o n , d e f i n i t i o n uses
2
/() = ( f(x)e- "*dx, (B.2)
JR S
A ( )
W = _ L = / e - ^ d ^ x ) , weR . 3
x /(27r) s
JRS
Since we are m o s t l y i n t e r e s t e d i n p o s i t i v e d e f i n i t e r a d i a l f u n c t i o n s , we n o t e t h a t
t h e F o u r i e r t r a n s f o r m o f a r a d i a l f u n c t i o n is a g a i n r a d i a l . I n d e e d ,
s
T h e o r e m B . l . Let $ E Z / i ( R ) be continuous and radial, i.e., &(x) = <^(||cc||).
Then its Fourier transform < is also radial, i.e., <3>(o;) = .F,s(/?(||u>||) with
1 i
i t t2
FsVir) - i o / P( ) J(s-2)/2{rt)dt,
s A
Vr ~ Jo
where J( -2)/2
s is the classical Bessel function of the first kind of order (s 2 ) / 2 .
T h e L a p l a c e t r a n s f o r m is c o n t i n u o u s a t t h e o r i g i n i f a n d o n l y i f \x is f i n i t e .
G e n e r a l i z e d F o u r i e r t r a n s f o r m s are r e q u i r e d i n t h e t r e a t m e n t o f c o n d i t i o n a l l y p o s i -
t i v e d e f i n i t e f u n c t i o n s . For t h e d e f i n i t i o n o f t h e generalized F o u r i e r t r a n s f o r m g i v e n
b e l o w we have t o define t h e Schwartz space o f r a p i d l y decreasing test f u n c t i o n s
S
S = { 7 G C(M ) : lim x^iD^Xx) = 0, cx, 3 & W }, 0
||as||-oo
w h e r e we use t h e m u l t i - i n d e x n o t a t i o n
S
T h e space S consists o f a l l those f u n c t i o n s 7 G C ( M ) w h i c h , t o g e t h e r w i t h
all t h e i r d e r i v a t i v e s , decay faster t h a n a n y p o w e r o f l / | | c c | | . T h e space S contains
s s
t h e space C o ( I R ) , t h e space o f a l l i n f i n i t e l y d i f f e r e n t i a b l e f u n c t i o n s o n M with
c o m p a c t s u p p o r t . W e also n o t e t h a t CQ(R ) S
is a t r u e subspace o f S since, e.g., t h e
x s
f u n c t i o n 7(0?) = e~H H belongs t o S b u t n o t t o C o ( R ) . A r e m a r k a b l e fact a b o u t
t h e S c h w a r t z space is t h a t 7 G <S has a classical F o u r i e r t r a n s f o r m 7 w h i c h is also
in S.
O f p a r t i c u l a r i m p o r t a n c e are t h e f o l l o w i n g subspaces S m of S
S m = {7 G S : 70*0 = 0(\\x\\ ) m
for ||a:|| 0, m G N } . 0
F u r t h e r m o r e , t h e set V o f s l o w l y i n c r e a s i n g f u n c t i o n s is g i v e n b y
S
V = {f e C ( K ) : | / ( x ) | < |p(as)| for some p o l y n o m i a l p G L T } .
T h e generalized F o u r i e r t r a n s f o r m is n o w g i v e n b y
S
Definition B . 6 . Let / G V be c o m p l e x - v a l u e d . A c o n t i n u o u s f u n c t i o n / : 1R \
{ 0 } > C is called t h e generalized Fourier transform o f / i f t h e r e exists a n integer
m G No such t h a t
/ f(x)j(x)dx = / f(x)-f(x)dx
V a r i o u s d e f i n i t i o n s o f t h e generalized F o u r i e r t r a n s f o r m exist i n t h e l i t e r a t u r e .
A classical reference is t h e b o o k [ G e l ' f a n d a n d V i l e n k i n (1964)].
Since one can show t h a t t h e generalized F o u r i e r t r a n s f o r m o f a n s-variate p o l y -
n o m i a l of degree at m o s t 2 m is zero, i t follows t h a t t h e inverse generalized F o u r i e r
434 Meshfree Approximation Methods with MATLAB
t r a n s f o r m is o n l y u n i q u e u p t o a d d i t i o n o f s u c h a p o l y n o m i a l . T h e o r d e r o f t h e
g e n e r a l i z e d F o u r i e r t r a n s f o r m is n o t h i n g b u t t h e o r d e r o f t h e s i n g u l a r i t y a t t h e o r i -
s
g i n o f t h e generalized F o u r i e r t r a n s f o r m . For functions i n L i ( R ) the generalized
F o u r i e r t r a n s f o r m c o i n c i d e s w i t h t h e classical F o u r i e r t r a n s f o r m , a n d for f u n c t i o n s
S
i n L 2 ( M ) i t coincides w i t h t h e d i s t r i b u t i o n a l F o u r i e r t r a n s f o r m .
Appendix C
C l MATLAB Programs
P r o g r a m C . l . t e s t f unct i o n . m
% tf = testfunction(s,points)
/ E v a l u a t e s
0 testfunction
/ p r o d _ { d = l } ~ s x _ d * ( l - x _ d )
0 ( n o r m a l i z e d so t h a t i t s max i s 1)
% at s-dimensional points
function t f = testfunction(s,points)
tf = 4"s*prod(points.*(1-points),2);
- A sin(7rrr ) d
sine (x) = A
I IX
-.
TTXd
d = l
P r o g r a m C.2. sinc.m
% f = sinc(x)
% Defines sine function
function f = sinc(x)
435
436 Meshfree Approximation Methods with MATLAB
f = ones(size(x));
nz = f i n d ( x ~ = 0 ) ;
f(nz) = sin(pi*x(nz))./(pi*x(nz));
N o t e t h a t w h i l e s i n c . m takes a v e c t o r i n p u t x i t p r o d u c e s a v e c t o r o f values
o f t h e u n i v a r i a t e sine f u n c t i o n at t h e c o m p o n e n t s o f x n o t t h e value o f t h e
m u l t i v a r i a t e sine f u n c t i o n a t t h e v e c t o r a r g u m e n t x .
A m u l t i - d i m e n s i o n a l g r i d o f e q u a l l y spaced p o i n t s is used several t i m e s t h r o u g h -
out the book. M A T L A B provides the c o m m a n d n d g r i d t h a t can accomplish this.
However, i n o r d e r t o be able t o use t h i s c o m m a n d f l e x i b l y for a l l space d i m e n s i o n s
s we require a l i t t l e e x t r a w o r k . T h i s is i m p l e m e n t e d M a k e S D G r i d . m .
Program C . 3 . MakeSDGrid.m
% gridpoints = MakeSDGrid(s,neval)
% Produces m a t r i x of e q u a l l y spaced p o i n t s i n s-dimensional unit cube
/ ( o n e p o i n t p e r
0 row)
% Input
% s: space dimension
% neval: number of points i n each c o o r d i n a t e direction
% Output
7o gridpoints: neval~s-by-s matrix (one p o i n t p e r row,
7o d - t h column c o n t a i n s d - t h c o o r d i n a t e of point)
function gridpoints = MakeSDGrid(s,neval)
if (s==l)
gridpoints = linspace(0,1,neval)';
return;
end
7o M i m i c t h i s statement f o r general s:
7o [ x l , x2] = n d g r i d ( l i n s p a c e ( 0 , 1 , n e v a l ) ) ;
outputarg = ' x l ' ;
for d = 2:s
outputarg = strcat(outputarg,',x',int2str(d));
end
makegrid = s t r c a t ( ' [ ' , o u t p u t a r g , ' ] = ndgrid(linspace(0,1,neval));');
eval(makegrid);
7o M i m i c t h i s statement f o r general s:
7o g r i d p o i n t s = [xl(:) x2(:)];
gridpoints = zeros(neval"s,s);
for d = l:s
matrices = strcat('gridpoints(:,d) = x',int2str(d),'(:);');
eval(matrices);
end
C. Additional Computer Programs 437
D u e t o i t s r e m o v a b l e s i n g u l a r i t y a t t h e o r i g i n t h e t h i n - p l a t e spline basic f u n c t i o n
requires a separate f u n c t i o n d e f i n i t i o n .
P r o g r a m C.4. tps.m
% rbf = tps(e,r)
'/, Defines t h i n p l a t e s p l i n e RBF
function rbf = tps(e,r)
rbf = z e r o s ( s i z e ( r ) ) ;
nz = f i n d ( r ~ = 0 ) ; % t o d e a l with s i n g u l a r i t y a t o r i g i n
rbf(nz) = (e*r(nz)).~2.*log(e*r(nz));
P r o g r a m C.5. P l o t S u r f .m
% P l o t S u r f ( x e , ye, Pf,neval,exact,maxerr,fview)
% Generates p l o t of s u r f a c e Pf f a l s e c o l o r e d by t h e
% maximum e r r o r a b s ( P f - e x a c t )
% fview d e f i n e s t h e view.
function PlotSurf(xe,ye,Pf,neval,exact,maxerr,fview)
/ P l o t s u r f a c e
0
figure
Pfplot = surf(xe,ye.reshape(Pf,neval,neval),.. .
reshape(abs(Pf-exact),neval,neval));
5
s e t ( P f p l o t , ' F a c e C o l o r ' ,'interp','EdgeColor','none )
[cmin cmax] = c a x i s ;
caxis([cmin-.25*maxerr cmax]);
view(fview);
colormap hsv
vcb = c o l o r b a r ( ' v e r t ' ) ;
y l i m ( v c b , [ 0 maxerr])
set(get(vcb,'YLabel'),'String','Error')
P r o g r a m C.6. P l o t E r r o r 2 D .m
'/, P l o t E r r o r 2 D (xe, ye, Pf , exact,maxerr,neval, fview)
/ Generates p l o t of abs e r r o r f o r s u r f a c e P f , i . e . , abs ( P f - e x a c t )
0
fview d e f i n e s t h e view,
function PlotError2D(xe,ye,Pf,exact,maxerr,neval,fview)
% P l o t maximum e r r o r
f igure
errorplot = surf(xe,ye,reshape(abs(Pf-exact),neval,neval));
set(errorplot,'FaceColor','interp','EdgeColor','none')
438 Meshfree Approximation Methods with MATLAB
[ c m i n cmax] = caxis;
c a x i s ( [ c m i n - . 2 5 * m a x e r r cmax])
view(fview);
colormap hsv
vcb = c o l o r b a r ( ' v e r t ' ) ;
ylim(vcb,[0 maxerr])
For 3 D p l o t s we use t h e f o l l o w i n g r o u t i n e s .
P r o g r a m C . 7 . P l o t l s o s u r f .m
% Plotlsosurf(xe,ye,ze,Pf,neval,exact.maxerr,isomin,
7, isostep,isomax)
7o G e n e r a t e s p l o t of isosurfaces of Pf f a l s e c o l o r e d by
7o t h e error abs ( P f - e x a c t )
7o i s o m i n , i s o s t e p , i s o m a x define the r a n g e and number o f
7o isosurfaces.
function Plotlsosurf(xe,ye,ze,Pf,neval,exact,maxerr,...
isomin,isostep,isomax)
7 P l o t isosurfaces
figure
hold on
for isovalue=isomin:isostep:isomax
pfit = patch(isosurface(xe,ye,ze,reshape(Pf,neval,.. .
neval,neval),isovalue,reshape(abs(Pf-exact),. . .
neval,neval,neval)));
isonormals(xe,ye,ze,reshape(Pf,neval,neval,neval),pfit)
5
set(pf i t , ' F a c e C o l o r ' , ' i n t e r p ' , EdgeColor','none');
daspect([l 11])
view(3); axis([0 1 0 1 0 1])
end
[ c m i n cmax] = caxis;
caxis([cmin-.25*cmax cmax])
colormap hsv
vcb = c o l o r b a r ( ' v e r t ' ) ;
ylim(vcb,[0 cmax])
set(get(vcb,'YLabel'),'String',* Error')
hold off
P r o g r a m C.8. PlotSlices.m
% PlotSlices(xe,ye,ze,Pf,neval,xslice,yslice,zslice)
% Generates s l i c e plot o f volume Pf
7 x s l i c e , y s l i c e , z s l i c e d e f i n e the r a n g e and number o f slices
C. Additional Computer Programs 439
function P l o t S l i c e s ( x e , y e , z e , P f , n e v a l , x s l i c e , y s l i c e , z s l i c e )
% Plot s l i c e s
figure
p f i t = slice(xe,ye,ze,reshape(Pf,neval,neval,neval),...
xslice,yslice,zslice);
set(pf it,'FaceColor','interp','EdgeColor','none')
daspect([l 1 1 ] )
view(3); a x i s ( [ 0 1 0 1 0 1])
vcb = c o l o r b a r ( ' v e r t ' ) ;
set(get(vcb,'YLabel'),'String','Function value')
P r o g r a m C . 9 . P l o t E r r o r S l i c e s .m
7 P l o t E r r o r S l i c e s (xe, ye, ze, Pf , exact ,ne, x s l i c e , y s l i c e , z s l i c e )
% Generates s l i c e p l o t of volume e r r o r a b s ( P f - e x a c t )
% x s l i c e , y s l i c e , z s l i c e d e f i n e the range and number of s l i c e s ,
function PlotErrorSlices(xe,ye,ze,Pf,exact,ne,...
xslice,yslice,zslice)
% Plot s l i c e s f o r error
figure
errorplot = slice(xe,ye,ze,reshape(abs(Pf-exact),ne,ne,ne),...
xslice,yslice,zslice);
set(errorplot,'FaceColor','interp','EdgeColor','none')
daspect([l 1 1])
view(3); a x i s ( [ 0 1 0 1 0 1])
[cmin cmax] = c a x i s ;
caxis([cmin-.25*cmax cmax])
colormap hsv
vcb = c o l o r b a r ( ' v e r t ' ) ;
y l i m ( v c b , [0 cmax])
set(get(vcb,'YLabel'),'String','Error')
T h e f o l l o w i n g a l g o r i t h m is a v e r y p r i m i t i v e ( a n d v e r y inefficient) i m p l e m e n t a t i o n
of a n a d a p t i v e t h i n n i n g a l g o r i t h m for s c a t t e r e d d a t a . I t removes 500 p o i n t s a t a
t i m e a n d w r i t e s t h e i n t e r m e d i a t e r e s u l t t o a file.
P r o g r a m C . 1 0 . Thin.m
load('Data2D_Beethoven')
% T h i s loads v a r i a b l e s d s i t e s and r h s
x = dsites(:,1);
y = dsites(:,2);
f igure
tes = delaunayn(dsites);
triplot(tes,x,y,'g')
440 Meshfree Approximation Methods with MATLAB
f o r 1=1:5
for j=l:500
n = size(dsites,1);
d = zeros(1,n);
for i=l:n
temp = d s i t e s ;
temp(i,:) = ;
[ k , d ( i ) ] = dse archil (temp, d s i t e s ( i , : ) ) ;
i f (k >= i )
k=k+l;
end
end
r = min(d);
idx = find(d==r);
d s i t e s ( i d x ( l ) ,: ) = [] ;
x(idx(l)) = [ ] ;
y(idx(l)) = [ ] ;
r h s ( i d x ( l ) ) = [] ;
end
figure
tes = delaunayn(dsites);
triplot(tes,x,y,'r')
name = s p r i n t f ('Data2D_Beethoven/ d', 1 ) ; 0
P r o g r a m C . l l . MLSDualBases .mws
# 0.3750,0.8750,0.0625,0.5625,0.3125,0.8125] ) ;
G := matrix(m,m):
f o r i from 1 t o m do
f o r j from 1 t o m do
G [ i , j ] := e v a l f ( a d d ( ( X [ k ] ) ~ ( i - 1 ) * ( X [ k ] ) ~ ( j - l ) *
phi(x,X[k]), k=l..N+l));
od:
od:
P := v e c t o r ( [ e v a l f ( s e q ( y ~ ( k - 1 ) , k = l . . m ) ) ] ) ;
Lambda := l i n s o l v e ( G . P ) :
f o r k from 1 t o m do
l | | k := unapply(Lambda [ k ] , ( x , y ) ) ;
od:
f o r k from 1 t o m do
l p l l k := p l o t ( l | | k ( x , x ) , x=0..1):
od:
d i s p l a y ( [ s e q ( l p I I k , k=l..m)],insequence=true,thickness=2);
K := ( x , y ) -> p h i ( x , y ) * a d d ( l | | k ( x , x ) * y ~ ( k - 1 ) , k=l..m):
approxK := ( x , y ) -> 1 / s q r t ( D D * P i ) * ( 3 / 2 - e p ~ 2 * ( x - y ) " 2 )
*phi(x,y);
f o r i from 1 t o N+l do
aKplli := p l o t ( [ K ( x , X [ i ] ) , a p p r o x K ( x , X [ i ] ) ] , x=0..1,
color=[green,red]):
od:
display(seq(aKpI|i,i=l..N+l),insequence=true,thickness=2);
Appendix D
J ^ ( M I ) = lv(r)^r(x,y)
d , . x
2 2
dr yjx + y
x d . .
r dr
2 2 r - e n e r i c
since r = = y/x + y . S i m i l a r l y , J^>(||ar||) = r ^ ^ ( ) ^^e S second-
o r d e r d e r i v a t i v e s are g i v e n b y
2 2 2
9 2
/,i us d , . ( d . A d . , d . ,
fl^ND = ^ ( r ) (^(*>v)J + - ^ r ) - ^ r ( x , y )
x
2
d 2
, . y 2
d
2 3
dr r dr
as w e l l as
2 2 2 2
d v d x d
2 2 2 3
dy r dr r dr
2 2 3
dxdy r dr r dr
and the Laplacian
2 2 2
d d \ ... ... d , . H M
2 2 2
\ <9a: ch/ / dr r dr
D e r i v a t i v e s o f h i g h e r o r d e r o r i n h i g h e r space d i m e n s i o n s c a n be c o m p u t e d s i m -
i l a r l y b y a p p l y i n g t h e c h a i n r u l e . F o r e x a m p l e , t h e generic f o u r t h - o r d e r b i h a r m o n i c
(or d o u b l e L a p l a c i a n ) t u r n s o u t t o be
3
/ d 4
d 4
d 4
\ d 4
2d I d 2
I d
+ 2
dxW +
W) ^ ' (I X|I) =
^ { r )+
r^ r )
' ^d7^ ( r ) +
^oV^ ( r )
-
443
444 Meshfree Approximation Methods with MATLAB
E x a m p l e D . l . Gaussian R B F :
dr
2 2 2
J^(r) = 2e e-(-) (2(er) - l) .
T h i s f u n c t i o n is C at t h e o r i g i n .
E x a m p l e D . 2 . Inverse m u l t i q u a d r i c ( I M Q ) R B F :
1
y/l + {er) ' 2
2
d .. er
-if(r)
2 3 2
dr" ' (l + ( r) ) / '
d ..
2
2(er) - 1 22
2
Mr) =e
2
dr (! + ( e r )2)5/2
T h i s f u n c t i o n is C at t h e o r i g i n .
E x a m p l e D . 3 . Generalized I M Q R B F :
i
tp(r) (l + (er) ) ' 2 2
2
d .. 4e r
Mr)
dr ( l + ( e r ) )3 ' 2
2
d 2
, , .
r 4
2 5( r) - 1
2
M) = v 2 4
dr ^ (1 + ( e r ) ) '
T h i s f u n c t i o n is C at the o r i g i n .
E x a m p l e D . 4 . Inverse q u a d r a t i c ( I Q ) R B F :
1
P(r) = 2
(l + M ) '
2
d .. 2e r
-r^(r) 2 '
dr (i + ( e r ) 2 )
d ,s
2
0 2 3(er) - 1 2
( e r ) )3
2 K
dr ^ (1 + 2
T h i s f u n c t i o n is C at t h e o r i g i n .
D. Catalog of RBFs with Derivatives 445
E x a m p l e D . 5 . Basic M a t e r n R B F :
r
<p(r) e~ .
T h i s f u n c t i o n is n o t differentiable at t h e o r i g i n .
E x a m p l e D . 6 . Linear M a t e r n R B F :
_ r
(p(r) = e ( l + er),
2 er
-^-tp(r) = e re~ ,
dr
2
| ^ ( r ) = e ( e r - 1).
2
T h i s f u n c t i o n is C at t h e o r i g i n , b u t n o t s m o o t h e r .
E x a m p l e D . 7 . Quadratic Matern R B F :
r 2
y,(r) = e - ( 3 + 3 r + ( e r ) ) ,
2 _ e r
j-<p(r) = e re (l +er),
CX/
2 r 2
j^2<p(r) = e e~ ((er) - er - l ) .
4
T h i s f u n c t i o n is C at t h e o r i g i n .
E x a m p l e D . 8 . Cubic M a t e r n R B F :
r 2 3
cp(r) = e - ( 1 5 + 15er + 6 ( e r ) + (er) ),
d
2 r 2
<p(r) = -e re~ ((er) + 3er + 3) ,
2 r
^ > ( r ) = e e~ ((erf - 3er - 3) .
6
T h i s f u n c t i o n is C at t h e o r i g i n .
E x a m p l e D . 9 . L i n e a r or n o r m R B F :
(p(r) r.
T h i s f u n c t i o n is n o t differentiable at t h e o r i g i n .
E x a m p l e D . l l . Generalized M Q R B F :
2 3 2
y>(r) = ( 1 + ( e r ) ) / ,
2 2
4-<p(r) = 3e ry/l + (er) ,
dr
2 2
d . . Q 2
2
2(er) + 1
;(p(r) = 3e
2 2
dr y/i + (er)
T h i s f u n c t i o n is C at t h e o r i g i n .
E x a m p l e D . 1 2 . Cubic R B F :
3
<p(r) = r,
2
| ( r ) = 3r ,
2
d , ,
2 ;<p{r) = 6 r .
dr
E x a m p l e D . 1 3 . T h i n plate spline ( T P S ) R B F :
2
(p(r) = r log(r),
- ^ ( r ) = r (2 l o g ( r ) + 1 ) ,
2
d
dr Mr)
2 = 21og(r) + 3 .
W h i l e t h e s i n g u l a r i t i e s o f t h e f u n c t i o n a n d first d e r i v a t i v e a t t h e o r i g i n are r e m o v -
able, t h e s i n g u l a r i t y o f t h e second d e r i v a t i v e a t t h e o r i g i n is n o t .
2
- ^ ( r ) = 5e r ( l + 2
{erff ,
dr
J^(r) = 5eVl + (er) 2
(4(er) + l ) . 2
T h i s f u n c t i o n is C a t t h e o r i g i n .
E x a m p l e D . 1 5 . Quintic R B F :
5
= r ,
4
- 5r ,
2
d , x
3
2 r )
= 20r
dr ^
D. Catalog of RBFs with Derivatives 447
E x a m p l e D . 1 6 . Second-order T P S R B F :
4
(p(r) = r log(r),
3
^^(r) = r (41og(r) + l ) ,
2
d
2
< p ( ) = r (121og(r) + 7).
r
E x a m p l e D . 1 7 . Septic R B F :
7
<f(r) = r ,
6
d
drMr) = 7r ,
_ 5
ip(r) = 42r .
2
dr
2 e r 2 4 2
jj^<p(r) = -2e e-( ) (2(er) - 9(er) + 3) .
T h i s f u n c t i o n is C a t t h e o r i g i n .
2
E x a m p l e D . 1 9 . Q u a d r a t i c L a g u e r r e - G a u s s i a n R B F for R :
p ( r ) = e - ( - ) 2
( 3 _ 3 ( r ) 2 + l ( r ) 4 ) )
2 2 4 2
^ ( r ) = - e r e - ^ ((er) - 8(er) + 12) ,
2 2 4 2
~ ^ ( r ) = e e~^ (2(erf - 21(er) + 48(er) - 12) .
T h i s f u n c t i o n is C a t t h e o r i g i n .
E x a m p l e D . 2 0 . Linear generalized I M Q R B F :
2
2 - (er)
<p(r) 2 4
(l + ( r ) ) '
2
d
( \ 2 (er) - 3
<f(r) = 6e r-
2 5
^ ( l + (er) ) '
2 4 2
d 2 7(gr) -30( r) + 3
(pi \ - 6 c r -~ .
2 y
dr ^ (l + (er) ) 2 6
^ fk fi
448 Meshfree Approximation Methods with MATLAB
T h i s f u n c t i o n is C at t h e o r i g i n .
E x a m p l e D . 2 1 . Q u a d r a t i c generalized I M Q R B F :
2 4
3 - 6(er) + (er)
tp(r) 2 6
(1 + ( e r ) )
d , s o 2 (er 4
- 8 (er + 6 2
ip(r)y
= -8e^r-- -'-^ ,
d r ( i + ( e r ) 2 ) 7
6 4 2
l_ n M _ 0 / l . 3(er) -31(er)
2 + 34(er) -2
2 r 2 A 2
d r ^ ) - (l + (er) f
<p(r) = (l-er)\.
T h i s f u n c t i o n is n o t differentiable a t t h e o r i g i n .
4-<p(r) = - 2 0 e r ( l - e r ) , 2 3
dr
d?
2 2
^2<p(r) = 20e (4er - 1)(1 - er) ..
2
T h i s f u n c t i o n is C at t h e o r i g i n .
E x a m p l e D . 2 4 . W e n d l a n d ' s ipz,i ( s t r i c t l y p o s i t i v e definite i n
6 2
<p{r) = ( 1 - er) (35(er) + + 18er + 3 ) ,
4-<p(r) = - 5 6 e r ( 5 e r + 1 ) ( 1 - 2
er) ,,5
dr
2
d
2 2 4
2 : <p(r) = 5 6 e ( 3 5 ( e r ) - 4er - l ) (1 - e r ) .
dr
4
T h i s f u n c t i o n is C at t h e o r i g i n .
3 2
cp(r) = ( 1 - er)5_(32(er) + 2 5 ( e r ) + 8er + 1),
4~<p(r) = - 2 2 e r ( l 6 ( e r ) + 7er + l ) ( 1 - 2 2 7
er) ,,
dr
2
d
2 3 2
2 ip(r) = Tie (I60(er) + 15(er) - 6er - l ) (1 - er)\.
dr
6
T h i s f u n c t i o n is C at t h e o r i g i n
Catalog of RBFs with Derivatives 449
7
E x a m p l e D . 2 6 . W u ' s -03,3 ( s t r i c t l y p o s i t i v e definite i n R ) :
3 2
(p(r) = ( 1 - er)\(5(er) + 20(er) + 29er + 1 6 ) .
T h i s f u n c t i o n is n o t differentiable a t t h e o r i g i n .
4 3 2
(p(r) = ( 1 - er)%(5(er) + 25(er) + 48(er) + 40er + 8 ) ,
2 3 2 4
< ^ ( r ) = -9e r ( 5 ( e r ) + 2 0 ( e r ) + 29er + 16) ( 1 - er) ,
dr
2
d 2 4 3 2 3
- ^ t p ( r ) = 1 8 e ( 2 0 ( e r ) + 6 0 ( e r ) + 5 7 ( e r ) + Her - 8) ( 1 -
z
er) ,.
dr
2
T h i s f u n c t i o n is C at the origin.
5 4 2
(p(r) = ( 1 - er)%(5(er) + 30(er) + 12(erf + 82{er) + S6er + 6 ) ,
2 3 2
^ip(r) = - l l e r ( e r + 2) (5(er) + 15(er) + 18er + 4) ( 1 - er)%,
Co/
2
rl
2 5 4 3 2
-f?(r) = 22e (25(er) + lOO(er) + 142(er) + 6 8 ( e r )
2
- 16er - 4) ( 1 - er)%.
dr
4
T h i s f u n c t i o n is C at the o r i g i n .
4-ip(r) = -13e r 2
(b(er) 5
+ S0(er) 4
+ 72(er) 3
+ 82(er) 2
+ 3 6 e r + 6) ( 1 - er)%,
dr
2 6 5 4 3 2
^<p(r)
z
= 7 8 e ( l O ( e r ) + 50{er) + 95(er) + 75(er) + 7(er) - her - l ) ( 1 - er)%.
dr
6
T h i s f u n c t i o n is C a t t h e o r i g i n , b u t o n l y s t r i c t l y p o s i t i v e definite i n R .
E x a m p l e D . 3 0 . E u c l i d ' s h a t <pi:
<p{r) = (l-er/2)+.
451
452 Meshfree Approximation Methods with MATLAB
simple & less costly alternative to the finite element and boundary element methods,
Comput. Model. Eng. Sci. 3, pp. 11-51.
Atluri, S. N. and Zhu, T. (1998). A new meshless local Petrov-Galerkin (MLPG) approach
in computational mechanics, Comput. Mech. 22, pp. 117-127.
Babuska, I., Banerjee U. and Osborn, J. E. (2003). Survey of meshless and generalized
finite element methods: A unified approach, Acta Numerica 12, pp. 1-125.
Babuska, I. and Melenk, M. (1997). The partition of unity method, Int. J. Numer. Meths.
Eng. 40, pp. 727-758.
Backus, G. and Gilbert, F. (1968). The resolving power of gross earth data, Geophys. J.
R. Astr. Soc. 16, pp 169-205.
Ball, K. (1992). Eigenvalues of Euclidean distance matrices, J. Approx. Theory 68, pp. 74
82.
Ball, K., Sivakumar, N. and Ward, J. D. (1992). On the sensitivity of radial basis inter-
polation to minimal data separation distance, Constr. Approx. 8, pp. 401-426.
Barnes, R. J. (1994). A modified conjugate gradient algorithm for scattered data interpo-
lation using radial basis functions, J. Appl. Sci. Comput. 1, pp. 227-238.
Barnhill, R. E. and Ou, H. S. (1990). Surfaces defined on surfaces, Comput. Aided Geom.
Design 7, pp. 323-336.
Barron, A. R. (1993). Universal approximation bounds for superpositions of a sigmoidal
function, IEEE Trans. Inform. Theory 39, pp. 930-945.
Bates, D., Lindstrom, M., Wahba, G. and Yandell, B. (1987). G C V P A C K routines for
generalized cross validation, Commun. Statist. B Simulation and Computation
16, pp. 263-297.
Bates, D. and Wahba, G. (1982). Computational methods for generalized cross valida-
tion with large data sets, in Treatment of Integral Equations by Numerical Methods,
C. T. H. Baker, and G. F. Miller (eds.), Academic Press (New York), pp. 283-296.
Baule, R. (2000). Moving Least Squares Approximation mit parameterabhangigen
Gewichtsfunktionen, Diplomarbeit, Universitat Gottingen.
Baxter, B. J. C. (1991). Conditionally positive functions and p-norm distance matrices,
Constr. Approx. 7, pp. 427-440.
Baxter, B. J. C. (1992a). Norm estimates for inverses of distance matrices, in Mathematical
Methods in Computer Aided Geometric Design II, T. Lyche and L. Schumaker (eds.),
Academic Press (New York), pp. 9-18.
Baxter, B. J. C. (1992b). The asymptotic cardinal function of the multiquadric <p(r) =
2 2
(r + c ) as c > oo, Comput. Math. Appl. 24, pp. 1-6.
1 / 2
Baxter, B. J. C. (1992c). The interpolation theory of radial basis functions, Ph.D. Disser-
tation, University of Cambridge.
Baxter, B. J. C. (2002). Preconditioned conjugate gradients, radial basis functions, and
Toeplitz matrices, Comput. Math. Appl. 43, pp. 305318.
Baxter, B. J. C. (2006). Scaling radial basis functions via Euclidean distance matrices,
Comput. Math. Appl. 51 8, pp. 1163-1170.
Baxter, B. J. C. and Hubbert, S. (2001). Radial basis functions for the sphere, in Recent
progress in multivariate approximation, Internat. Ser. Numer. Math., 137, Birkhauser
(Basel), pp. 33-47.
Baxter, B. J. C. and Roussos, G. (2002). A new error estimate of the fast Gauss transform,
SIAM J. Sci. Comput. 24 1, pp. 257-259.
Baxter, B. J. C. and Sivakumar, N. (1996). On shifted cardinal interpolation by Gaussians
and multiquadrics, J. Approx. Theory 8 7 , pp. 36-59.
Baxter, B. J. C , Sivakumar, N. and Ward, J. D. (1994). Regarding the p-norms of radial
basis interpolation matrices, Constr. Approx. 10, pp. 451-468.
Bibliography 453
Beatson, R. K., Cherrie, J. B. and Mouat, C. T. (1999). Fast fitting of radial basis func-
tions: methods based on preconditioned GMRES iteration, Adv. Comput. Math. 11,
pp. 253-270.
Beatson, R. K. and Bui, H.-Q. (2003). Mollification formulas and implicit smoothing,
Research Report UCDMS 2003/19, University of Canterbury.
Beatson, R. K., Bui, H.-Q. and Levesley, J. (2005). Embeddings of Beppo-Levi spaces in
Holder-Zygmund spaces, and a new method for radial basis function interpolation
error estimates, J. Approx. Theory 137, pp. 166-178.
Beatson, R. K. and Dyn, N. (1996). Multiquadric B-splines, J. Approx. Theory 87, pp. 1
24.
Beatson, R. K., Goodsell, G. and Powell, M. J. D. (1996). On multigrid techniques for
thin plate spline interpolation in two dimensions, in The Mathematics of Numerical
Analysis, Lectures in Appl. Math., 32, Amer. Math. Soc. (Providence, RI), pp. 77-97.
Beatson, R. K. and Greengard, L. (1997). A short course on fast multipole methods, in
Wavelets, Multilevel Methods and Elliptic PDEs (Leicester, 1996), M. Ainsworth, J.
Levesley, M. Marietta and W. A. Light (eds.), Numer. Math. Sci. Comput., Oxford
Univ. Press (New York), pp. 1-37.
Beatson, R. K. and Langton, M. K. (2006). Integral interpolation, in Algorithms for Ap-
proximation V, A. Iske and J. Levesley (eds.), Springer-Verlag, Heidelberg, pp. 199
218.
Beatson, R. K. and Levesley, J. (2002). Good point/bad point iterations for solving the
thin-plate spline interpolation equations, in Approximation Theory X, C. K. Chui,
L. L. Schumaker, and J. Stockier (eds.), Vanderbilt Univ. Press (Nashville, TN),
pp. 17-25.
Beatson, R. K. and Light, W. A. (1992). Quasi-interpolation in the absence of polynomial
reproduction, in Numerical Methods in Approximation Theory, ISNM 105, D. Braess,
L. L. Schumaker (ed.), Birkhauser (Basel), pp. 21-39.
Beatson, R. K. and Light, W. A. (1993). Quasi-interpolation with thin plate splines on a
square, Constr. Approx. 9, pp. 407-433.
Beatson, R. K. and Light, W. A. (1997). Fast evaluation of radial basis functions: methods
for two-dimensional polyharmonic splines, IMA J. Numer. Anal. 17, pp. 343372.
Beatson, R. K., Light, W. A. and Billings, S. (2000). Fast solution of the radial basis func-
tion interpolation equations: domain decomposition methods, SIAM J. Sci. Comput.
22, pp. 1717-1740.
Beatson, R. K. and Newsam, G. N. (1992). Fast evaluation of radial basis functions: I,
Comput. Math. Appl. 24, pp. 7-19.
Beatson, R. K. and Newsam, G. N. (1998). Fast evaluation of radial basis functions:
Moment based methods, SIAM J. Sci. Comput. 19, pp. 1428-1449.
Beatson, R. K. and Powell, M. J. D. (1992a). Univariate multiquadric approximation:
quasi-interpolation to scattered data, Constr. Approx. 8, pp. 275-288.
Beatson, R. K. and Powell, M. J. D. (1992b). Univariate interpolation on a regular finite
grid by a multiquadric plus a linear polynomial, J. Inst. Math. Applies. 12, pp. 107
133.
Beatson, R. K. and Powell, M. J. D. (1993). An iterative method for thin plate spline inter-
polation that employs approximations to Lagrange functions, in Numerical Analysis
1993 (Dundee, 1993), G. A. Watson and D. F. Griffiths (ed.), Pitman Res. Notes
Math. Ser., 303, Longman Sci. Tech. (Harlow), pp. 17-39.
Behrens, J., Iske, A. and Kaser, M. (2002). Adaptive meshfree method of backward charac-
teristics for nonlinear transport equations, in Lecture Notes in Computer Science and
Engineering Vol.26: Meshfree Methods for Partial Differential Equations, M. Griebel
and M. A. Schweitzer (eds.), Springer Verlag, pp. 21-36.
454 Meshfree Approximation Methods with MATLAB
Bejancu, A. (1999)., Local accuracy for radial basis function interpolation on finite uniform
grids, J. Approx. Theory 99, pp. 242-257.
Belytschko, T., Krongauz, Y., Organ, O., Fleming, M. and Krysl, P. (1996). Meshless
methods: an overview and recent developments, Comp. Meth. Appl. Mech. Eng.
139, pp. 3-47.
Ben Moussa, B., Lanson, N. and Vila, J. P. (1999). Convergence of meshless methods for
conservation laws. Applications to Euler equations, in Hyperbolic problems: The-
ory, numerics, applications. Proceedings of the 7th international conference, Zurich,
Switzerland, February 1998. Vol. I, Fey, Michael et al. (eds.), Birkhauser, Basel,
pp. 31-40.
Berg, C , Christensen, J. P. R. and Ressel, P. (1984). Harmonic Analysis on Semigroups,
Springer (Berlin).
Berlinet, A. and Thomas-Agnan, C. (2004). Reproducing Kernel Hilbert Spaces in Proba-
bility and Statistics, Kluwer (Dordrecht).
Bernal, F. and Kindelan, M. (2006). Meshless simulation of Hele-Shaw flow, submitted.
Beyer, A. (1994). Optimale Centerverteilung bei Interpolation mit radialen Basisfunktio-
nen, Diplomarbeit, Universitat Gottingen.
Binev, P. and Jetter, K. (1992). Estimating the condition number for multivariate inter-
polation problems, in Numerical Methods in Approximation Theory, ISNM 105, D.
Braess, L. L. Schumaker (ed.), Birkhauser (Basel), pp. 41-52.
Bingham, N. H. (1973). Positive definite functions on spheres, Proc. Camb. Phil. Soc. 73,
pp. 145-156.
Bishop, C. (1991). Improving the generalization properties of radial basis function neural
networks, Neural Computation 3, pp. 579-588.
Blumenthal, L. M. (1938). Distance Geometries, Univ. of Missouri Studies, 13, 142pp.
Bochner, S. (1932). Vorlesungen iiber Fouriersche Integrale, Akademische Verlagsge-
sellschaft (Leipzig).
Bochner, S. (1933). Monotone Funktionen, Stieltjes Integrale und harmonische Analyse,
Math. Ann. 108, pp. 378-410.
Bochner, S. (1941). Hilbert distances and positive definite functions, Ann. of Math. 42,
pp. 647-656.
deBoor, C. (1993). Approximation order without quasi-interpolants, in Approximation
Theory VII, E. W. Cheney, C. Chui, and L. Schumaker (eds.), Academic Press (New
York), pp. 1-18.
de Boor, C. On interpolation by radial polynomials, Adv. in Comput. Math. 24, pp. 143
153.
deBoor, C , DeVore, R. A. and Ron, A. (1994a). Approximation from shift-invariant sub-
spaces of L2(Rd), Trans. Amer. Math. Soc. 341, pp. 787-806.
deBoor, C , DeVore, R. A. and Ron, A. (1994b). The structure of finitely generated shift-
invariant spaces in Z/20R ), J- Fund. Anal. 119, pp. 37-78.
d
3
Bos, L. P. and Salkauskas, K. (1987). On the matrix [\xi Xj\ ] and the cubic spline
continuity equations, J. Approx. Theory 51, pp. 81-88.
Bos, L. P. and Salkauskas, K. (1989). Moving least-squares are Backus-Gilbert optimal, J.
Approx. Theory 59, pp. 267-275.
Bouhamidi, A. and Le Mehaute, A. (2004). Radial basis functions under tension, J. Approx.
Theory 127, pp. 135-154.
Bozzini, M., Lenarduzzi, L. and Schaback, R. (2002). Adaptive interpolation by scaled
multiquadrics, Adv. in Comp. Math. 16, pp. 375-387.
Bozzini, M., Lenarduzzi, L. and Schaback, R. (2006). Kernel Z?-splines and interpolation,
Numer. Algorithms 41 1, pp. 1-16.
Braess, D. (1997). Finite Elements: Theory, Fast Solvers, and Applications in Solid Me-
chanics, Cambridge University Press (Cambridge).
Brenner, S. C. and Scott, L. R. (1994). The Mathematical Theory of Finite Element Meth-
ods, Springer Verlag (New York).
Broomhead, D. S. and Lowe, D. (1988). Multivariate functional interpolation and adaptive
networks, Complex Systems 2, pp. 321-355.
Brown, A. L. (1992). Uniform approximation by radial basis functions, Appendix B to
Radial basis functions in 1990, in Advances in Numerical Analysis II: Wavelets,
Subdivision, and Radial Basis Functions, W. Light (ed.), Oxford University Press
(Oxford), pp. 203-206.
Brown, D., Ling, L., Kansa, E. and Levesley, J. (2005). On approximate cardinal precondi-
tioning methods for solving PDEs with radial basis functions, Engineering Analysis
with Boundary Elements 29, pp. 343-353.
Brownlee, R. and Light, W. (2004). Approximation orders for interpolation by surface
splines to rough functions, IMA J. Numer. Anal. 24, pp. 179-192.
Buckley, M. J. (1994). Fast computation of a discretized thin-plate smoothing spline for
image data, Biometrika 81, pp. 247-258.
Buhmann, M. D. (1988). Convergence of univariate quasi-interpolation using multi-
quadrics, IMA J. Numer. Anal. 8, pp. 365-383.
Buhmann, M. D. (1989a). Multivariate interpolation using radial basis functions, Ph.D.
Dissertation, University of Cambridge.
Buhmann, M. D. (1989b). Cardinal interpolation with radial basis functions: an inte-
gral approach, in Multivariate Approximation Theory IV, ISNM 90, C. Chui, W.
Schempp, and K. Zeller (eds.), Birkhauser Verlag (Basel), pp. 41-64.
Buhmann, M. D. (1990a). Multivariate interpolation in odd-dimensional Euclidean
spaces using multiquadrics, Constr. Approx. 6, pp. 2134.
Buhmann, M. D. (1990b). Multivariate cardinal interpolation with radial basis functions,
Constr. Approx. 6, pp. 225-255.
Buhmann, M. D. (1993a). New developments in the theory of radial basis function inter-
polation, in Multivariate Approximation: From CAGD to Wavelets, Kurt Jetter and
Florencio Utreras (eds.), World Scientific Publishing (Singapore), pp. 35-75.
Buhmann, M. D. (1993b). On quasi-interpolation with radial basis functions, J. Approx.
Theory 72, pp. 103-130.
Buhmann, M. D. (1993c). Discrete least squares approximation and prewavelets from radial
function spaces, Proc. Camb. Phil. Soc. 114, pp. 533-558.
Buhmann, M. D. (1995a). Multiquadric prewavelets on nonequally spaced knots in one
dimension, Math. Comp. 64, pp. 1611-1625.
Buhmann, M. D. (1995b). Pre-wavelets on scattered knots and from radial function spaces:
a review, in The Mathematics of Surfaces VI, R. R. Martin (ed.), Clarendon Press
(Oxford), pp. 309-324.
456 Meshfree Approximation Methods with MATLAB
Buhmann, M. D. (1998). Radial functions on compact support, Proc. Edin. Math. Soc. II
41, pp. 33-46.
Buhmann, M. D. (2000). Radial basis functions, Acta Numerica 2000 9, pp. 1-38.
Buhmann, M. D. (2003). Radial Basis Functions: Theory and Implementations, Cambridge
University Press (Cambridge).
Buhmann, M. D. (2006). Half-plane approximation with radial functions I, Comput. Math.
Appl. 51 8, pp. 1171-1184.
Buhmann, M. D. and Chui, C. K. (1993). A note on the local stability of translates of
radial basis functions, J. Approx. Theory 74, pp. 36-40.
Buhmann, M. D., Derrien, F. and Le Mehaute, A. (1995). Spectral properties and knot
removal for interpolation by pure radial sums, in Mathematical Methods for Curves
and Surfaces, M. Dffihlen, T. Lyche, and L. Schumaker (eds.), Vanderbilt University
Press (Nashville), pp. 55-62.
Buhmann, M. D. and Dyn, N. (1991). Error estimates for multiquadric interpolation, in
Curves and Surfaces, P.-J. Laurent, A. Le Mehaute, and L. L. Schumaker (eds.),
Academic Press (New York), pp. 51-58.
Buhmann, M. D. and Dyn, N. (1993). Spectral convergence of multiquadric interpolation,
Proc. Edinburgh Math. Soc. 36, pp. 319-333.
Buhmann, M. D., Dyn, N. and Levin, D. (1993). On quasi-interpolation with radial basis
functions on non-regular grids, Constr. Approx. 11, pp. 239254.
Buhmann, M. D. and Le Mehaute, A. (1995). Knot removal with radial basis function
interpolantion, C. R. Acad. Sci. Paris Ser. I Math. 320, pp. 501-506.
Buhmann, M. D. and Micchelli, C. A. (1989). Completely monotonic functions for cardinal
interpolation, in Approximation Theory VI, C. Chui, L. Schumaker, and J. Ward
(eds.), Academic Press (New York), pp. 1-4.
Buhmann, M. D. and Micchelli, C. A. (1991). Multiply monotone functions for cardinal
interpolation, Adv. in Appl. Math. 12, pp. 358-386.
Buhmann, M. D. and Micchelli, C. A. (1992a). Multiquadric interpolation improved, Com-
put. Math. Appl. 24, pp. 21-25.
Buhmann, M. D. and Micchelli, C. A. (1992b). On radial basis approximation on periodic
grids, Proc. Camb. Phil. Soc. 112, pp. 317-334.
Buhmann, M. D. and Pinkus, A. (1997). On a recovery problem, Annals of Numerical
Mathematics 4, pp. 129-142,
Buhmann, M. D. and Powell, M. J. D. (1990). Radial basis function interpolation on an
infinite regular grid, in Algorithms for Approximation II, M. G. Cox and J. C. Mason
(eds.), Chapman & Hall (London), pp. 146-169.
p
Buhmann, M. D. and Ron, A. (1994). Radial basis functions: L -approximation orders
with scattered centres, in Wavelets, Images, and Surface Fitting, P.-J. Laurent, A.
Le Mehaute, and L. L. Schumaker (eds.), A. K. Peters (Wellesley, MA), pp. 93-112.
Caiti, A., Magenes, G., Panisini, T. and Simpson, R. (1994). Smooth approximation by
radial basis functions: three case studies, J. Appl. Sc. Comp. 1, pp. 88-113.
Cambanis, S., Keener, R. and Simons, G. (1983). On a-symmetric multivariate distribu-
tions, J. Multivariate Anal. 13, pp.213233.
Canuto, C , Hussaini, M. Y., Quarteroni, A. and Zang, T. A. (1988). Spectral Methods in
Fluid Dynamics, Springer Verlag, Berlin.
Carlson, R. E. and Foley, T. A. (1991). The parameter R2 in multiquadric interpolation,
Comput. Math. Appl. 21, pp. 29-42.
Carlson, R. E. and Foley, T. A. (1992). Interpolation of track data with radial basis
methods, Comput. Math. Appl. 24, pp. 27-34.
Bibliography 457
Chen, S., Billings, S. A., Cowan, C. F. N. and Grant, P. M. (1990). Non-linear systems
identification using radial basis functions, Int. J . Systems Science 21, pp. 2513-2539.
Chen, S., Billings, S. A. and Grant, P. M. (1992). Recursive hybrid algorithm for non-
linear system identification using radial basis function networks, Int. J . Control 55,
pp. 1051-1070.
Chen, S., Cowan, C. F. N. and Grant, P. M. (1991a). Orthogonal least squares learn-
ing algorithm for radial basis function networks, IEEE Trans. Neural Networks 2,
pp. 302-309.
Chen, S., Gibson, G. J., Cowan, C. F. N. and Grant, P. M. (1991b). Reconstruction of
binary signals using an adaptive radial-basis-function equaliser, EURASIP Signal
Processing 22, pp. 77-93.
Chen, S., McLaughlin, S., Grant, P. M. and Mulgrew, B. (1993). Reduced-complexity
multistage blind clustering equaliser, IEEE Int. Communications Conference (ICC)
Proceedings, pp. 11491153.
Chen, S., McLaughlin, S. and Mulgrew, B. (1994a). Complex valued radial basis function
networks: network architecture and learning algorithms (part I), EURASIP Signal
Processing J . 25, pp. 19-31.
Chen, S., McLaughlin, S. and Mulgrew, B. (1994b). Complex valued radial basis func-
tion networks: application to digital communications channel equalisation (part II),
EURASIP Signal Processing J . 36, pp. 175-188.
Chen, S. and Mulgrew, B. (1992). Overcoming co-channel interference using an adaptive
radial basis function equaliser, EURASIP Signal Processing J . 28, pp. 91-107.
Chen, T. and Chen, H. (1995a). Approximation capability to functions of several variables,
nonlinear functionals and operators by radial basis function neural networks, IEEE
Trans. Neural Networks 6, pp. 904-910.
2 n
Chen, T. and Chen, H. (1995b). Denseness of radial-basis functions in L ( M ) and its appli-
cations in neural networks, in Approximation Theory VIII, Vol. 1: Approximation
and Interpolation, C. Chui, and L. Schumaker (eds.), World Scientific Publishing
(Singapore), pp. 137-144.
Cheney, E. W. (1992). Approximation by functions of nonclassical form, in Approximation
Theory, Spline Functions and Applications, S. P. Singh (ed.), Kluwer (Dordrecht),
pp. 1-18.
Cheney, E. W. (1995a). Approximation and interpolation on spheres, in Approximation
Theory, Wavelets and Applications, S. P. Singh (ed.), Kluwer (Dordrecht), pp. 47-53.
Cheney, E. W. (1995b). Approximation using positive definite functions, in Approximation
Theory VIII, Vol. 1: Approximation and Interpolation, C. Chui, and L. Schumaker
(eds.), World Scientific Publishing (Singapore), pp. 145-168.
Cheney, E. W. and Light, W. A. (1999). A Course in Approximation Theory, Brooks/Cole
(Pacific Grove, CA).
Cheney, E. W., Light, W. A. and Xu, Y. (1992). On kernels and approximation orders,
in Proc. Sixth Southeastern Approximation Theory Conference, George Anastassiou
(ed.), Lecture Notes in Pure and Applied Mathematics, Vol. 138, pp. 227-242.
Cheney, E. W. and Xu, Y. (1993). A set of research problems in approximation the-
ory, in Topics in Polynomials of One and Several Variables and Their Applications,
T. M. Rassias, H. M. Srivastava, and A. Yanushauskas (eds.), World Scientific Pub-
lishers (London), pp. 109-123.
Cheng, A. H. D., Golberg, M. A., Kansa, E. J. and Zammito, G. (2003). Exponential con-
vergence and H-c multiquadric collocation method for partial differential equations,
Numer. Methods Partial Differential Equations 19 5, pp. 571-594.
Cheng, A. H.-D. and Cabral, J. J. S. P. (2005). Direct solution of certain ill-posed boundary
Bibliography 459
pp. 1549-1571.
Chien, C.-C. and Wu, T.-Y. (2004). An accurate solution to the meshless local Petrov-
Galerkin formulation in elastodynamics, J. Chinese inst. Engineers 27, pp. 463-471.
Chng, E. S., Chen, S. and Mulgrew, B. (1996). Gradient radial basis function networks for
nonlinear and nonstationary time series prediction, IEEE Trans. Neural Networks
7, pp. 190-194.
Chng, E. S., Chen, S., Mulgrew, B. and Gibson, G. J. (1995). Realising the Bayesian
decision boundary for channel equalisation using radial basis function network and
linear equaliser, in Mathematics for Neural Networks and Applications, Oxford.
Chui, C. K. (1988). Multivariate Splines, CBMS-NSF Reg. Conf. Ser. in Appl. Math. 54
(SIAM).
Chui, C. K., Stockier, J. and Ward, J. D. (1996). Analytic wavelets generated by radial
functions, Adv. Comput. Math. 5, pp. 95-123.
Chui, C. K., Ward, J. D. and Jetter, K. (1992). Cardinal interpolation with differences of
tempered functions, Comput. Math. Appl. 24, pp. 35-48.
Chung, K. C. and Yao, T. H. (1977). On lattices admitting unique Lagrange interpolations,
SIAM J. Numer. Anal. 14, pp. 735-743.
Cid-Sueiro, J., Artes-Rodriguez, A. and Figueiras-Vidal, A. R. (1994). Recurrent radial ba-
sis function networks for optimal symbol-by-symbol equalisation, EURASIP Signal
Processing 40, pp. 53-63.
Cid-Sueiro, J. and Figueiras-Vidal, A. R. (1993). Recurrent radial basis function networks
for optimal equalisation, Proc. IEEE Workshop on Neural Networks for Signal Pro-
cessing, pp. 562-571.
Cleveland, W. S. and Loader, C. L. (1996). Smoothing by local regression: Principles and
methods, in Statistical Theory and Computational Aspects of Smoothing, W. Haerdle
and M. G. Schimek (eds.), Springer (New York), pp. 10-49.
Cuppens, R. (1975). Decomposition of Multivariate Probability, Academic Press (New
York).
Curtis, P. C, Jr. (1959) n-parameter families and best approximation, Pacific J. Math. 9,
pp. 1013-1027.
Davidov, O., Sestini, A. and Morandi, R. (2005). Local R B F approximation for scattered
data fitting with bivariate splines, in Trends and Applications in Constructive Ap-
proximation, M. G. de Bruin, D. H. Mache, and J. Szabados (eds.), Birkhauser
(Basel), pp. 91-102.
De Forest, E. L. (1873). On some methods of interpolation applicable to the graduation
of irregular series, Annual Report of the Board of Regents of the Smithsonian Insti-
tution for 1871, pp. 275-339.
De Forest, E. L. (1874). Additions to a memoir on methods of interpolation applicable
to the graduation of irregular series, Annual Report of the Board of Regents of the
Smithsonian Institution for 1873, pp. 319-353.
Delvos, F. J. (1985). Convergence of interpolation by translation, Colloq. Math. Soc. J.
Bolya 49, pp. 273-287.
Delvos, F. J. (1987). Periodic interpolation on uniform meshes, J. Approx. Theory 51,
pp. 71-80.
460 Meshfree Approximation Methods with MATLAB
-1. 4 /
464 Meshfree Approximation Methods with MATLAB
Floater, M. S. and Iske, A. (1996b). Multistep scattered data interpolation using compactly
supported radial basis functions, J . Comput. Applied Math. 73, pp. 65-78.
Florence, A. G. and van Loan, C. F. (2000). A Kronecker product formulation of the fast
Gauss transform, preprint.
Flyer, N. (2006). Exact polynomial reprodction for oscillatory radial basis functions on
infinite lattices, Comput. Math. Appl. 51 8, pp. 1199-1208.
Foley, T. A. (1987). Interpolation and approximation of 3-D and A-D scattered data,
Comput. Math. Appl. 13, pp. 711-740.
Foley, T. A. (1990). Interpolation of scattered data on a spherical domain, in Algorithms
for Approximation II, M. G. Cox and J. C. Mason (eds.), Chapman & Hall (London),
pp. 303-310.
Foley, T. A. (1992). The map and blend scattered data interpolant on the sphere, Comput.
Math. Appl. 24, pp. 49-60.
Foley, T. A. (1994). Near optimal parameter selection for multiquadric interpolation, J .
Appl. Sc. Comp. 1, pp. 54-69.
Foley, T. A., Dayanand, S. and Zeckzer, D. (1995). Localized radial basis methods using
rational triangle patches, in Geometric Modelling Dagstuhl 1993, H. Hagen, G.
Farin and H. Noltemeier (eds.), Springer Verlag (Berlin), pp. 163-176.
Foley, T. A., Lane, D. A., Nielson, G. M., Franke, R. and Hagen, H. (1990a). Interpolation
of scattered data on closed surfaces, Comput. Aided Geom. Design 7, pp. 303-312.
Foley, T. A., Lane, D. A., Nielson, G. M. and Ramaraj, R. (1990b). Visualizing functions
over a sphere, Comp. Graphics and Applies. 10, pp. 32-40.
Fornberg, B. (1998). A Practical Guide to Pseudospectral Methods, Cambridge Univ. Press.
Fornberg, B., Driscoll, T. A., Wright, G. and Charles, R. (2002). Observations on the
behavior of radial basis function approximations near boundaries, Comput. Math.
Appl. 43, pp. 473-490.
Fornberg, B. and Flyer, N. (2005). Accuracy of radial basis function interpolation and
derivative approximations on 1-D infinite grids, Adv. Comput. Math. 23 1-2, pp. 5
20.
Fornberg, B., Larsson, E. and Wright, G. (2004). A new class of oscillatory radial basis
functions, Comput. Math. Appl. 51 8, pp. 1209-1222.
Fornberg, B. and Wright, G. (2004). Stable computation of multiquadric interpolants for
all values of the shape parameter, Comput. Math. Appl. 47, pp. 497-523.
Fornberg, B. and Zuev, J. (2006). The Runge phenomenon and spatially variable shape
parameters in R B F interpolation, Comput. Math. Appl., submitted.
Franke, C. and Schaback, R. (1998a). Solving partial differential equations by collocation
using radial basis functions, Appl. Math. Comp. 93, pp. 73-82.
Franke, C. and Schaback, R. (1998b). Convergence orders of meshless collocation methods
using radial basis functions, Adv. in Comput. Math. 8, pp. 381-399.
Franke, R. (1977). Locally determined smooth interpolation at irregularly spaced points
in several variables, J . Inst. Math. Applic. 19, pp. 471-482.
Franke, R. (1982a). Scattered data interpolation: tests of some methods, Math. Comp. 48,
pp. 181-200.
Franke, R. (1982b). Smooth interpolation of scattered data by local thin plate splines,
Comput. Math. Appl. 8, pp. 273-281.
Franke, R. (1985). Thin plate splines with tension, Comput. Aided Geom. Design 2, pp. 87
95.
Franke, R. (1987). Recent advances in the approximation of surfaces from scattered data, in
Topics in Multivariate Approximation, C. K. Chui, L. L. Schumaker, and F. Utreras
(eds.), Academic Press (New York), pp. 79-98.
Bibliography 465
Girosi, F., Jones, M. and Poggio, T. (1993). Regularization theory and neural network
architectures, MIT AI memo 1430.
Gneiting, T. (1999). Correlation functions for atmospheric data analysis, Quart. J. Mete-
orol. Soc. 125, pp. 2449-2464.
Gneiting, T. (2002). Compactly supported correlation functions, J. Multivariate Analysis
83, pp. 493-508.
Golberg, M. A. (1995). A note on the sparse representation of discrete integral operators,
Appl. Math. Comp. 70, pp. 97-118.
Golberg, M. A. (1996). Recent developments in the numerical evaluation of particular
solutions in the boudary element method, Appl. Math. Comp. 75, pp. 91-101.
Golberg, M. A. and Chen, C. S. (1994). The theory of radial basis functions applied to the
BEM for inhomogeneous partial differential equations, Boundary Elements Comm.
5, pp. 57-61.
Golberg, M. A. and Chen, C. S. (1996) A bibliography on radial basis function approxi-
mation, UNLV.
Golberg, M. A. and Chen, C. S. (1997). Discrete Projection Methods for Integral Equations,
Computational Mechanics Publications (Southampton).
Golberg, M. A., Chen, C. S. and Bowman, H. (1999). Some recent results and proposals
for the use of radial basis functions in the BEM, Eng. Anal, with Bound. Elem. 23,
pp. 285-296.
Golberg, M. A., Chen, C. S., Bowman, H. and Power, H. (1998). Some comments on
the use of radial basis functions in the dual reciprocity method, Comput. Mech. 21,
pp. 141-148.
Golberg, M. A., Chen, C. S. and Karur, S. R. (1996). Improved multiquadric approximation
for partial differential equations, Eng. Anal, with Bound. Elem. 18, pp. 9-17.
von Golitschek, M. and Schumaker, L. L. (1990). Data fitting by penalized least squares,
in Algorithms for Approximation II, M. G. Cox and J. C. Mason (eds.), Chapman
& Hall (London), pp. 210-227.
Golomb, M. and Weinberger, H. F. (1959). Optimal approximation and error bounds,
in On Numerical Approximation, R. E. Langer(ed.), University of Wisconsin Press,
pp. 117-190.
Golub, G. H. and Van Loan, C. F. (1989). Matrix Computations, Johns Hopkins University
Press (Baltimore).
Goodsell, G. (1997). A multigrid-type method for thin plate spline interpolation on a circle,
IMA J. Numer. Anal. 17, pp. 321-327.
Gottlieb, D. and Lustman, L. (1983). The spectrum of the Chebyshev collocation operator
for the heat equation, SIAM J. Numer. Anal. 20 5, pp. 909-921.
Gram, J. P. (1883). Uber Entwicklung reeler Functionen in Reihen mittelst der Methode
der kleinsten Quadrate, J. Math. 94, pp. 41-73.
Greengard, L. (1994). Fast algorithms for classical physics, Science 265, pp. 909-914.
Greengard, L. and Rokhlin, V. (1987). A fast algorithm for particle simulations, J. Comput.
Phys. 73 2, pp. 325-348.
Greengard, L. and Strain, J. (1991). The fast Gauss transform, SIAM J. Sci. Statist.
Comput. 12, pp. 79-94.
Greengard, L. F. and Sun, X. (1998). A new version of the fast Gauss transform, Doc.
Math. J. DMV, Extra Volume ICM, pp. 575-584.
Gu, C. and Wahba, G. (1993). Semiparametric analysis of variance with tensor product
thin plate splines, J. Roy. Statist. Soc. Ser. B 55, pp. 353-368.
Guo, K., Hu, S. and Sun, X. (1993a). Conditionally positive definite functions and Laplace-
Stieltjes integrals, J. Approx. Theory 74, pp. 249-265.
Bibliography 467
Guo, K., Hu, S. and Sun, X. (1993b). Cardinal interpolation using linear combinations of
translates of conditionally positive definite functions, Numer. Func. Anal. Optim.
14, pp. 371-381.
Guo, K. and Sun, X. (1991). Scattered data interpolation by linear combinations of trans-
lates of conditionally positive definite functions, Numer. Func. Anal. Optim. 12,
pp. 137-152.
Gutzmer, T. (1996). Interpolation by positive definite functions on locally compact groups
with application to SO(3), Results Math. 29, pp. 69-77.
Hagan, R. E. (1993). Multiquadrics in engineering modeling, in Proceedings ASCE National
Conference on Irrigation and Drainage Engineering, Park City, Utah.
Hagan, R. E. and Kansa, E. J. (1994). Studies of the R parameter in the multiquadric
function applied to ground water pumping, J. Appl. Sci. Comput. 1, pp. 266281.
Hales, S. J. and Levesley, J. (2000). On compactly supported, positive definite, radial basis
functions, Technical Report 2000/30, University of Leicester, UK.
Hales, S. J. and Levesley, J. (2002). Error estimates for multilevel approximation using
polyharmonic splines, Numer. Algorithms 30, pp. 1-10.
Halgamuge, S. K., Poechmueller, W. and Glesner, M. (1995). An alternative approach for
generation of membership functions and fuzzy rules based on radial and cubic basis
function networks, Internat. J. Approx. Reason. 12, pp. 279-298.
Halton, E. J. and Light, W. A. (1993). On local and controlled approximation order, J.
Approx. Theory 72, pp. 268-277.
Halton, J. H. (1960). On the efficiency of certain quasi-random sequences of points in
evaluating multi-dimensional integrals, Numer. Math. 2, pp. 84-90.
Handscomb, D. (1993). Local recovery of a solenoidal vector field by an extension of the
thin-plate spline technique, Numer. Algorithms 5 1-4, pp. 121-129.
Hangelbroek, T. (2006). Error estimates for thin plate spline approximation in the disc,
Constr. Approx., to appear.
Harder, R. L. and Desmarais, R. N. (1972). Interpolation using surface splines, J. Aircraft
9, pp. 189-191.
Hardy, R. L. (1971). Multiquadric equations of topography and other irregular surfaces,
J. Geophys. Res. 76, pp. 1905-1915.
Hardy, R. L. (1972). Geodetic applications of multiquadric analysis, AVN Allg. Vermess.
Nachr. 79, pp. 389-406.
Hardy, R. L. (1975). Research results in the application of multiquadric equations to
surveying and mapping problems, Survg. Mapp. 35, pp. 321-332.
Hardy, R. L. (1977). Least squares prediction, Photogramm. Eng. and Remote Sensing 43,
pp. 475-492.
Hardy, R. L. (1990). Theory and applications of the multiquadric-biharmonic method,
Comput. Math. Appl. 19, pp. 163-208.
Hardy, R. L. (1992a). Comments on the discovery and evolution of the multiquadric
method, Comput. Math. Appl. 24, pp. xi-xii.
Hardy, R. L. (1992b). A contribution of the multiquadric method: interpolation of potential
inside the earth, Comput. Math. Appl. 24, pp. 81-97.
Hardy, R. L. and Gopfert, W. M. (1975). Least squares prediction of gravity anomalies,
geodial undulations, and deflections of the vertical with multiquadric harmonic func-
tions, Geophys. Res. Letters 2, pp. 423-426.
Hardy, R. L. and Nelson, S. A. (1986). A multiquadric-biharmonic representation and
approximation of disturbing potential, Geophys. Res. Letters 13, pp. 18-21.
Hardy, R. L. and Siranyone, S. (1989). The multiquadric-biharmonic method of a three
468 Meshfree Approximation Methods with MATLAB
Jetter, K. and Stockier, J. (1991). Algorithms for cardinal interpolation using box splines
and radial basis functions, Numer. Math. 6 0 , pp. 97-114.
Jetter, K. and Stockier, J. (1997). Topics in scattered data interpolation and non-uniform
sampling, in Surface Fitting and Multiresolution, A. Le Mehaute, C. Rabut, and
L. L. Schumaker (eds.), Vanderbilt University Press, pp. 191-208.
Jia, R. Q. and Lei, J. J. (1991). Approximation by multiinteger translates of functions
having global support, J . Approx. Theory 7 2 , pp. 2-23.
Jia, R. Q. and Lei, J. J. (1993). A new version of the Strang-Fix conditions, J . Approx.
Theory 74, pp. 221-225.
Johnson, M. J. (1998). A bound on the approximation order of surface splines, Constr.
Approx. 1 4 3, pp. 429-438.
Johnson, M. J. (2000a). Overcoming the boundary effects in surface spline interpolation,
IMA J. Numer. Anal. 2 0 3, pp. 405-422.
d
Johnson, M. J. (2000b). Approximation in L ( R ) from spaces spanned by the perturbed
p
Kansa, E. J. and Hon, Y. C. (2000). Circumventing the ill-conditioning problem with mul-
tiquadric radial basis functions: Applications to elliptic partial differential equations,
Comput. Math. Applic. 39, pp. 123-137.
Karlin, S. (1968). Total Positivity, Stanford University Press (Stanford).
Karur, S. R. and Ramachandran, P. A. (1994). Radial basis function approximation in the
dual reciprocity method, Math. Comput. Modell. 20, pp. 59-70.
Karur, S. R. and Ramachandran, P. A. (1995). Augmented thin plate spline approximation
in DRM, Boundary Elements Comm. 6, pp. 55-58.
Kent, J. T. and Mardia, K. V. (1994). The link between kriging and thin-plate splines,
Probability, statistics and optimisation, Wiley Ser. Probab. Math. Statist., Wiley
(Chichester), pp. 325-339.
Kimeldorf, G. and Wahba, G. (1971). Some results on Tchebycheffian spline functions, J.
Math. Anal. Applic. 33, pp. 82-95.
Kincaid, D. and Cheney, W. (2002). Numerical Analysis: Mathematics of Scientific Com-
puting (3rd ed.), Brooks/Cole (Pacific Grove, CA).
Komargodsky, Z. and Levin, D. (2006). Hermite type moving-least-squares approximation,
Comput. Math. Appl. 51 8, pp. 1223-1232.
Kounchev, O. (2001). Multivariate Polysplines: Applications to Numerical and Wavelet
Analysis, Academic Press (New York).
Krzyzak, A., Linder, T. and Lugosi, G. (1996). Nonparametric estimation and classification
using radial basis function nets and empirical risk minimization, IEEE Trans. Neural
Networks 7, pp. 475-487.
Kunis, S. and Potts, D. (2002). NFFT, Softwarepackage (C-library), Universitat Liibeck,
http://www.math.uni-luebeck.de/potts/nfft/.
Kunis, S., Potts, D. and Steidl, G. (2002). Fast Fourier transforms at non-
equispaced knots: A user's guide to a C-library, Universitat Liibeck,
http://www.math.uni-luebeck.de/potts/nfft/.
Kurdila, A. J., Narcowich, F. J. and Ward, J. D. (1995). Persistency of excitation in
identification using radial basis function approximants, SIAM J. Control Optim. 33,
pp. 625-642.
Kybic, J., Blu, T. and Unser, M. (2002a). Generalized sampling: A variational approach
Part I: Theory, IEEE Trans. Signal Proc. 50, pp. 1965-1976.
Kybic, J., Blu, T. and Unser, M. (2002b). Generalized sampling: A variational approach
Part II: Applications, IEEE Trans. Signal Proc. 50, pp. 1977-1985.
Lancaster, P. and Salkauskas, K. (1981). Surfaces generated by moving least squares meth-
ods, Math. Comp. 37, pp. 141-158.
Lancaster, P. and Salkauskas, K. (1986). Curve and Surface Fitting, Academic Press (New
York).
Lanzara, F., Maz'ya, V. and Schmidt, G. (2006). Approximate Approximations from scat-
tered data, J. Approx. Theory, in press.
La Rocca, A., Hernandez Rosales, A. and Power, H. (2005). Radial basis function Her-
mite collocation approach for the solution of time dependent convection-diffusion
problems, Engineering Analysis with Boundary Elements 29, pp. 359-370.
Larsson, E. and Fornberg, B. (2003). A numerical study of some radial basis function based
solution methods for elliptic PDEs, Comput. Math. Appl. 46, pp. 891-902.
Larsson, E. and Fornberg, B. (2005). Theoretical and computational aspects of multivariate
interpolation with increasingly flat radial basis functions, Comput. Math. Appl. 49,
pp. 103-130.
Lee, D. and Shiau, J. H. (1994). Thin plate splines with discontinuities and fast algorithms
for their computation, SIAM J. Scient. Computing 15, pp. 1311-1330.
472 Meshfree Approximation Methods with MATLAB
Matern, B. (1986). Spatial variation (Second ed.), Lecture Notes in Statistics, 36, Springer-
Verlag (Berlin).
Matheron, G. (1965). Les variables regionalise.es et leur estimation, Masson (Paris).
Matheron, G. (1973). The intrinsic random functions and their applications, Adv. Appl.
Prob. 5, pp. 439-468.
Mathias, M. (1923). Uber positive Fourier-Integrale, Math. Zeit. 16, pp. 103-125.
M A T L A B Central File Exchange, available online at http://www.mathworks.com/-
matlabcentral/fileexchange/.
Maz'ya, V. (1991). A new approximation method and its applications to the calcula-
tion of volume potentials. Boundary point method, in DFG-Kolloquium des DFG-
Forschungsschwerpunktes "Randelementmethoden".
Maz'ya, V. (1994). Approximate approximations, in The Mathematics of Finite Elements
and Applications, J. R. Whiteman (ed.), Wiley (Chichester), pp. 77-104.
Maz'ya, V. and Schmidt, G. (1996). On approximate approximations using Gaussian ker-
nels, IMA J. Numer. Anal. 16, pp. 13-29.
Maz'ya, V. and Schmidt, G. (2001). On quasi-interpolation with non-uniformly distributed
centers on domains and manifolds, J. Approx. Theory 110, pp. 125-145.
McCormick, S. F. (1992). Multilevel Projection Methods for Partial Differential Equa-
tions, CBMS-NSF Regional Conference Series in Applied Mathematics 62, SIAM
(Philadelphia).
McLain, D. H. (1974). Drawing contours from arbitrary data points, Comput. J. 17,
pp. 318-324.
McMahon, J. (1986). Knot selection for least squares approximation using thin plate
splines, M.S. Thesis, Naval Postgraduate School.
McMahon, J. and Franke, R. (1992). Knot selection for least squares thin plate splines,
SIAM J. Sci. Statist. Comput. 13, pp. 484-498.
Meinguet, J. (1979a). Multivariate interpolation at arbitrary points made simple, Z.
Angew. Math. Phys. 30, pp. 292-304.
Meinguet, J. (1979b). An intrinsic approach to multivariate spline interpolation at arbi-
trary points, in Polynomial and Spline Approximations, N. B. Sahney (ed.), Reidel
(Dordrecht), pp. 163-190.
Meinguet, J. (1979c). Basic mathematical aspects of surface spline interpolation, in Nu-
merische Integration, G. Hammerlin (ed.), Birkhauser (Basel), pp. 211-220.
Meinguet, J. (1984). Surface spline interpolation: basic theory and computational aspects,
in Approximation Theory and Spline Functions, S. P. Singh, J. H. W. Burry, and B.
Watson (eds.), Reidel (Dordrecht), pp. 127-142.
Melenk, J. M. and Babuska, I. (1996). The partition of unity finite element method: basic
theory and applications, Comput. Methods Appl. Mech. Engrg. 139, pp. 289-314.
Menegatto, V. A. (1992). Interpolation on Spherical Spaces, Ph.D. Dissertation, University
of Texas Austin.
Menegatto, V. A. (1994a). Interpolation on spherical domains, Analysis 14, pp. 415-424.
Menegatto, V. A. (1994b). Strictly positive definite kernels on the Hilbert sphere, Appl.
Anal. 55, pp. 91-101.
Menegatto, V. A. (1995a). Interpolation on the complex Hilbert sphere, Approx. Theory
Appl. 11, pp. 1-9.
Menegatto, V. A. (1995b). Strictly positive definite kernels on the circle, Rocky Mountain
J. Math. 25, pp. 1149-1163.
Menegatto, V. A. (1997). Interpolation on the complex Hilbert sphere using positive defi-
nite and conditionally negative definite functions, Acta Mathematica Hungarica 75
3, pp. 215-225.
Bibliography 477
Menegatto, V. A., Oliveira, C. P. and Peron, A. P. (2006) Strictly positive definite kernels
on subsets of the complex plane, Comput. Math. Appl. 51 8, pp. 1233-1250.
Menegatto, V. A. and Peron, A. P. (2004). Conditionally positive definite kernels on Eu-
clidean domains, J. Math. Anal. Appl. 294 1, pp. 345-359.
Menger, K. (1928). Die Metrik des Hilbertschen Raumes, Anzeiger der Akad. der Wis-
senschaften in Wien, Nat. Kl. 65, pp. 159-160.
Meyer, C. D. (2000). Matrix Analysis and Applied Linear Algebra, SIAM (Philadelphia).
Mhaskar, H. N. (1990). Weighted polynomials, radial basis functions and potentials on
locally compact spaces, Numer. Func. Anal. Optim. 11, pp. 987-1017.
Mhaskar, H. N. and Micchelli, C. A. (1992). Approximation by superposition of sigmoidal
and radial basis functions, Adv. in Appl. Math. 13, pp. 350-373.
Micchelli, C. A. (1986). Interpolation of scattered data: distance matrices and conditionally
positive definite functions, Constr. Approx. 2, pp. 11-22.
Micchelli, C. A. and Rivlin, T. J. (1977). A survey of optimal recovery, in Optimal E s -
timation in Approximation Theory (Proc. Internat. Sympos., Freudenstadt, 1976),
C. A. Micchelli and T. J. Rivlin (eds.), Plenum Press (New York), pp. 1-54.
Micchelli, C. A. and Rivlin, T. J. (1980). Optimal recovery of best approximations, Resul-
tate Math. 3 1, pp. 25-32.
Micchelli, C. A. and Rivlin, T. J. (1985). Lectures on optimal recovery, in Numerical
analysis, Lancaster 1984, P- R- Turner (ed.), Lecture Notes in Math., 1129, Springer
(Berlin), pp. 21-93.
Micchelli, C. A., Rivlin, T. J. and Winograd, S. (1976). The optimal recovery of smooth
functions, Numer. Math. 26 2, pp. 191-200.
Miranda, J. (2004). Incorporating R-functions into the Theory of Positive Definite Func-
tions to Solve Elliptic Partial Differential Equations, Ph.D. Dissertation, Illinois
Institute of Technology.
Monaghan, J. J. (1988). An introduction to SPH, Comp. Phys. Comm. 48, pp. 89-96.
Montes, P. (1991). Local kriging interpolation: Application to scattered data on the sphere,
in Curves and Surfaces, P.-J. Laurent, A. Le Mehaute, and L. L. Schumaker (eds.),
Academic Press (New York), pp. 325-329.
Montes, P. (1994). Smoothing noisy data by kriging with nugget effects, in Wavelets,
Images, and Surface Fitting, P.-J. Laurent, A. Le Mehaute, and L. L. Schumaker
(eds.), A. K. Peters (Wellesley, MA), pp. 371-378.
Moody, J. and Darken, C. J. (1989). Fast learning in networks of locally-tunes processing
units, Neural Computations 1, pp. 281-294.
Moridis, G. J. and Kansa, E. J. (1992). The method of Laplace transform multiquadrics
for the solution of the groundwater flow equation, in Advances in Computer Methods
for Partial Differential Equations - VII, R. Vichnevetsky, D. Knight, and G. Richter
(eds.), IMACS (New Brunswick), pp. 539-545.
Moridis, G. J. and Kansa, E. J. (1994). The Laplace transform multiquadric method:
A highly accurate scheme for the numerical solution of linear partial differential
equations, J. Appl. Sc. Comp. 1, pp. 375407.
Morse, B., Yoo, T. S., Rheingans, P., Chen, D. T. and Subramanian, K. R. (2001). Interpo-
lating implicit surfaces from scattered surface data using compactly supported radial
basis functions, in 2001 International Conference on Shape Modeling and Applica-
tions (SMI 2001), I E E E Computer Society Press (Los Alamitos, CA), pp. 89-98.
Morton, T. M. (2004). Two approaches to solving pseudodifferential equations on spheres
using zonal kernels, Engineering Analysis with Boundary Elements 28, pp. 1227
1232.
478 Meshfree Approximation Methods with MATLAB
Mouat, C. T. (2001). Fast algorithms and preconditioning techniques for fitting radial
basis functions, Ph.D. Dissertation, University of Canterbury, NZ.
Miiller, C. (1966). Spherical Harmonics, Springer Lecture Notes in Mathematics (Vol. 17).
Mulgrew, B. (1996). Applying radial basis functions, IEEE Signal Proc. Magazine 13,
pp. 50-65.
Musavi, M. T., Ahmed, W., Chan, K. H., Faris, K. B. and Hummels, D. M. (1992). On
the training of radial basis function classifiers, Neural Networks 5, pp. 595-603.
Muttiah, R., Hutchinson, M. and Dyke, P. (1995). Climate surfaces of Texas using thin
plate splines, in Approximation Theory VIII, Vol. 1: Approximation and Interpo-
lation, C. Chui, and L. Schumaker (eds.), World Scientific Publishing (Singapore),
pp. 427-434.
Myers, D. E. (1988). Interpolation with positive definite functions, Sciences de la Terre
28, pp. 252-265.
Myers, D. E. (1992). Kriging, co-Kriging, radial basis functions and the role of positive
definiteness, Comput. Math. Appl. 24, pp. 139-148.
Myers, D. E. (1993). Selection of a radial basis function for interpolation, in Advances
in Computer Methods for Partial Differential Equations - VII, R. Vichnevetsky,
D. Knight, and G. Richter (eds.), IMACS (New Brunswick), pp. 553-558.
Nadaraya, E- A. (1964). On estimating regression, Theor. Probab. Appl. 9, pp. 141-142.
Narcowich, F. J. (1995). Generalized Hermite interpolation and positive definite kernels
on a Riemannian manifold, J . Math. Anal. Appl. 190, pp. 165-193.
Narcowich, F. J., Schaback, R. and Ward, J. D. (1999). Multilevel interpolation and ap-
proximation, Appl. Comput. Harmon. Anal. 7, pp. 243-261.
Narcowich, F. J., Sivakumar, N. and Ward, J. D. (1994). On condition numbers associated
with radial-function interpolation, J . Math. Anal. Appl. 186, pp. 457-485.
Narcowich, F. J., Smith, P. and Ward, J. D. (1995). Density of translates of radial functions
on compact sets, in Approximation Theory VIII, Vol. 1: Approximation and Inter-
polation, C. Chui, and L. Schumaker (eds.), World Scientific Publishing (Singapore),
pp. 435-442.
Narcowich, F. J. and Ward, J. D. (1991a). Norms of inverses and condition numbers for
matrices associated with scattered data, J . Approx. Theory 64, pp. 69-94.
Narcowich, F. J. and Ward, J. D. (1991b). Norms of inverses for matrices associated with
scattered data, in Curves and Surfaces, P.-J. Laurent, A. Le Mehaute, and L. L.
Schumaker (eds.), Academic Press (New York), pp. 341-348.
Narcowich, F. J. and Ward, J. D. (1992). Norm estimates for the inverses of a general
class of scattered-data radial-function interpolation matrices, J . Approx. Theory 69,
pp. 84-109.
Narcowich, F. J. and Ward, J. D. (1994a). Generalized Hermite interpolation via matrix-
valued conditionally positive definite functions, Math. Comp. 63, pp. 661687.
Narcowich, F. J. and Ward, J. D. (1994b). Wavelets associated with periodic basis func-
tions, CAT #340, Texas A&M University.
Narcowich, F. J. and Ward, J. D. (1995). Nonstationary spherical wavelets for scattered
data, in Approximation Theory VIII, Vol. 2: Wavelets and Multilevel Approximation,
C. Chui, and L. Schumaker (eds.), World Scientific Publishing (Singapore), pp. 301
308.
Narcowich, F. J. and Ward, J. D. (1996). Nonstationary wavelets on the m-sphere for
scattered data, Appl. Comput. Harmon. Anal. 3 4, pp. 324-336.
Narcowich, F. J. and Ward, J. D. (2002). Scattered-data interpolation on spheres: error
estimates and locally supported basis functions, SIAM J . Math. Anal. 33 6, pp. 1393
1410.
Bibliography 479
n
Narcowich, F. J. and Ward, J. D. (2004). Scattered-data interpolation on M. : error es-
timates for radial basis and band-limited functions, SIAM J. Math. Anal. 36 1,
pp. 284-300.
Narcowich, F. J., Ward, J. D. and Wendland, H. (2003). Refined error estimates for radial
basis function interpolation, Constr. Approx. 19 4, pp. 541-564.
Narcowich, F. J., Ward, J. D. and Wendland, H. (2005). Sobolev bounds on functions
with scattered zeros, with applications to radial basis function surface fitting, Math.
Comp. 74, pp. 743-763.
Narcowich, F. J., Ward, J. D. and Wendland, H. (2006). Sobolev error estimates and
a Bernstein inequality for scattered data interpolation via radial basis functions,
Constr. Approx. 24 2, pp. 175-186.
Neyman, J. and Pearson, E. S. (1936). Contributions to the Theory of Testing Statistical
Hypotheses, Statistical Research Memoirs 1, pp. 1-37.
Nielson, G. M. (1987). Coordinate free scattered data interpolation, in Topics in Multivari-
ate Approximation, C. K. Chui, L. L. Schumaker, and F. Utreras (eds.), Academic
Press (New York), pp. 175-184.
Nielson, G. M. and Foley, T. A. (1989). A survey of applications of an affine invariant
norm, in Mathematical Methods in Computer Aided Geometric Design, T. Lyche
and L. Schumaker (eds.), Academic Press (New York), pp. 445-467.
Nieslony, A., Potts, D. and Steidl, G. (2004). Rapid evaluation of radial functions by fast
Fourier transforms at nonequispaced knots, Numer. Math. 98, pp. 329-351.
Nuss, W. A. and Titley, D. W. (1994). Use of multiquadric interpolation for meteorological
objective analysis, Monthly Weather Review 12, pp. 1011-1031.
Ohtake, Y., Belyaev, A. and Seidel, H. P. (2003a). A multi-scale approach to 3D scattered
data interpolation with compactly supported basis functions, in Shape Modeling
International, 2003, pp. 153-161.
Ohtake, Y., Belyaev, A., Alexa, M., Turk, G. and Seidel, H. P. (2003b). Multi-level par-
tition of unity implicits, ACM Trans, on Graphics (Proc. SIGGRAPH 2003) 22 3
pp. 463-470.
Opfer, R. (2004). Multiscale Kernels, Ph.D. Dissertation, Universitat Gottingen.
Opfer, R. (2006). Multiscale Kernels, Adv. in Comput. Math. 25 4, pp. 357-380.
Orr, M. J. L. (1995). Regularization in the selection of radial basis function centres, Neural
Computation 7, pp. 606-623.
Orr, M. J. L. (1996). Introduction to radial basis function networks, Cen-
tre for Cognitive Sciences, University of Edinburgh, available online at
http://www.anc.ed.ac.uk/rbf/intro/intro.html.
Orr, M., Hallam, J., Takezawa, K., Murray, A., Ninomiya, S., Oide, M. and Leonard, T.
(2000). Combining regression trees and radial basis function networks, Int. J. Neural
Systems 10, pp. 453-465.
Pahner, U. and Hameyer, K. (2000). Adaptive coupling of differential evolution and mul-
tiquadrics approximation for the tuning of the optimization process, I E E E Trans.
Magn. 36 1, pp. 1047-1051.
Park, J. and Sandberg, I. W. (1991). Universal approximation using radial bais function
networks, Neural Computation 3, pp. 246-257.
Park, J. and Sandberg, I. W. (1993). Approximation and radial basis function networks,
Neural Computation 5, pp. 305-316.
Parzen, E. (1962). On estimation of a probability density function and mode, Ann. Math.
Statist. 33, pp. 1065-1076.
Pegram, C. and Pegram, D. S. (1993). Integration of rainfall via multiquadric surfaces over
polygons, J. Hydraulic Eng. 114, pp. 151-163.
480 Meshfree Approximation Methods with MATLAB
Pinkus, A. (2004). Strictly positive definite functions on a real inner product space, Adv.
in Comput. Math. 20, pp. 263-271.
Platte, R. B. and Driscoll, T. A. (2004). Computing eigenmodes of elliptic operators using
radial basis functions, Comput. Math. Appl. 48, pp. 561-576.
Platte, R. B. and Driscoll, T. A. (2005). Polynomials and potential theory for Gaussian
radial basis function interpolation, SIAM J . Numer. Anal., 43, pp. 750-766.
Platte, R. B. and Driscoll, T. A. (2006). Eigenvalue stability of radial basis function
discretizations for time-dependent problems, Comput. Math. Appl. 51 8, pp. 1251
1268.
Poggio, T. and Girosi, F. (1990). Networks for approximation and learning, Proc. IEEE
78, pp. 1481-1497.
Potter, E. H. (1981). Multivariate polyharmonic spline interpolation, Ph.D. Dissertation,
Iowa State University.
Pottmann, H. and Eck, M. (1990). Modified multiquadric methods for scattered data
interpolation over a sphere, Comput. Aided Geom. Design 7, pp. 313-321.
Pottmann, M. and Jorgl, H. P. (1995). Radial basis function networks for internal model
control, Appl. Math. Comput. 70, pp. 283-298.
Potts, D. and Steidl, G. (2003). Fast summation at nonequispaced knots by NFFTs, SIAM
J . Sci. Comput. 24, pp. 2013-2037.
Powell, M. J. D. (1987). Radial basis functions for multivariable interpolation: a review,
in Algorithms for the Approximation of Functions and Data, J. C. Mason and M. G.
Cox (eds.), Oxford Univ. Press (Oxford), pp. 143-167.
Powell, M. J. D. (1988). Radial basis function approximations to polynomials, in Numerical
Analysis 1987, D. F. Griffiths and G. A. Watson (eds.), Longman Scientific and
Technical (Essex), pp. 223-241.
Powell, M. J. D. (1990). Univariate multiquadric approximation: reproduction of linear
polynomials, in Multivariate Approximation and Interpolation, ISNM 94, W. Hauss-
man and K. Jetter (eds.), Birkhauser (Basel), pp. 227-240.
Powell, M. J. D. (1991). Univariate multivariate interpolation: some recent results, in
Curves and Surfaces, P.-J. Laurent, A. Le Mehaute, and L. L. Schumaker (eds.),
Academic Press (New York), pp. 371-382.
Powell, M. J. D. (1992a). The theory of radial basis functions in 1990, in Advances in
Numerical Analysis II: Wavelets, Subdivision, and Radial Basis Functions, W. Light
(ed.), Oxford University Press (Oxford), pp. 105-210.
Powell, M. J. D. (1992b). Tabulation of thin-plate splines on a very fine two-dimensional
grid, in Numerical Methods in Approximation Theory, ISNM 105, D. Braess, L. L.
Schumaker (ed.), Birkhauser (Basel), pp. 221-244.
Powell, M. J. D. (1993). Truncated Laurent expansions for the fast evaluation of thin
plate splines, in Algorithms for Approximation III, J. C. Mason and M. G. Cox
(eds.), Chapman and Hall (London), pp. 99-120.
Powell, M. J. D. (1994a). Some algorithms for thin plate spline interpolation to functions
of two variables, in Advances in Computational Mathematics (New Delhi, 1993),
H. P. Dikshit and C. A. Micchelli (eds.), World Sci. Publishing, pp. 303-319.
Powell, M. J. D. (1994b). The uniform convergence of thin plate spline interpolation in
two dimensions, Numer. Math. 68, pp. 107-128.
Powell, M. J. D. (1997). A new iterative algorithm for thin plate spline interpolation in
two dimensions, Annals of Numerical Mathematics 4, pp. 519-528.
Powell, M. J. D. (1999). Recent research at Cambridge on radial basis functions, in New De-
velopments in Approximation Theory, M. W. Miiller, M. D. Buhmann, D. H. Mache
and M. Felten (eds.), Birkhauser (Basel), pp. 215-232.
Bibliography 481
Power, H. and Barraco, V. (2002). A comparison analysis between unsymmetric and sym-
metric radial basis function collocation methods for the numerical solution of partial
differential equations, Comput. Math. Appl. 4 3 , pp. 551-583.
Qian, L.-F. and Ching, H.-K. (2004). Static and dynamic analysis of 2-D functionally
graded elasticity by using meshless local Petrov-Galerkin method, J. Chinese Inst.
Engineers 2 7 , pp. 491-503.
Quak, E., Sivakumar, N. and Ward, J. D. (1993). Least squares approximation by radial
functions, SIAM J. Numer. Anal. 2 4 , 1043-1066.
Rabut, C. (1989). Fast quasi-interpolation of surfaces with generalized fi-splines on reg-
ular nets, in Mathematics of Surfaces III, D. C. Handscomb (ed.), Clarendon Press
(Oxford), pp. 429-449.
Rabut, C. (1990). 5-splines polyharmoniques cardinales: Interpolation, quasi-interpo-
lation, filtrage, Ph.D. Dissertation, University of Toulouse.
Rabut, C. (1992a). An introduction to Schoenberg's approximation, Comput. Math. Appl.
24, pp. 149-175.
Rabut, C. (1992b). Elementary m-harmonic cardinal B-splines, Numer. Algorithms 2,
pp. 39-67.
Rabut, C. (1992c). High level m-harmonic cardinal B-splines, Numer. Algorithms 2,
pp. 68-84.
Ragozin, D. L. and Levesley, J. (1996). Zonal kernels, approximations and positive defi-
niteness on spheres and compact homogeneous spaces, in Curves and Surfaces with
Applications in CAGD, A. Le Mehaute, C. Rabut, and L. L. Schumaker (eds.), Van-
derbilt University Press (Nashville, TN), pp. 371-378.
Reinsch, C. H. (1967). Smoothing by spline functions, Numer. Math. 10, pp. 177-183.
Riesz, F. and Sz.-Nagy, B. (1955). Functional Analysis, Dover Publications (New York),
republished 1990.
Rippa, S. (1984). Interpolation and smoothing of scattered data by radial basis functions,
M.S. Thesis, Tel Aviv University.
Rippa, S. (1999). An algorithm for selecting a good value for the parameter c in radial
basis function interpolation, Adv. in Comput. Math. 11, pp. 193-210.
Ron, A. (1992). The L2-approximation orders of principal shift-invariant spaces generated
by a radial basis function, in Numerical Methods in Approximation Theory, ISNM
105, D. Braess, L. L. Schumaker (ed.), Birkhauser (Basel), pp. 245-268.
Ron, A. and Sun, X. (1996). Strictly positive definite functions on spheres, Math. Comp.
65 216, pp. 1513-1530.
Rosenblatt, M. (1956). Remarks on some nonparametric estimates of a density function,
Ann. Math. Statist. 2 7 , pp. 832-837.
Rosenblum, M. and Davis, L. S. (1996). An improved radial basis function network for
visual autonomous road following, IEEE Trans. Neural Networks 7, pp. 1111-1120.
Rosenblum, M., Yacoob, Y. and Davis, L. S. (1996). Human expression recognition from
motion using a radial basis function network architecture, IEEE Trans. Neural Net-
works 7, pp. 1121-1138.
Rudin, W. (1973). Functional Analysis, McGraw-Hill (New York).
Saad, Y. and Schultz, M. H. (1986). GMRES: a generalized minimal residual algorithm for
solving nonsymmetric linear equations, SIAM J. Sci. Statist. Comput. 7 , pp. 856
869.
Saha, A., Wu, C. L., and Tang, D. S. (1993). Approximation, dimension reduction and
nonconvex optimization using linear superpositions of Gaussians, IEEE Trans, on
Computers 4 2 , pp. 1222-1233.
482 Meshfree Approximation Methods with MATLAB
Salkauskas, K. (1992). Moving least squares interpolation with thin-plate splines and radial
basis functions, Comput. Math. Appl. 2 4 , pp. 177-185.
Salkauskas, K. and Bos, L. (1992). Weighted splines as optimal interpolants, Rocky Moun-
tain J . Math. 2 2 , pp. 205-217.
Sanner, R. M. and Slotine, J. J. E. (1992). Gaussian networks for direct adaptive control,
IEEE Trans. Neural Networks 3, pp. 837-863.
Sarler, B. and Vertnik, R. (2006). Meshfree explicit local radial basis function collocation
method for diffusion problems, Comput. Math. Appl. 5 1 8, pp. 1163-1170.
Sarra, S. A. (2005). Adaptive radial basis function methods for time dependent partial
differential equations, Appl. Numer. Math. 5 4 , pp. 79-94.
Sarra, S. A. (2006). Integrated multiquadric radial basis function approximation methods,
Comput. Math. Appl. 5 1 8, pp. 1283-1296.
Saundersen, H. C. (1992). Multiquadric interpolation of fluid speeds in a natural river
channel, Comput. Math. Appl. 2 4 , pp. 187-193.
Schaback, R. (1993). Comparison of radial basis function interpolants, in Multivariate
Approximation: From CAGD to Wavelets, Kurt Jetter and Florencio Utreras (eds.),
World Scientific Publishing (Singapore), pp. 293-305.
Schaback, R. (1994a). Approximation of polynomials by radial basis functions, in Wavelets,
Images, and Surface Fitting, P.-J. Laurent, A. Le Mehaute, and L. L. Schumaker
(eds.), A. K. Peters (Wellesley, MA), pp. 459-466.
Schaback, R. (1994b). Lower bounds for norms of inverses of interpolation matrices for
radial basis functions, J . Approx. Theory 79, pp. 287-306.
Schaback, R. (1995a). Creating surfaces from scattered data using radial basis functions,
in Mathematical Methods for Curves and Surfaces, M. Daahlen, T. Lyche, and L.
Schumaker (eds.), Vanderbilt University Press (Nashville), pp. 477-496.
Schaback, R. (1995b). Error estimates and condition numbers for radial basis function
interpolation, Adv. in Comput. Math. 3, pp. 251-264.
Schaback, R. (1995c). Multivariate interpolation and approximation by translates of a basis
function, in Approximation Theory VIII, Vol. 1: Approximation and Interpolation,
C. Chui, and L. Schumaker (eds.), World Scientific Publishing (Singapore), pp. 491
514.
Schaback, R. (1996). Approximation by radial basis functions with finitely many centers,
Constr. Approx. 1 2 , pp. 331-340.
Schaback, R. (1997a). Optimal recovery in translation-invariant spaces of functions, Annals
of Numerical Mathematics 4, pp. 547-556.
Schaback, R. (1997b). On the efficiency of interpolation by radial basis functions, in Surface
Fitting and Multiresolution Methods, A. Le Mehaute, C. Rabut, and L. L. Schumaker
(eds.), Vanderbilt University Press (Nashville, TN), pp. 309-318.
Schaback, R. (1999a). Native Hilbert spaces for radial basis functions I, in New Develop-
ments in Approximation Theory, M. W. Miiller, M. D. Buhmann, D. H. Mache and
M. Felten (eds.), Birkhauser (Basel), pp. 255-282.
Schaback, R. (1999b). Improved error bounds for scattered data interpolation by radial
basis functions, Math. Comp. 68 225, pp. 201-216.
Schaback, R. (2000a). A unified theory of radial basis functions. Native Hilbert spaces for
radial basis functions II, J . Comput. Appl. Math. 1 2 1 , pp. 165-177.
Schaback, R. (2000b). Remarks on meshless local construction of surfaces, in The Mathe-
matics of Surfaces, IX, R. Cipolla and R. Martin (eds.), Springer, pp. 34-58.
Schaback, R. (2002) Stability of radial basis function interpolants, in Approximation The-
ory X, C. K. Chui, L. L. Schumaker, and J. Stdckler (eds.), Vanderbilt Univ. Press
(Nashville, TN), pp. 433-440.
Schaback, R. (2003). On the versatility of meshless kernel methods, in Advances in Com-
Bibliography 483
Schweitzer, M. A. (2003). A Parallel Multilevel Partition of Unity Method for Elliptic Par-
tial Differential Equations, Lecture Notes in Computational Science and Engineering,
Vol. 29, Springer Verlag (Berlin).
Sethuraman, R. and Reddy, C. S. (2004). Pseudo elastic analysis of material non-linear
problems using element free Galerkin method, J. Chinese Inst. Engineers 27,
pp. 505-516.
Shannon, C. (1949). Communication in the presence of noise, Proc. I R E 37, pp. 10-21.
Sharan, M., Kansa, E. J. and Gupta, S. (1997). Application of the multiquadric method
for numerical solution of elliptic partial differential equations, Appl. Math. Comp.,
84 2-3, pp. 275-302.
Shaw, E. W. and Lynn, P. P. (1972). Area rainfall evaluation using two surface fitting
techniques, Bull. Int. Ass. Hydrol. Sci. 17, pp. 419-433.
Shepard, D. (1968). A two dimensional interpolation function for irregularly spaced data,
Proc. 23rd Nat. Conf. ACM, pp. 517-524.
Shepherd, T. J. and Broomhead, D. S. (1990). Nonlinear signal processing using radial
basis functions, SPE Advanced Signal Processing Algorithms, Architectures, and Im-
plementations 1348, pp. 51-61.
Sherstinsky, A. and Picard, R. W. (1996). On the efficiency of the orthogonal least squares
training method for radial basis function networks, I E E E Trans. Neural Networks
7, pp. 195-200.
Shu, C , Ding, H. and Yeo, K. S. (2003). Local radial basis function-based differen-
tial quadrature method and its application to solve two-dimensional incompressible
Navier-Stokes equations, Comput. Methods Appl. Mech. Engrg. 192, pp. 941-954.
Shu, C , Ding, H. and Yeo, K. S. (2004). Solution of partial differential equations by
global radial basis function-based differential quadrature method, Engineering Anal-
ysis with Boundary Elements 28, pp. 1217-1226.
Shu, C , Ding, H. and Zhao, N. (2006). Numerical comparison of least square-based finite-
difference (LSFD) and radial basis function-based finite-difference ( R B F F D ) meth-
ods, Comput. Math. Appl. 51 8, pp. 1297-1310.
Sibson, R. and Stone, G. (1991). Computation of thin-plate splines, SIAM J. Sci. Statist.
Comput. 12, pp. 1304-1313.
Sivakumar, N. and Ward, J. D. (1993). On the least squares fit by radial functions to
multidimensional scattered data, Numer. Math. 65, pp. 219-243.
Smith, B. F., Bj0rstad, P. and Gropp, W. D. (1996). Domain Decomposition. Parallel
Multilevel Methods for Elliptic Partial Differential Equations, Cambridge University
Press (Cambridge).
Smith, K. T., Solmon, D. C. and Wagner, S. L. (1977). Practical and mathematical aspects
of the problem of reconstructing objects from radiographs, Bull. Amer. Math. Soc.
83, pp. 1227-1270.
Sneddon, I. H. (1972). The Use of Integral Transforms, McGraw-Hill (New York).
Sonar, T. (1995). Optimal recovery using thin plate splines in finite volume methods for
the numerical solution of hyperbolic conservation laws, IMA J. Numer. Anal. 16,
pp. 549-581.
Stead, S. (1984). Estimation of gradients from scattered data, Rocky Mountain J. Math.
14, pp. 265-279.
Steele, N. C , Reeves, C. R., Nicholas, M. and King, P. J. (1995). Radial basis func-
tion artificial neural networks for the inference process in fuzzy logic based control,
Computing 54, pp. 99-117.
Stein, E. M. and Weiss, G. (1971). Introduction to Fourier Analysis in Euclidean Spaces,
Princeton University Press (Princeton).
Bibliography 485
Stein, M. L. (1999). Interpolation of spatial data. Some theory for Kriging, Springer Series
in Statistics, Springer-Verlag (New York).
Stewart, J. (1976). Positive definite functions and generalizations, an historical survey,
Rocky Mountain J. Math. 6, pp. 409-434.
Strain, J. (1991). The fast Gauss transform with variable scales, SIAM J. Sci. Statist.
Comput. 1 2 , pp. 1131-1139.
Sun, X. (1989). On the solvability of radial function interpolation, in Approximation Theory
VI, C. Chui, L. Schumaker, and J. Ward (eds.), Academic Press (New York), pp. 643
646.
Sun, X. (1990). Multivariate interpolation using ridge or related functions, Ph.D. Disser-
tation, University of Texas.
Sun, X. (1992a). Norm estimates for inverses of Euclidean distance matrices, J. Approx.
Theory 7 0 , pp. 339-347.
Sun, X. (1992b). Cardinal and scattered-cardinal interpolation by functions having non-
compact support, Comput. Math. Appl. 2 4 , pp. 195-200.
Sun, X. (1993a). Solvability of multivariate interpolation by radial or related functions, J.
Approx. Theory 72, pp. 252-267.
Sun, X. (1993b). Conditionally positive definite functions and their application to multi-
variate interpolation, J. Approx. Theory 7 4 , pp. 159-180.
Sun, X. (1994a). Scattered Hermite interpolation using radial basis functions, Linear Al-
gebra Appl. 2 0 7 , pp. 135-146.
Sun, X. (1994b). The fundamentality of translates of a continuous function on spheres,
Numerical Algorithms 8, pp. 131-134.
Sun, X. (1994c). Cardinal Hermite interpolation using positive definite functions, Numer-
ical Algorithms 7, pp. 253-268.
Sun, X. (1995). Conditional positive definiteness and complete monotonicity, in Approx-
imation Theory VIII, Vol. 1: Approximation and Interpolation, C. Chui, and L.
Schumaker (eds.), World Scientific Publishing (Singapore), pp. 537-540.
Sun, X. and Cheney, E. W. (1997). Fundamental sets of continuous functions on spheres,
Constr. Approx. 1 3 2, pp. 245-250.
Suykens, J. A. K., De Brabanter, J., Lukas, L. and Vandewalle, J. (2002). Weighted least
squares support vector machines: robustness and sparse approximation, Neurocom-
puting 4 8 1-4, pp. 85-105.
Szego, G. (1959). Orthogonal Polynomials, Amer. Math. Soc. Coll. Publ. Vol. X X I I I (Prov-
idence) .
Tan, S., Hao, J. and Vandewalle, J. (1995). Multivariable nonlinear system identification
by radial basis function neural networks, Arch. Control Sci. 4, pp. 55-67.
Tarwater, A. E. (1985). A parameter study of Hardy's multiquadric method for scattered
data interpolation, Lawrence Livermore National Laboratory, T R UCRL-563670.
Temlyakov, V. N. (1998). The best m-term approximation and greedy algorithms, Adv. in
Comp. Math. 8, pp. 249-265.
Tiago, C. M. and Leitao, V. M. A. (2006). Application of radial basis functions to linear
and nonlinear structural analysis problems, Comput. Math. Appl. 5 1 8, pp. 1311
1334.
Trefethen, L. N. (2000). Spectral Methods in M A T L A B , SIAM (Philadelphia, PA).
Trefethen, L. N. and Bau, D. (1997). Numerical Linear Algebra, SIAM (Philadelphia, PA).
Treinish, L. A. (1995). Visualization of Scattered Meteorological Data, I E E E Computer
Graphics & Applications 1 5 , pp. 20-26.
Tsukanov, I. and Shapiro, V. (2005). Meshfree modeling and analysis of physicalfieldsin
heterogeneous media, Adv. in Comput. Math. 2 3 1-2, pp. 95-124.
486 Meshfree Approximation Methods with MATLAB
Turk, G. and O'Brien, J. F. (2002). Modelling with implicit surfaces that interpolate, ACM
Transactions on Graphics 21, pp. 855-873.
Unser, M. (2000). Sampling 50 years after Shannon, Proc. IEEE 88, pp. 569-587.
Utreras, F. I. (1985). Positive thin plate splines, Approx. Theory Appl. 1, pp. 77-108.
Utreras, F. I. (1993). Multiresolution and pre-wavelets using radial basis functions, in
Multivariate Approximation: From CAGD to Wavelets, Kurt Jetter and Florencio
Utreras (eds.), World Scientific Publishing (Singapore), pp. 321-333.
2
Utreras, F. I. and Vargas, M. L. (1991). Monotone interpolations of scattered data in IR ,
Constr. Approx. 7, pp. 49-68.
Villalobos, M. A. and Wahba, G. (1983). Multivariate thin plate spline estimates for
the posterior probabilities in the classification problem, Comm. Statist. A Theory
Methods 12, pp. 1449-1479.
Vrankar, L., Turk, G. and Runovc, F. (2004). modelling of radionuclide migration through
the geosphere with radial basis function method and geostatistics, J . Chinese Inst.
Engineers 27, pp. 455-462.
Wahba, G. (1979). Convergence rate of "thin plate" smoothing splines when the data are
noisy (preliminary report), Springer Lecture Notes in Math. 757, pp. 233-245.
Wahba, G. (1981). Spline Interpolation and smoothing on the sphere, SIAM J . Sci. Statist.
Comput. 2, pp. 5-16.
Wahba, G. (1982). Erratum: Spline interpolation and smoothing on the sphere, SIAM J .
Sci. Statist. Comput. 3, pp. 385-386.
Wahba, G. (1986). Multivariate thin plate spline smoothing with positivity and other
linear inequality constraints, in Statistical image processing and graphics (Luray,
Va., 1983), Statist.: Textbooks Monographs, 72, Dekker (New York), pp. 275-289.
Wahba, G. (1990a). Multivariate model building with additive interaction and tensor prod-
uct thin plate splines, in Curves and Surfaces, P.-J. Laurent, A. Le Mehaute, and L.
L. Schumaker (eds.), Academic Press (New York), pp. 491-504.
Wahba, G. (1990b). Spline Models for Observational Data, CBMS-NSF Regional Confer-
ence Series in Applied Mathematics 59, SIAM (Philadelphia).
Wahba, G. and Luo, Z. (1997). Smoothing spline ANOVA fits for very large, nearly regular
data sets, with application to historical global climate data, in The Heritage of
P. L . Chebyshev: a Festschrift in honor of the 70th birthday of T. J . Rivlin, Ann.
Numer. Math. 4 1-4, pp. 579-597.
Wahba, G. and Wendelberger, J. (1980). Some new mathematical methods for variational
objective analysis using splines and cross validation, Monthly Weather Review 108,
pp. 1122-1143.
Wang, S. and Wang, M. Y. (2006). Radial basis functions and level set method for struc-
tural topology optimization, Int. J . Numer. Meth. Engng. 65 12, pp. 2060-2090.
Ward, J. D. (2004). Least squares approximation using radial basis functions: an up-
date, in Advances in Constructive Approximation: Vanderbilt 2003, M. Neamtu and
E. B. Saff (eds.), Nashboro Press (Brentwood, TN), pp. 499-508.
Watson, G. S. (1964). Smooth regression analysis, Sankhya, Ser. A 26, pp. 359-372.
Webb, A. R. (1995). Multidimensional scaling by iterative majorisation using radial basis
functions, Pattern Recognition 28, pp. 753-759.
Weinrich, M. (1994). Charakterisierung von Funktionenraumen bei der Interpolationn mit
radialen Basisfunktionen, Ph.D. Dissertation, Universitat Gottingen.
Wells, J. H. and Williams, R. L. (1975). Embeddings and Extensions in Analysis, Springer
(Berlin).
Wendland, H. (1994). Ein Beitrag zur Interpolation mit radialen Basisfunktionen, Diplo-
marbeit, Universitat Gottingen.
Bibliography 487
adaptive greedy algorithm, 291 best, 159, 163, 178, 192, 193, 254, 300
adaptive least squares approximation, best K-term, 293
181, 184 greedy, 293
additive Schwarz, 331 non-stationary, 22, 99-101, 126, 128,
algorithm 131, 139, 140, 153-155, 211,
adaptive greedy, 291 267, 378, 421
Contour-Pade, 133, 151, 405 saturated, 130, 156, 231, 237, 240, 246,
domain decomposition, 332 385
fast Gauss transform, 325 sparse, 293
Faul-Powell, 298, 301 stationary, 22, 99-101, 130-132, 140,
F F T evaluation, 245 155-157, 211, 216, 227, 237,
fixed level iteration, 267 279, 378, 380, 421
greedy one-point, 293 stationary multilevel, 277, 283
iterative refinement, 265 approximation order, 111, see also error
knot insertion, 181 estimates
knot removal, 184 L , 112
p
491
492 Meshfree Approximation Methods with MATLAB
Buhmann CSRBF, 93, 94, 345 modified Bessel of the second kind, 41,
cardinal basis, 112, 113-115, 151, 164, 67
195, 196, 199, 311 modified Bessel of the third kind, 41
compactly supported RBF, 15, 76, multiply monotone, 49-52, 75-76
85-101, 109, 127, 138, 140, 149, multiquadric, 13, 68, 77, 110, 113, 126,
234, 240, 241, 251, 260, 131-133, 139, 140, 153, 243, 288,
277-289, 345, 375-385, 421 306, 308, 310, 326, 339, 345, 346
completely monotone, 14, 38, 42, 47, multivariate, 17
47-49, 51, 52, 73-75 multivariate Hermite, 322
conditionally positive definite, 52, optimal basis, 164
63-65, 123, 162, 299 Poisson radial, 39
conditionally positive definite and polyharmonic spline, 14, 71, 129, 130,
radial, 73-78, 81 278, 306, 313
conditionally positive definite of order positive definite, 27-35
s
s
m o n K , 63, 64 positive definite on R , 28
construct strictly positive definite, 33 positive definite radial, 33-35
correction, 230 R, 350, 420
cutoff, 43, 88, 128 radial, 17, 33
eigen, 107 radial basis, 6, 17
Euclid's hat, 92, 93 radial power, 69, 74, 109, 127-129, 131,
Franke's, 20 132, 138, 155, 278, 306
Franke-type, 246 rapidly decreasing, 433
Shepard, 13, 205
fundamental positive definite, 32
slowly increasing, 433
Gaussian, 17, 19, 22-24, 35, 37, 40, 49,
Sobolev spline, 41, 109
52, 55, 82, 101, 110, 113, 117,
strictly conditionally positive definite of
123, 126, 130, 132, 133, 137, 8
order m o n R , 63, 64
140, 148, 153, 156, 188, 211,
strictly positive definite, 28, 32
243, 253, 259, 270, 296, 309,
strictly positive definite and radial for
322, 327, 345, 356, 357, 363,
all s, 34
403, 405, 412, 415 s
strictly positive definite on R , 28
generalized inverse multiquadric, 41, 49,
surface spline, 14, 70
67, 123, 138 shifted, 131
generalized multiquadric, 67, 74, 77, thin plate spline, 14, 70, 74, 109,
138 127-129, 131, 132, 138, 155,
generating, 195, 232 163, 164, 167, 170, 278, 306,
Gneiting CSRBF, 91, 345 308, 310, 314, 316, 326, 437
Green's, 164 tri-cube, 227
inverse multiquadric, 37, 154, 296, 306, truncated power, 43, 50
345, 353, 356, 357 univariate, 17
inverse quadratic, 42 vector-valued, 2, 83
A;-times monotone, 50, 50, 51, 75, 76 weight, 193, 196, 199, 201, 202, 206,
kriging, 116 212, 214, 216, 226, 227, 229,
Laguerre-Gaussian, 38, 52, 123, 126, 230, 233, 234, 274, 285, 287
131, 222, 233, 237, 238, 241, Wendland CSRBF, 87, 87-88, 91, 92,
245, 246, 269, 322 98, 99, 109, 127, 129, 131, 138,
Lebesgue, 226 154, 179, 211, 234, 240, 241,
local approximate cardinal, 309 251, 253, 260, 279, 345, 375,
MacDonald's, 41 388, 413, 423
Matern, 41, 109, 123, 126, 129, 388, 410 Whittaker-M, 44
Index 495
i lST
496 Meshfree Approximation Methods with MATLAB
' ^ ^ ^ ^ ^
Index 499
I
500 Meshfree Approximation Methods with MATLAB
Mairhuber-Curtis, 3
Mercer, 107 van der Corput sequence, 427
Micchelli, 51 vector-valued functions, 2, 83
optimality I, 162 Voronoi diagram, 306
optimality II, 163
optimality III, 164 web-spline, 350, 420
Schoenberg-Menger, 81 weight functions, 193, 196, 199, 201, 202,
Shannon Sampling, 110 206, 212, 214, 216, 226, 227, 229, 230,
Williamson, 50 233, 234, 274, 285, 287
zeros, 128 weighted norm, 191
thin plate spline, 308 well-posed, 3
thin plate splines, 14, 70, 74, 109, Wendland CSRBF, 87, 87-88, 91, 92, 98,
127-129, 131, 132, 138, 155, 163, 164, 99, 109, 127, 129, 131, 138, 154, 179,
167, 170, 278, 306, 310, 314, 316, 326, 211, 234, 240, 241, 251, 253, 260, 279,
437 345, 375, 388, 413, 423
thinning algorithm, 187, 282, 439 Whittaker-M function, 44
time-dependent boundary conditions, 409 Williamson's theorem, 50
trade-off principle, 24, 100, 138-140, 277 Wu CSRBF, 89, 88-90, 345
translation invariant, 29, 106
transport equation, 387, 403, 405 zeros theorem, 128
tree codes, 325