16 May
2012
16 May
'12
9:20 a.m.
Dear scipy users, I'm trying to fit to data a power law of the form : def func (x, a,b, r): return r + a*np.power(x,-b) I would like to constrain the curve_fit routine to only allow positive parameter values. How is it possible to do so? Kind regards, Mathieu