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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Fitting 1 independent and 2 dependent variables
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

liam12345

2 Posts

Posted - 12/18/2014 :  9:10:15 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

JacquelineHe

287 Posts

Posted - 12/19/2014 :  04:49:12 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

liam12345

2 Posts

Posted - 12/19/2014 :  3:14:45 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you! That fixed my problem. :)
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000