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 non linear curve 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

Boubera

Portugal
2 Posts

Posted - 01/27/2016 :  1:58:37 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hello

I defined a curve fitting with the following equation:

y = FthN + (Fth1-FthN)*exp(-k*(x-1))

So I need to compute FthN, Fth1, k.

I used the following parameter settings:

InitialValues = --(V),--(V),--(V)
Meanings = saturation threshold,single-shot threshold,accumulation factor
LowerBounds = 0.000000(X, On),0.000000(X, On),0.000000(X, On)
UpperBounds = --(X, Off),--(X, Off),--(X, Off)
NamingMethod = User-Defined
NumberOfSignificantDigits = -1,-1,-1


and parameter initialization:
Fth1 =max(y_data);
FthN = min(y_data);

and the Function form is Origin C.

This fitting fits pretty fine a first set of X and Y values I have and if I introduce the Y_err values, it keeps working fine. However, for a second set of XY values (shown in the image below), the fitting does not converge to the points IF I plot the values with the the Y-error/uncertainty (which is of about 5 to 8%). The final fitting of these values is the same as that of after one iteration.

Can anyone help me find the problem?


Thanks in advance!

SeanMao

China
288 Posts

Posted - 01/28/2016 :  03:21:28 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

I did a sample fit using the function you mentioned and there is no problem when I fit data with Y errors.

Would you mind sending your OPJ file to tech@originlab.com so that I can try to reproduce your problem on my side?

Regards!

Sean

OriginLab Tech.
Go to Top of Page

SeanMao

China
288 Posts

Posted - 01/29/2016 :  02:20:07 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

The reason for this is that you have fewer data points on the start part and the weighting of the start part is smaller compared with the tail part where the error bars are smaller, so that the start part will be less considered during fitting.

The solution is to use better initial values, we have deduced a set a initial values using built-in ExpDec1 fitting function and after inserted into your case, it worked well now.

Fth1 = 0.606
FthN=0.29
k = 0.12

Regards!

Sean
Go to Top of Page

Boubera

Portugal
2 Posts

Posted - 01/29/2016 :  09:21:50 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks a lot Sean, it worked!

Regards
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