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
 Origin Forum
 Nonlinear fitting with interpolated curve
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

karvek

13 Posts

Posted - 05/22/2020 :  09:15:05 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Dear all,

I have a dataset that is peak-shaped, but rather than fitting a function using the nonlinear curve fitting, I perform an interpolation because I need perfect matching between the function and the points of the dataset.

Now, I have another dataset that is a superposition of the interpolated function (eventually scaled) plus another peak-shaped function.
I would like to use this knowledge on the originally interpolated function to find the other peak function that is hidden in the new dataset.

Is there any way I can perform a nonlinear curve fit to find the unknown peak-shaped function? Something like fitting a Gaussian + interpolated function?

Thanks for support.

snowli

USA
1398 Posts

Posted - 05/22/2020 :  3:13:03 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
How about using Analysis: Peaks and Baseline: Peak Analyzer?

Choose Fit Peaks as goal. On next page, specify Baseline Mode: Use Existing Dataset and specify the interpolated data as baseline.
Then the interpolated data will be removed from the data so you can fit to fit the peak of the data with baseline subtracted.

If I misunderstood, could you clarify?

Thanks, Snow
Go to Top of Page

karvek

13 Posts

Posted - 05/30/2020 :  05:18:39 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I know that the baseline have the same "shape" but I don't know how much is the integral, so I would like to have a scaling factor (a multiplier) as a free parameter of the fit.
Go to Top of Page

lkb0221

China
497 Posts

Posted - 06/01/2020 :  09:47:05 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
you can try setting up a custom fitting model (not sure if that would work or not). Something like:
Y = Scale * X + Gauss(X, y0, xc, w, A)
where X is your existing interpolated data; Scale, y0, xc, w & A are fitting parameters.

Edited by - lkb0221 on 06/01/2020 09:47:22 AM
Go to Top of Page

karvek

13 Posts

Posted - 06/05/2020 :  09:34:13 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
This last solution would be great to try.

Do you know how can I call "X" in OriginC to be any dataset/interpolated data and then run a nonlinear curve fitting?

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