This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Fixing parameters for nonlinear least squares fitting
- From: Simon Martin <simon dot martin at sheffield dot ac dot uk>
- To: gsl-discuss at sources dot redhat dot com
- Date: Thu, 30 May 2002 15:28:01 +0100
- Subject: Fixing parameters for nonlinear least squares fitting
Hi
I'm working on a program that fits some data using the noninear least
squares routines from GSL. I have written a C++ object that implements
the example from the manual pages. This works very well. Now I'd like
to be able to select which parameters are fitted - experience shows that
some parameters are best fitted independently of others. My idea was to
set the relevent terms in the Jacobian to zero - thinking that this
would effectively meant that these parameters were at their ideal
values. Unfortunately, doesn't work. The fixed parameter goes to
infinity and the other parameters go to NaN.
Does anybody know A way around this?
Simon