The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum
 Origin Forum
 how to do global fitting with Origin7?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
tqzhang@ja Posted - 11/08/2003 : 11:02:08 AM
Once I heard that Origin can do global fitting, so I want to know how? Thanks a lot.
By "global fitting", I mean a set of datasets share a common set of paraments. For example, there are 7 dataset of exponential decays, in form of "Ai+Bi*exp(-(t-t0)/tao))", i=1,2,3..7. Now I want to fit all the decays with same "tao" simultaneously. How to do this? And further, if I want to associate the "Bi"s of the decays, say I want them to meet a Gaussian form, Bi=C*exp(-(i-i0)^2/w^2), how to impose this condition in the fittings?

Edited by - tqzhang@ja on 11/08/2003 11:12:10 AM
1   L A T E S T    R E P L I E S    (Newest First)
Mike Buess Posted - 11/08/2003 : 12:15:25 PM
How to do this?
1> Open the Advanced Fitting tool and select or write your function.
2> Select Action->Dataset and pick the dependent and independent datasets for the first curve.
3> Check Fit Multiple Datasets at the bottom.
4> Click the Add Data button and select dependent/independent datasets for the second curve. Repeat for additional curves.
5> Double-click on tao in the Parameter Sharing list at the left to share it with all curves.
6> Select Action->Fit and initialize all parameters. Note that shared parameters such as tao are only listed once. Non-shared parameters are repeated for each curve (A1, A2, ...) so the subscript i (Ai, Bi) in is not needed in your equation.

How to impose this condition?
I'm not sure if this is the best way, but I'd use the explicit expression for Bi in the fitting function...

A + C*exp(-(i-i0)^2/w^2)*exp(-(t-t0)/tao))

C, i0 and w can be parameters or constants. If you choose to make them constants then enter their values on the Parameter Initialization tab (second button from right). i must be a parameter but it won't be varied. On the Parameter Initialization tab set the value of i for each curve (1, 2, 3, ...) and uncheck the Vary? box at the right.

You may be able to do all of this by script using the nlsf object. However, I haven't done much scripted fitting so someone else will have to tell you how.

Hope this helps.

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 11/08/2003 12:17:27 PM

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000