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
 user defined exponential fitting
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

jeanett

Poland
3 Posts

Posted - 05/27/2012 :  4:58:56 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
hello,
i have a huge problem with fitting curve with given formula which looks:

This formula isn't in Origin functions and it needs user-defined tool. It is said that I need 3 or 4 parameters Ai and ti.
Here is the plot:

I'll be very grateful for any help.

Sam Fang

292 Posts

Posted - 05/30/2012 :  05:31:11 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I think you'd better fix t0 because overparameterization exists between t0 and Ai. You can also apply a constraint between parameters.

If you need 3 or 4 parameters Ai and ti, the fitting function can be defined as follows (4 parameters Ai and ti).

y=y0+A1*(1-exp(-(x-t0)/t1))+A2*(1-exp(-(x-t0)/t2))+A3*(1-exp(-(x-t0)/t3))+A4*(1-exp(-(x-t0)/t4));


Parameter Initialization can be defined,

t0 = min(x_data);
int sign;
t1 = get_exponent(x_data, y_data, &y0, &A1, &sign);
	
t1 = t2 = t3 = t4 = -1 / t1;
A1 = A2 = A3 = A4 = - sign * exp(A1 - t0/t1) / 4;
	
y0 = y0 - 4*A1;


Sam
OriginLab Technical Services
Go to Top of Page

jeanett

Poland
3 Posts

Posted - 06/01/2012 :  06:57:23 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
thanks a lot! it works! to make a thing easier i made a little change of ExpAssoc function
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