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 #5310 is a reply to message #5308] Tue, 14 November 1995 00:00 Go to previous message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
kkobayas@scws40.harvard.edu (Ken Kobayashi) writes:


> 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.) In other words, if the function has three parameters, do a
> least-square fit using just two of the parameters. The only ways I could
> think of were (a) hack CURVEFIT.PRO to add a parameter to the function
> calls, or (b) save the parameter in a file and read that. (a) has a
> problem with portability, and (b) seems rather slow considering the
> function is called many tims. Is there a better way to do this?

You can always use a common block to pass additional information to the fitted
function.

Bill Thompson
[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: Sun Oct 12 19:26:12 PDT 2025

Total time taken to generate the page: 1.91814 seconds