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 2 eqns to 2 indep.data sets; shared params
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

aeolian1

Germany
Posts

Posted - 02/19/2008 :  10:42:22 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 6.1
Operating System: XP

Hello,

I looked through related topics on the Forum, but couldn't find a recent answer that detailed the exact syntax I need:

I would like to simultaneously fit one data set to one fit function and a second data set to a second fit function, with 5 parameters shared between the functions. That is, I have a data set (x1,y1) which should be fitted to function f1, and a data set (x2,y2) which should be fitted to function f2, with parameters P1-P5 all shared; the x-values in each data set are totally different. Could you please tell me the *exact* syntax for defining such a "fitting conglomerate"? In the function definition section, I tried using

User-def. param. names: W1, W2, W3, W4, W5
Indep. variables: x1, x2
Dependent variables: y1, y2
Under the "form" I selected "Equations" and typed in the following function definitions:
y1 = f1(x1, W1, W2, W3, W4, W5);
y2 = f2(x2, W1, W2, W3, W4, W5)

but this gave the error "Function definition is incorrect." Could you please tell me where I am going astray?

Thank you very much!!


P.S. (not as urgent a question) I noticed a while back that once Origin generates more than 99 simulated curves of the type "nlsf_b", things seem to go haywire (and that deleting the generated curves doesn't help, since Origin keeps numbering sequentially). Wondering along the same lines, will I have a problem once I try to define user100? I currently have 90-some user-defined functions, so this will happen soon; unfortunately, I need all of these functions...

Echo_Chu

China
Posts

Posted - 02/19/2008 :  9:01:47 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

x1, x2 and y1, y2 are our system variables. They can not be used as independent/dependent variables in fitting function.

Could you try xx1, xx2, yy1 and yy2 insteadly?

Echo
OriginLab Corp
Go to Top of Page

suikou

Brazil
Posts

Posted - 03/02/2008 :  8:08:56 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You may try Auto2Fit (1stOpt), it is quite easy to solve the problems like "shared params".
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