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
 Editing nonlinear fitting curve
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

elyesmab

France
2 Posts

Posted - 09/22/2008 :  1:08:59 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi,

I need to fit plot by this curve :
y = A*|x-xc|^pl, if x<xc
y = B*|x-xc|^pu, if x>xc


(Actually the problem is simplier, because I know that pl=1 and pu=1/2, and I think that xc is about A/2B)

On origin7, there is already a nonlinear curve wich is not to far :
Power2
y = A*|x-xc|^pl, if x<xc
y = A*|x-xc|^pu, if x>xc


Is somebody has an idea on the way I had to edit the program to obtain my fit
y = A*|x-xc|^pl, if x<xc
y = B*|x-xc|^pu, if x>xc


or at least

y = A*|x-xc|, if x<xc
y = B*|x-xc|^0.5, if x>xc


Thanks by advance

Echo_Chu

China
Posts

Posted - 09/23/2008 :  04:30:12 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

To edit build-in functions, you need to change the function type first. That is, open POWER2.FDF, which is under <exe>\FitFunc\, in notepad

Change the line below

Function Type=Built-in ==> Function Type=User-Defined

And then open it in NLSF tool, in dialog, select Function: Edit. The function can be editted now.

Echo
OriginLab Corp

Go to Top of Page

elyesmab

France
2 Posts

Posted - 09/25/2008 :  12:07:19 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Ok thank you Echo.

I will try, and if I have some problems with the editing language I will ask here.

BW

Edited by - elyesmab on 09/25/2008 12:09:52 PM
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