Path: news.mathworks.com!not-for-mail
From: "Bruno Luong" <b.luong@fogale.findmycountry>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Vectorizing data lookback?
Date: Wed, 3 Sep 2008 22:03:01 +0000 (UTC)
Organization: FOGALE nanotech
Lines: 16
Message-ID: <g9n1il$hbh$1@fred.mathworks.com>
References: <g9db32$oq6$1@fred.mathworks.com> <g9mng6$hbc$1@fred.mathworks.com> <g9mppq$f7c$1@fred.mathworks.com> <g9n03q$3le$1@fred.mathworks.com>
Reply-To: "Bruno Luong" <b.luong@fogale.findmycountry>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1220479381 17777 172.30.248.37 (3 Sep 2008 22:03:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 3 Sep 2008 22:03:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: news.mathworks.com comp.soft-sys.matlab:488495



"Lars Barring" <lars.barring@myworkplace.se> wrote in
message <g9n03q$3le$1@fred.mathworks.com>...

> 
> % running Extreme: FEX #18551 by Dan Kominsky
>

... Ah very neat this van Herk's algorithm

Here is timings on my laptop with 1e6 data:

Elapsed time is 12.691225 seconds. % for loop
Elapsed time is 2.264592 seconds. % "Bruno 2"
Elapsed time is 0.796989 seconds. % Lars/Dan

Bruno