T O P I C R E V I E W |
hauli |
Posted - 03/23/2006 : 08:44:10 AM 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
|
1 L A T E S T R E P L I E S (Newest First) |
greg |
Posted - 03/23/2006 : 11:38:39 AM 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.
|
|
|