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
 letting a constrained parameter vary
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

hauli

Austria
Posts

Posted - 03/23/2006 :  08:44:10 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 7.5
Operating System: windows XP

Hi,

I am using the NLSF to fit my data to the function
y=100/(1+10^(((logECF-(1/p)*log10(F/(100-F)))-x)*p))
the parameters to fit are logECF and p

F is not really a parameter but should be constrained to values from 5 to 95 (step 5)

so what I want is to do a fit with F set fixed to 5, followed by a fit with F set to 10 and so on. For each fit the parameters worksheet should be stored

I want to perform the calculations programatically with Origin C, but I am new to programming, so please provide me some code or information on how to do it.

Thanks in advance

Hauli

greg

USA
1379 Posts

Posted - 03/23/2006 :  11:38:39 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Here is a LabTalk script which performs sequential fits of the active plotted dataset using the ExpDec1 function with specific values of the P1 parameter.

for(val=-20;val<=-10;val+=1) {
nlsf.init();
nlsf.begin();
nlsf.func$=ExpDec1;
nlsf.p1 = val;
nlsf.p2 = 20;
nlsf.p3 = 500;
nlsf.v1 = 0; // don't allow this parameter to vary
nlsf.fitData$=%C;
nlsf.iterate(100);
nlsf.xmode=0;
nlsf.end();
}

Once you have defined your function, the above could be easily adapted to OriginC.


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