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
 sharing fit parameters

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
chad4phys Posted - 01/14/2015 : 3:10:30 PM
I am trying to fit a workbook of columns showing a resonance slice with a Gaussian fit (with one replica).

nlbegin iy:=slice func:=Gauss init:=enable nltree:=param replica:=1 option:=init_all;

my problem is i need to have the area of the two Gaussians comprising the fit to be equal to one another. I've got it to work where they are independent but i can't get them to be equal.

also is there a was to get the residuals of the fits in a different workbook?
1   L A T E S T    R E P L I E S    (Newest First)
SeanMao Posted - 01/15/2015 : 03:30:35 AM
Hi,

Can you try the code below to see whether problem get solved:

nlbegin iy:=col("slice") func:=Gauss init:=enable nltree:=param replica:=1  option:=init_all;
param.s_A=1; // Share Area between two peaks, "s" stands for share, 
             // "A" stands for parameter Area
nlfit;
nlgui gg 1; //get the gui output to a tree named gg
gg.output.residual.book$=<new>; //output residual data to new book
nlgui gg 0; //update changes back to gui tree
nlend 1 1;


Regards!

Sean

OriginLab Tech. Service

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