Home »
Public Forums »
archive »
Re: Multiple linear regression on 3D instead of 2D Y-vectors?
Re: Multiple linear regression on 3D instead of 2D Y-vectors? [message #46644] |
Tue, 29 November 2005 22:55 |
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
|
|
|
Current Time: Wed Oct 08 15:23:24 PDT 2025
Total time taken to generate the page: 0.00380 seconds