This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

constrain on nonlinear least-squares fitting


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]