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 for Programming
 LabTalk Forum
 Multi datasets global fit with replicas for 8.6.

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
karlak Posted - 02/24/2012 : 12:37:32 PM
Origin Ver. and Service Release: OriginPro 8.6.0, b70
Operating System: Windows XP

Hi,

With Origin 7.0 Pro I used to fit multiple datasets, each with multiple gauss peaks (replicas).
It seems that it is not possible for Origin 8.6, replicas are grayed for multi dataset fitting. I need to share some parameters of respective datasets, the datasets are not identical, so I cannot use the concatenate fit. To fit the first dataset and supposed that the others would have the same peaks positions is not good approach. I tried LabTalk, but it does not work either.


int NbRep = 3; // No of replica
c = wks.ncols; // Nb of cols;
nlbegin iy:=(1, 3:$(c)) func:="gauss" nltree:=tt mode:=2 replica:=$(NbRep);

fit all datasets with one gauss peak only....

And only if I put one dataset

nlbegin iy:=(1, 3) func:="gauss" nltree:=tt mode:=2 replica:=$(NbRep);

fitting procedure use replicas, but not multiple dataset fitting


What is wrong? Thanks for help.


Karla
1   L A T E S T    R E P L I E S    (Newest First)
greg Posted - 02/24/2012 : 2:52:11 PM
The current design does not allow for Replica when fitting multiple datasets except in the case of Concatenated fitting.

Normally we would suggest the use of Batch Processing, but since you seem comfortable with script then use something like:

ty -mb 0; // override any message boxes with No
loop(ii,2,wks.ncols)
{
nlbegin iy:=[Book1]Sheet1!(1,$(ii))
func:=gauss
nltree:=nlt
replica:=3; // 4 peak Gauss
nlfit;
nlend out:=1;
}
ty -me 1; // Restore messages


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