Curve fitting constraints
Posted by
NielsMimetas on
Feb 04, 2021; 3:02pm
URL: http://imagej.273.s1.nabble.com/Curve-fitting-constraints-tp5024431.html
Hi all,
I'm using the curve fitting plugin and want to add constraints to my
variables.
For example, lets say that the a-variable can only go from -5 to +5. How
would I do this?
I already have the source code of the Curve fitting open, so I can make
adjustments to the code, I'm just not sure where.
I read a comment from Michael Schmid, who said the following:
/concerning (1), restricting parameter ranges:
You can have a function that returns NaN if the parameter enters an
invalid range. Then the CurveFitter will avoid this range.
Convergence will be rather bad if the best fit lies very close to a 'NaN
boundary', however./
Link:
http://imagej.1557.x6.nabble.com/fitting-y-f-x-data-to-arbitrary-functions-in-ImageJ-tp5020273p5020312.htmlCan someone explain how I would go about this? Where would this function be
called from? Where in the original code are these parameters requested and
thus need the NaN be returned?
Thanks in advance,
Niels
--
Sent from:
http://imagej.1557.x6.nabble.com/--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html