Re: Extending user-defined equations in Fit.doFit
Posted by Barboriak, Daniel on Apr 19, 2011; 2:50pm
URL: http://imagej.273.s1.nabble.com/Extending-user-defined-equations-in-Fit-doFit-tp3684931p3684932.html
Hi All,
Thanks to Johannes, Dimiter and Michael Schmid (who replied to me off list) for their thoughts.
You are thinking several moves ahead, which is the right way to do it. My thought in using a user-defined equation in Fit.doFit was to demonstrate a proof of concept for a later plugin. This would certainly not be efficient. No question that for a truly useful tool that would tackle complex curve fitting problems, efficiency of the function evaluation is key.
I think whether this more efficient code was in the form of a Java plugin / Java code, Javascript and/or Jython, we could work with that.
My understanding is that at the moment there is no way to interface any efficient code solution so that it can be used by Fit.doFit in a macro script (correct me if I'm wrong). Assuming we were able to write an efficient code for function evaluation, would writing a plugin that would include this code and call the existing curve fitting code be easy / practical, or are there better ways to interface the function evaluation code with the curve fitting code?
Thanks again for your useful comments.
--db