comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Why is MEAN so slow?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Why is MEAN so slow? [message #74498 is a reply to message #74497] Tue, 18 January 2011 17:36 Go to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
On Tuesday, January 18, 2011 7:52:45 PM UTC-5, Matthew Francis wrote:
> I've been using the PROFILER to track down why some code was a bit
> slow and found that it was spending most of its time in the MEAN
> function (and then within that, in the MOMENT function called by
> MEAN).
>
In IDL 8.0, MEAN no longer calls MOMENT but does the calculation itself using code similar to your MEAN_QUICK. (This is part of the upgrade that also added a DIMENSION keyword.)

But I don't see anything inefficient about the earlier code which called MOMENT(). In fact, I find the same processing times whether using MEAN_QUICK, the pre-8.0 MEAN(), or the V8.0 MEAN(). (My test consisted of taking the mean of a 5000 x 5000 randomn array with selected values set to NAN.)

--Wayne
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: kriging
Next Topic: Re: Resizeable Graphics Windows for Traditional Commands

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 06:30:21 PDT 2025

Total time taken to generate the page: 1.12503 seconds