"user-defined" curve fitting in a macro

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

"user-defined" curve fitting in a macro

David Goldenberg
Hi,
    I would like to include in a macro a curve fit to a non-standard
function, as implemented in the Analyze>Tools>Curve Fitting ... command.
To be clear, I want to include a specific function coded in the macro,
not prompt the user for a function.

I have figured out how to code curve fits to the pre-defined functions,
but I haven't found any documentation or examples that would allow me to
define a function within a macro.

Any help would be greatly appreciated.

David Goldenberg
--
Department of Biology
University of Utah
257 South 1400 East
Salt Lake City, UT  84112-0840

Telephone: (801) 581-3885
Fax:  (801) 581-2174

E-mail: [hidden email]
Lab web page: http://www.biology.utah.edu/goldenberg
Reply | Threaded
Open this post in threaded view
|

Re: "user-defined" curve fitting in a macro

Wayne Rasband
On Sep 2, 2009, at 8:10 PM, David Goldenberg wrote:

> Hi,
>    I would like to include in a macro a curve fit to a non-standard
> function, as implemented in the Analyze>Tools>Curve Fitting ...  
> command.
> To be clear, I want to include a specific function coded in the macro,
> not prompt the user for a function.
>
> I have figured out how to code curve fits to the pre-defined  
> functions,
> but I haven't found any documentation or examples that would allow  
> me to
> define a function within a macro.
>
> Any help would be greatly appreciated.

Use the Fit.* macro functions described at

    http://rsbweb.nih.gov/ij/developer/macro/functions.html#Fit

Here are some examples:

    http://rsb.info.nih.gov/ij/macros/examples/CurveFittingDemo.txt
    http://rsb.info.nih.gov/ij/macros/examples/UserDefinedCurveFits.txt
    http://rsb.info.nih.gov/ij/macros/examples/RodbardSigmoidFit.txt
    http://rsb.info.nih.gov/ij/macros/examples/ 
PlotSigmoidDerivatives.txt

-wayne
Reply | Threaded
Open this post in threaded view
|

Re: "user-defined" curve fitting in a macro

David Goldenberg
In reply to this post by David Goldenberg
Wayne,
    Thanks very much. That is just what I was looking for, and I
obviously hadn't looked hard enough for examples!
David

Wayne Rasband wrote:

--
Department of Biology
University of Utah
257 South 1400 East
Salt Lake City, UT  84112-0840

Telephone: (801) 581-3885
Fax:  (801) 581-2174

E-mail: [hidden email]
Lab web page: http://www.biology.utah.edu/goldenberg