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

Home » Public Forums » archive » Re: How can I add parameter to curvefit?
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: How can I add parameter to curvefit? [message #5308 is a reply to message #5301] Tue, 14 November 1995 00:00 Go to previous messageGo to previous message
hahn is currently offline  hahn
Messages: 108
Registered: November 1993
Senior Member
kkobayas@scws40.harvard.edu (Ken Kobayashi) wrote:


> Hi,

> I'm doing a curve fitting using CURVEFIT. However, I would like to be
> able to pass on an extra paremeter to the function that CURFEFIT calls.
> (i.e. the one that returns the function I'm trying to fit to and its
> derivative.)
[snip]

There is no problem with portability esp. if you change the name
of the procedure to keep the original.

The other idea, to save the parameter in a file, will only be helpful
when you need this for some other reason (log file).

You may save the parameter in a common block. Although common
blocks are not loved by those programmers who favour structured
programming, this feature is well implemented in IDL and can be used
quite efficiently. BTW it's a lot faster to access variables via
common rather than passing structures via a parameter list!

> - Ken
> --
> ------------------------------------------------------------ -----------------
> Ken Kobayashi . "Too low they build, who build
> kkobayashi@cfa.harvard.edu . beneath the stars."
> http://stargazer.student.harvard.edu/ . - Edward Young

Norbert Hahn
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Shaded cylinder in 3D with IDL
Next Topic: Re: Inaccuracies

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

Current Time: Sat Oct 11 09:18:24 PDT 2025

Total time taken to generate the page: 0.48168 seconds