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
 Fit multiple functions to dataset
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

bababhai

Bahamas
2 Posts

Posted - 04/28/2016 :  03:24:47 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver.8 and Service Release (Select Help-->About Origin):
Operating System:windows



As shown in the image, I would like to fit one function to the data-set up to particular independent variable (x value), and also simultaneously fit other function to rest of the x values such that I get parameter values which will give reasonable fit for both function.

bubu

AmandaLu

439 Posts

Posted - 04/28/2016 :  04:38:55 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi bubu,

We have a tutorial of how to fit with Piecewise Functions:

http://www.originlab.com/doc/Tutorials/Fitting-Piecewise

Thanks,
Amanda
OriginLab Technical Service
Go to Top of Page

AmandaLu

439 Posts

Posted - 05/10/2016 :  06:13:52 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi bubu,

To ensure the two functions are consecutive at the intersection point, you will need to take the coordinates of the intersection (x_1, y_1) as parameters. So the two functions are transformed as follow:

Y = A*X+(y_1-A*x_1)
Y = y_1-exp(A*x_1/B)+exp(A*X/B)

If you already know x_1 value, you can fix it during fitting.

BTW, we will make an APP of fitting with piecewise function.

Thanks,
Amanda
OriginLab Technical Service
Go to Top of Page

bababhai

Bahamas
2 Posts

Posted - 05/11/2016 :  05:23:23 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you AmandaLu for the help.
Hope this will work.

Thanxx :D

bubu
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