|
From: Hans-Bernhard B. <HBB...@t-...> - 2008-07-04 21:09:45
|
atoms.h wrote: > Is it possible to contrain a fit parameter? > For example a>0 or a=2..3? You can use a function of your choice to map the fitted parameter to the one used in the function, e.g. a(a_fit) = exp(a_fit) # or # a(a_fit) = 2+tanh(a_fit)/2 fit f(x,a(a_fit)) 'data' via a_fit |