constrain on nonlinear least-squares fitting

Fiaschi blazar@virgilio.it
Thu Jan 16 22:28:00 GMT 2003


How I can limit the range of one or more parameters on nonlinear
least-squares fitting algorithm?

I must fit a one-dimensional array with a simple generic sinusoidal function
I(t)=B+A*sin(omega*t+phi) but the parameters A and B must be always >0 and
0<phi<pi

Thanks!

Marco Fiaschi



More information about the Gsl-discuss mailing list