Author |
Topic |
|
39273927
Germany
2 Posts |
Posted - 07/01/2017 : 11:34:09 AM
|
Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 2017 b9.4.1.354 (Academic) Operating System: Win 10 Home
Hello everyone,
I have some data that I want to fit with gaussian curves. One can easily see that my data is not symmetrical relative to Y axis. I want to fit each data set with a Gauss curve, determine each x_c (how far the Gauss peak is from x=0) and then move each curve by -x_c horizontally. In the end I want to have all my 10 curves aligned with Y axis. (see attached pictures)
I tried to use the Horizontal translate tool, but it moves all (!) data sets within certain X interval. It doesn't suit me because I want to move each data set by its own -x_c.
I could do 10 Gaussian fits, write down each x_c, copy my workbook somewhere like MS Excel and assign to each Y value the corresponding x_new = x_old - x_c, but then I will not be able to neatly plot all 10 curves at the same time because each set of Y values will have its own set of X values. A multi-Y plot can be made, but not multi-XandY. It would be terribly time consuming too.
Are there any better solutions?
|
|
JacquelineHe
287 Posts |
Posted - 07/03/2017 : 07:49:29 AM
|
Hi,
I simular a simple sample. For example Column A~D are the datasets need to fit. After fit two XY datasets, we get two xc value by "Copy" and "Paste Link" method to put them in the new column, and caluculte the value “xc2-xc1” by "Set Column Value" tool. And then caluculte the new X1 value.
Please refer to the following image:
Then save the workbook as a Analysis Template. (File:Save Workbook As a Analysis Template)
And use "Batch Processing" tool to get the new "X" values for other column.
About "Batch Processing" tool, please refer to http://originlab.com/doc/Origin-Help/Batch-Processing http://www.originlab.com/doc/Tutorials/Batch-Processing-Multiple-Datasets-using-Analysis-Template
Hope this information could help you.
Thanks Jacqueline OriginLab
|
|
|
|
Topic |
|
|
|