Numerical Recipes [message #9883] |
Wed, 17 September 1997 00:00  |
Dave Klassen
Messages: 1 Registered: September 1997
|
Junior Member |
|
|
I've been looking for a nice easy way to maximize a fairly complex
function using IDL. I know that there are many Numerical Recipes
routines built into IDL, but not the one I need. I've used the
NR routine called AMOEBA before to minimize a chi-squared
function and now I'd like to try to use it to maximize a
correlation function.
I was wondering if there were some repository of IDL translations
of the NR routines that are *not* built in. I'd really like to
avoid translating the FORTRAN code I have if possible.
Thanks!
--
David R. Klassen
Department of Astronomy
Center for Radiophysics and Space Research
404 Space Sciences Building
Cornell University
Ithaca NY 14853
phone: 607-255-6910
fax: 607-255-9002
http://astrosun.tn.cornell.edu/staff/klassen/klassen.html
drk14@cornell.edu
|
|
|
Re: Numerical Recipes [message #9967 is a reply to message #9883] |
Thu, 18 September 1997 00:00  |
Wayne Landsman
Messages: 117 Registered: January 1997
|
Senior Member |
|
|
Dave Klassen wrote:
> I know that there are many Numerical Recipes
> routines built into IDL, but not the one I need. I've used the
> NR routine called AMOEBA before to minimize a chi-squared
> function and now I'd like to try to use it to maximize a
> correlation function.
AMOEBA *is* part of IDL V5.0 (and written in the IDL language).
Looking at the code, there doesn't seem to be any reason why it wouldn't
work in earlier versions of IDL, once you changed the square bracket
subscripts to parentheses.
> I was wondering if there were some repository of IDL translations
> of the NR routines that are *not* built in. I'd really like to
> avoid translating the FORTRAN code I have if possible.
Twelve additional NR routines are available in
http://idlastro.gsfc.nasa.gov/ftp/pro/math/
Wayne Landsman landsman@mpb.gsfc.nasa.gov
|
|
|
Re: Numerical Recipes [message #9979 is a reply to message #9883] |
Wed, 17 September 1997 00:00  |
David Foster
Messages: 341 Registered: January 1996
|
Senior Member |
|
|
Dave Klassen wrote:
>
> I've been looking for a nice easy way to maximize a fairly complex
> function using IDL. I know that there are many Numerical Recipes
> routines built into IDL, but not the one I need. I've used the
> NR routine called AMOEBA before to minimize a chi-squared
> function and now I'd like to try to use it to maximize a
> correlation function.
>
> I was wondering if there were some repository of IDL translations
> of the NR routines that are *not* built in. I'd really like to
> avoid translating the FORTRAN code I have if possible.
>
This might not appeal to you, but one alternative would be to
modify the Fortran code slightly so you can call it from IDL
using CALL_EXTERNAL. I don't think you would want to translate
the NR routines to IDL, as there would be a significant performance
cost for most of them.
Dave
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2240
La Jolla, CA 92037
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
|
|
|