How can I add parameter to curvefit? [message #5320] |
Sat, 11 November 1995 00:00 |
kkobayas
Messages: 7 Registered: June 1994
|
Junior Member |
|
|
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?
- Ken
--
------------------------------------------------------------ -----------------
Ken Kobayashi . "Too low they build, who build
kkobayashi@cfa.harvard.edu . beneath the stars."
http://stargazer.student.harvard.edu/ . - Edward Young
|
|
|