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
 letting a constrained parameter vary

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
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.



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