Path: news.mathworks.com!not-for-mail
From: "Bruno Luong" <b.luong@fogale.findmycountry>
Newsgroups: comp.soft-sys.matlab
Subject: Re: interpolating/smoothing w/ monotonically increasing
Date: Thu, 30 Oct 2008 23:26:02 +0000 (UTC)
Organization: FOGALE nanotech
Lines: 24
Message-ID: <gedfqa$am6$1@fred.mathworks.com>
References: <ged003$oi7$1@fred.mathworks.com> <ged11r$f59$1@fred.mathworks.com> <ged2vl$ep1$1@fred.mathworks.com> <ged7g2$ki3$1@fred.mathworks.com> <gedajd$mp$1@fred.mathworks.com>
Reply-To: "Bruno Luong" <b.luong@fogale.findmycountry>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1225409162 10950 172.30.248.38 (30 Oct 2008 23:26:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 30 Oct 2008 23:26:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: news.mathworks.com comp.soft-sys.matlab:498138


"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <gedajd$mp$1@fred.mathworks.com>...
> You could use linprog if you prefer least-absolute or error-sum (linfity or l1) criteria instead of least-square deviation.
> 
> Bruno

Here is the monotonic fit results for three strategies (respectively raw data, L1, Linfty and L2).

[ydata yl1 yinf yl2]

ans =

  183.6992  183.6992  184.0256  183.7000
  347.6811  197.5389  273.2680  243.7500
  184.4308  197.5389  273.2680  243.7500
  199.1481  199.1481  275.0011  243.7500
  308.3963  308.3963  323.7812  308.4000
  453.1903  453.1903  449.2267  453.1900
  490.1048  490.1048  499.5431  490.1000
  558.3740  558.3740  561.7567  558.3700
  613.4362  613.4362  612.5059  613.4400
  623.4727  623.4727  647.3502  623.4700


Bruno (who likes the l1)