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