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

Home » Public Forums » archive » Re: avoiding for loop when calculating median
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: avoiding for loop when calculating median [message #10954 is a reply to message #10952] Fri, 30 January 1998 00:00 Go to previous messageGo to previous message
George McCabe is currently offline  George McCabe
Messages: 23
Registered: June 1997
Junior Member
Michael Werger wrote:
> If it is only due to speed that you do not want to use the FOR loop,
> just write it in a single line:
> for cnt=0, idim-1 do calcmedian(cnt) = median(mat(cnt,*))

that shaves 20% off the time to execute.

Thanks for your response, George

VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV VVVVVVVVV
George McCabe (HSTX) NASA / GSFC
Tel: (301)286-8283, Fax: (301)286-0212 Code 693, B2 R151
E-mail: george.mccabe@gsfc.nasa.gov Greenbelt, MD 20912
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: LMFIT -- stay away from it!
Next Topic: REAL DATA

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

Current Time: Fri Nov 28 09:27:31 PST 2025

Total time taken to generate the page: 0.00810 seconds