Approximating surfaces by the moving least absolute deviations method
Applied Mathematics and Computation 219 (2013) 4387–4399
Contents lists available at SciVerse ScienceDirect
Applied Mathematics and Computation jour...
Applied Mathematics and Computation 219 (2013) 4387–4399
Contents lists available at SciVerse ScienceDirect
Applied Mathematics and Computation journal homepage: www.elsevier.com/locate/amc
Approximating surfaces by the moving least absolute deviations method Ratko Grbic´ a, Klaudija Scitovski b, Kristian Sabo c, Rudolf Scitovski c,⇑ a b c
Faculty of Electrical Engineering, University of Osijek, Kneza Trpimira bb, HR-31 000 Osijek, Croatia Geoinfo AG, Kasernenstrasse 69, 9100 Herisau, Switzerland Department of Mathematics, University of Osijek, Trg Lj. Gaja 6, HR-31 000 Osijek, Croatia
a r t i c l e
i n f o
Keywords: Surface approximating Scattered data fitting Moving least absolute deviations LAD l1 -Norm approximation Weighted median problem
a b s t r a c t In this paper we are going to consider the problem of global data approximation on the basis of data containing outliers. For that purpose a new method entitled the moving least absolute deviations method is proposed. In the region of data in the network of knots weighted least absolute deviations local planes are constructed by means of which a global approximant is defined. The method is tested on the well known Franke’s function. An application in gridding of sonar data is also shown. Ó 2012 Elsevier Inc. All rights reserved.
1. Introduction Problems of global and/or local approximation or interpolation of scattered data obtained by measurements are considered by numerous authors (see e.g. [8,9,11,14,26]). Let us mention just a few of possible applications of such problems in applied research: geodetic observations, plotting geographical maps, determining geological layers (petroleum exploration, geological maps), water surface and water depth information, investigation of heart potentials, etc. [6,17–19,28]. One can find a rather detailed survey of these problems, possible applications and the methods used in [2,11,14]. In this paper we are going to consider the problem of global data approximation on the basis of data containing outliers. Suppose we are given a set of points in space K ¼ fT i ðxi ; yi ; zi Þ 2 R3 : i ¼ 1; . . . ; m; m P 3g X. Thereby zi are the measured values of unknown function z ¼ gðxÞ at points P i ðxi ; yi Þ. Using the given data, one has to approximate an unknown function g by a function g^ (global approximant). ^, the method often used throughout the literature is the moving least squares method In search for the global approximant g (see e.g. [9,4,15,13,31]), where local approximants are determined in terms of ordinary least squares, or the moving total least squares method (see e.g. [24,26,27]), where local approximants are determined in terms of total least squares. But, when among the measurements outliers are expected, it is better to determine local approximants in terms of least absolute deviations (LAD) (see e.g. [20]). For that purpose, we are going to define a numerically efficient scattered data approximation method we entitled the weighted least absolute deviations (WLAD) method. In addition to that, it is also possible to construct real time algorithms for this approach. In the region X we construct networks of knots. In each knot, on the basis of the WLAD method we calculate a local approximant. Since the WLAD method is an iterative procedure, a numerically efficient moving least absolute deviations (MLAD) algorithm is also defined, in which the information on the previously calculated local approximant are used for computation of some local approximant. Next, by using the blending function (see e.g. [11,14]), we can define a smooth approximation g^.
⇑ Corresponding author. E-mail addresses: [email protected] (R. Grbic´), [email protected] (K. Scitovski), [email protected] (K. Sabo), [email protected] (R. Scitovski). 0096-3003/$ - see front matter Ó 2012 Elsevier Inc. All rights reserved. http://dx.doi.org/10.1016/j.amc.2012.10.041
R. Grbic´ et al. / Applied Mathematics and Computation 219 (2013) 4387–4399
4388
For a fast (but less accurate) calculation of the sequence of local approximants in the network of knots, a numerically very efficient algorithm is proposed, which is similar to the well-known Shepard’s algorithm (see e.g. [14]). In this case the local approximant in some knot is obtained as a weighted median of the data in some neighborhood of this knot. The proposed method is tested and illustrated on two numerical examples. One practical application to construction of an seafloor topography in the Adriatic is also shown. 2. The best WLAD-plane Let us now define the WLAD-plane problem (see e.g. [7,16,21,25]). Let K ¼ fT i ðxi ; yi ; zi Þ 2 R3 : i 2 Ig be a set of points in space with corresponding data weights wi > 0, where I ¼ f1; . . . ; mg; m P 3 is the set of indices. The best WLAD-plane should be determined, i.e. optimal parameters a ; b ; c 2 R of the function f ðx; y; a; b; cÞ ¼ ax þ by þ c should be determined such that
Gða ; b ; c Þ ¼ min Gða; b; cÞ;
Gða; b; cÞ ¼
ða;b;cÞ2R3
m X wi jzi axi byi cj:
ð1Þ
i¼1
This problem can also be considered as an WLAD-solution to the problem of an overdetermined system of linear equations (see e.g. [1,3,10,30]), whereas in the statistics literature (see e.g. [5]) it is considered as a parameter estimation problem for linear regression. For solving this problem it is necessary to know how to solve the weighted median problem [22,25,29]. Therefore, first we mention the following lemma [22]. Lemma 1. Let ðxi ; yi Þ; i 2 I; I ¼ f1; . . . ; mg; m P 2, be the data, where y1 6 y2 6 6 ym are real numbers, and xi > 0 corresponding data weights. Denote
( J¼
m2I:2
m X
m X
i¼1
i¼1
xi
For J – ;, let us denote
FðaÞ ¼
)
xi 6 0 :
m0 ¼ max J. Furthermore, let F : R ! R be a function defined by the formula
m X
xi jyi aj:
ð2Þ
i¼1
Then P xi ), then the minimum of function F is attained at the point aH ¼ y1 . (i) if J ¼ ; (i.e. 2x1 > m i¼1P Pm0 (ii) if J – ; and 2 i¼1 xi < m x , then the minimum of function F is attained at the point aH ¼ ym0 þ1 . Pm0 Pmi¼1 i (iii) if J – ; and 2 i¼1 xi ¼ i¼1 xi , then the minimum of function F is attained at every point aH from the segment ½ym0 ; ym0 þ1 . The number a 2 R is called the weighted median of the data ðwi ; yi Þ; i 2 I and denoted by medi2I ðwi ; yi Þ. Remark 1. Note that as a consequence of this lemma a pseudo-halving property of data ðwi ; yi Þ; i 2 I, follows directly [25], so it can be said that the weighted median of data is every number a for which it holds