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 for Programming
 LabTalk Forum
 sharing fit parameters
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

chad4phys

USA
1 Posts

Posted - 01/14/2015 :  3:10:30 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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?

SeanMao

China
288 Posts

Posted - 01/15/2015 :  03:30:35 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
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