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

Home » Public Forums » archive » Re: Multiple linear regression on 3D instead of 2D Y-vectors?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Multiple linear regression on 3D instead of 2D Y-vectors? [message #46644] Tue, 29 November 2005 22:55
marc schellens[1] is currently offline  marc schellens[1]
Messages: 183
Registered: January 2000
Senior Member
Here are a kind of generic instructions:

As a first step, copy the regress function (regress.pro) from the IDL
library to another file, rename it (file and function name to
myregress(.pro)) and delete (for a better overview and slightly speed
up) all (in this particular case) non used IF THEN ELSE branches.

Then look at the code and remove all unnecessary calculations
(eg. ftest in line 186)

(don't forget to call myregress in your program instead of regress)

Look at the speed increase.
If it is still not enough paste myregress.pro directly into your code
and
pull all (within your loop) constant calculations out of the loop.
Look then for the possibility of vectorizing calculations.

That will speed it up as much as it gets.

HTH,
marc
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Multiple linear regression on 3D instead of 2D Y-vectors?
Next Topic: destroying x-registered windows

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

Current Time: Wed Oct 08 09:16:20 PDT 2025

Total time taken to generate the page: 0.00545 seconds