Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Linear interpolation problem

Received: by 10.66.73.226 with SMTP id o2mr2945950pav.12.1352378110036;
        Thu, 08 Nov 2012 04:35:10 -0800 (PST)
MIME-Version: 1.0
Path: s9ni87402pbb.0!nntp.google.com!news.glorb.com!solaris.cc.vt.edu!news.vt.edu!newsfeed-00.mathworks.com!news.mathworks.com!not-for-mail
From: "Bruno Luong" <b.lu...@fogale.findmycountry>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Linear interpolation problem
Date: Thu, 8 Nov 2012 12:35:09 +0000 (UTC)
Organization: FOGALE nanotech
Lines: 9
Message-ID: <k7g8tt$rk3$1@newscl01ah.mathworks.com>
References: <k7edq1$akq$1@newscl01ah.mathworks.com> <ecd146be-fea2-47a0-8ec1-e82700581146@googlegroups.com> <k7g16b$3j6$1@newscl01ah.mathworks.com>
Reply-To: "Bruno Luong" <b.lu...@fogale.findmycountry>
NNTP-Posting-Host: www-04-blr.mathworks.com
X-Trace: newscl01ah.mathworks.com 1352378109 28291 172.30.248.35 (8 Nov 2012 12:35:09 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 8 Nov 2012 12:35:09 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

"Heinrich Acker" wrote in message <k7g16b$3j...@newscl01ah.mathworks.com>...
> Thank you, TideMan for these hints. In my application, the function is unknown, and linear approximation is already chosen for runtime reasons. With my example, I did not use real data, but wanted to illustrate the fact that the result delivered by 'interp1' is not the best result possible with linear approximation. I am looking for an algorithm that performs better with the same type of approximation. As you can see from my example, 'interp1' does not minimize the maximum error in the data set.
> 

So what is your preference: runtime or accuracy? They are tradeoff, you have to pick a choice.

BTW, interp1 poor runtime is mainly due to the overhead, not the numerical method behind it.

Bruno