Repeating curve fitting

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

Repeating curve fitting

Tomm
Hi all,

I'd like to do curve fitting (Gaussian) following portion of data sequentially.
X0 column or X1 fits Y0 or Y1, respectively.

Using 'Analyze > tool > curve fitting', I need to copy and paste each data set (X0 and Y0 etc.) and press 'fit' in each time. But, I felt this is labor intensive.
Ideally, I think following steps are desirable.
1) copy and paste or select whole data set (X0, Y0,....Xn,Yn)
2) select a formula (Gaussian etc.)
3) fit
4) show log (parameter, R^2)

How should I do? Actually, I can't make 'macro' or something.
Thank you for any help you can provide.
--
X0 Y0 X1 Y1
0 284.6667 0 299.6667
1 288.1013 1 299.2249
2 291.3547 2 299.1506
3 293.5714 3 315.7436
4 292.9524 4 355.8777
5 294.8355 5 407.0848
6 301.0884 6 445.7436
7 316.4691 7 433.787
8 357.1476 8 388.9717
9 428.9456 9 341.6134
10 482.7743 10 311.0887
11 463.0056 11 296.9218
12 393.0612 12 295.7811
13 336.1955 13 303
14 312.2592
15 309.6848
16 312.9264
17 310.8962
18 304.5578
19 303.2084
20 307.3603
21 313
--
Kind regards,

Tom
Reply | Threaded
Open this post in threaded view
|

Re: Repeating curve fitting

Rocco D'Antuono
Hi Tom the built-in functions for fit are listed at this page (look for "Fit Functions"), but you need to open the editor and put this instruction in a macro:

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

Kind regards,
Rocco
Senior Microscopist
Crick Advanced Light Microscopy facility (CALM)
The Francis Crick Institute
1 Midland Road, NW1 1AT, London (UK)
https://roccodant.github.io/
Reply | Threaded
Open this post in threaded view
|

Re: Repeating curve fitting

Tomm
Thanks, Rocco. I anxious for making macro myself, however, i cannot do that now. Could anybody help me?
Reply | Threaded
Open this post in threaded view
|

Re: Repeating curve fitting

Tomm
Hi Rocco. I could make a Macro using "Fit functions" as you told and more functions. Thank you very much.