Fitting a least squares piecewise linear continuous curve in two dimensions

Citation
S. Kundu et Va. Ubhaya, Fitting a least squares piecewise linear continuous curve in two dimensions, COMPUT MATH, 41(7-8), 2001, pp. 1033-1041
Citations number
9
Categorie Soggetti
Computer Science & Engineering
Journal title
COMPUTERS & MATHEMATICS WITH APPLICATIONS
ISSN journal
08981221 → ACNP
Volume
41
Issue
7-8
Year of publication
2001
Pages
1033 - 1041
Database
ISI
SICI code
0898-1221(200104)41:7-8<1033:FALSPL>2.0.ZU;2-Q
Abstract
An optimal piecewise linear continuous fit to a given set of n data points D = {(x(i),yi) : 1 less than or equal to i less than or equal to n} in two dimensions consists of a continuous curve defined by k linear segments {L-1 , L-2,..., L-k} which minimizes a weighted least squares error function wit h weight w(i) at (x(i),y(i)), where k greater than or equal to 1 is a given integer. A key difficulty here is the fact that the linear segment L-j, wh ich approximates a subset of consecutive data points D-j subset of D in an optimal solution, is not necessarily an optimal fit in itself for the point s D-j. We solve the problem for the special case k = 2 by showing that an o ptimal solution essentially consists of two least squares linear regression lines in which the weight w(j) of some data point (x(j), y(j)) is split in to the weights lambdaw(j) and (1 - lambda )w(j), 0 less than or equal to la mbda less than or equal to 1, for computations of these lines. This gives a n algorithm of worst-case complexity O(n) for finding an optimal solution f or the case k = 2. (C) 2001 Elsevier Science Ltd. All rights reserved.