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
 Help in Fitting Function Please
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

ahamer

Germany
6 Posts

Posted - 03/19/2014 :  06:19:02 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. 9.00 (32 bit) SR2 b87
Operating System: Win XP

Hello All,
Could you please help me, I want to use exponential fitting function to fit my Data, I found one built-in function but I want to make some changes in it. I tried but It does not work.
The function is : Exponential - ExpAssoc:
[[ Y=Y0 + A1(1-e^(-x/t1))+ A2(1-e^(-x/t2)) ]]
I want to change it to become like this:
[[ Y=Y0 + A1(1-e^(-x*t1))+ A2(1-e^(-x*t2)) ]]

could anyone help me with this, I also want it to start with initalization of parameters so the fitting will be fast.
Thanks in advance
Amer

zahraa

USA
52 Posts

Posted - 03/19/2014 :  09:42:43 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Amer,

To change up the built in function by replacing multiplying x in the last two columns instead of dividing, I went to Tools: Fitting Function Organizer. Here I expanded the Exponential category and located the ExpAssoc function. Then I right clicked on the function and selected Duplicate from the context menu. This will create a copy of the function called CopyofExpAssoc in the Exponential Category. Now you can edit the function in the right panel. Click on the little icon next to each box to make sure it compile. Then you can Save. When fitting your data simply use the new function. I am adding an image of your changed up function I used on some sample data.


If this does not work can you please explain how so? As in does the function not compile or does it not converge when you apply it to your data?

Thanks
Zahra

Originlab Technical Representative
Go to Top of Page

ahamer

Germany
6 Posts

Posted - 03/19/2014 :  1:01:24 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks
It works :)
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