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
 Fitting 1 independent and 2 dependent variables

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
liam12345 Posted - 12/18/2014 : 9:10:15 PM
Origin Ver. and Service Release (Select Help-->About Origin): 9.1.0
Operating System: Win8 (Parallels)

Hello!

I'm trying to use OriginPro9.1 for curve fitting. My model has a single independent variable (x), two dependent variables (y1, y2), and 10 shared parameters (v1, v2,...) to be fitted. I defined my function using the Function Builder:

-->Explicit
-->Equations
y1 = f(x, v1,v2,...)
y2 = f(x, v1,v2,...)
The "quick check" feature returns the correct values at all x

Here's the problem: When I attempt to fit my experimental data, only x-values at which both y1 and y2 have a defined value are included during the fit. As such, the fit excludes a large portion of the y2 values (which are experimentally assessable long after the y1). To get the correct parameters, the FULL set of data must be fitted simultaneously.

I have tried any number of ways to select my data in the appropriate way, but nothing seems to work.


Any help is greatly appreciated!

Li
2   L A T E S T    R E P L I E S    (Newest First)
liam12345 Posted - 12/19/2014 : 3:14:45 PM
Thank you! That fixed my problem. :)
JacquelineHe Posted - 12/19/2014 : 04:49:12 AM
Hi,

I suggest you can set you dataset to X1Y1X2Y2, and try to use Global Fit.

If you use the same function for y1 and y2, you can use global fitting with parameter sharing. Please refer to this help page:
http://www.originlab.com/doc/Tutorials/Fitting-Global


If you use the different function for y1 and y2, you can use global fit for different dunctions with shared parameters.
1. When create functions, set independent variable:x, dependent variables:y, parameters:v1, v2,... and add parameters "s"

2. Type the expression which contained formula of function(1) and function(2) in the function body box:
s*function(1)-(s-1)*function(2)
The parameter s is a switch for global fitting, if s=1, the function(1) is used for fitting, if s=0, function(2) is used for fitting. The value of s will be controled in the following fitting procedure
Then, click Finish.

3. In NLFit dialog, go to the Data Selection Page, Select Global Fit mode from the Multi-Data Fit Mode drop-down list.

4. Go to the Parameters tab. Check on the Share check box for the parameters you need to share, and check on the Fixed check box for "s" and "s_2", and set "s" value to 1, "s_2" value to 0.

5.Click the Fit button to fit curves.


And the detail tutorial is sent to you by email. Please check it.

Thanks
Jacqueline
Originlab

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