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
 Forum for Origin C
 Lorentzian Fitting using NLSF

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
basarir Posted - 11/08/2006 : 4:37:16 PM
Origin Version (Select Help-->About Origin): Origin 7 SR4
Operating System: Win 98

Greetings,

I am pretty new to Origin C programming. I wrote a pretty simple script for Lorentzian fitting and I can extract the parameter values(Offset, Center, Width and Area) and std's very well, using nlsf.pn and nlsf.en respectively.
However, I can not get the result for the Height value.
Is there a way to retract that and its std from the NLSF?

Thank you
4   L A T E S T    R E P L I E S    (Newest First)
basarir Posted - 11/09/2006 : 10:14:05 AM
Thanks a lot for your fast replies Zachary, Erica and Larry

These were what I was looking for.

Onur
larry_lan Posted - 11/08/2006 : 9:37:40 PM
To calculate the error of H, you can use the following error propagation rule:


Larry
OriginLab Technical Services
erica-cn Posted - 11/08/2006 : 9:16:27 PM
Hi Onur Basarir

To get the result for the height value, you can try to calculate from the Lorentzian function. as follows:


Any more information, please feel free to contact us.

Erica Shang
OriginLab Technical Service

zachary_origin Posted - 11/08/2006 : 9:14:54 PM
For Height, you can use this function after you get the value of Center: double Data_table(double dX, Dataset* pdsYdata, Dataset* pdsXdata = NULL). In your case, the code will be something like this:

Dataset pdsYdata("Lorentzian_b"); // assume the second column of the workbook named Lorantzian is the Y dataset
Dataset pdsXdata("Lorentzian_a");// assume the first column of the workbook named Lorantzian is the X dataset
double dX = nlsf.p2;
double dPeakHeight = Data_table(dX, &pdsYdata, &pdsXdata);





Zachary
OriginLab Technical Services.


Edited by - zachary_origin on 11/08/2006 9:26:59 PM

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