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
 forcing a fit
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Zuffy

Canada
Posts

Posted - 09/30/2006 :  4:49:03 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I was wandering if there was a way to force the fit of a nonlinear curve (such as an exponential decay) to pass through the origin. I really appreciate any help,

Thanks

easwar

USA
1965 Posts

Posted - 10/02/2006 :  3:57:06 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Zuffy,

You can do this by placing a linear constraint, if applicable to your equation.

Thus for example you are fitting with the ExpDec1 function, which is of the form
y=y0+A1*exp(-x/t1)
forcing the curve to go thru (0,0) would mean:
0=y0+A1

In the NLSF tool, use the menu Options->Constraints and in the edit box at bottom, enter:
A1+y0=0;
and then check the "Enabled" check box and continue to fit. This constraint should then force curve to go thru (0,0).

Note that only linear constraints are supported.

Easwar
OriginLab

Go to Top of Page

Zuffy

Canada
Posts

Posted - 10/03/2006 :  01:22:38 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks. Tried your method and it worked great.
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