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

Home » Public Forums » archive » Numerical Recipes
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
Numerical Recipes [message #9883] Wed, 17 September 1997 00:00 Go to next message
Dave Klassen is currently offline  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 Go to previous message
Wayne Landsman is currently offline  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 Go to previous message
David Foster is currently offline  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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Numerical Recipes diffs?
Next Topic: SVDC in IDL 5.0

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

Current Time: Wed Oct 08 13:44:45 PDT 2025

Total time taken to generate the page: 0.00454 seconds