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
 All Forums
 Origin Forum
 Origin Forum
 User defined function for fitting of data!!

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
coffeezombie Posted - 10/12/2011 : 09:29:28 AM
Origin Ver.: 8.0
Operating System: Windows XP

HI!! GUYS!!
I'd like to fit power like data with not built-in power function (y = (a*(1-x^b))^c )

Hence, I made user-defined function of y = [/b](a*(1-x^b))^c[/b]
If function is y = a*(1-x^b), It is simple. The problem is that I cannot find suitable code about variable c.
The detail of y =a*(1-x^b) is as follows.

sort(x_y_curve);
x_y_curve = ln(x_y_curve);
Dataset dx;
x_y_curve.AttachX(dx);
dx=ln(1-dx);
double coeff[2];
fitpoly(x_y_curve,1,coeff);
a=exp(coeff[0]);
b=coeff[1];


What should I do for it?
With best regards,
1   L A T E S T    R E P L I E S    (Newest First)
Sam Fang Posted - 10/19/2011 : 05:52:00 AM
From your script, it seems that your function is:

y=a*(1-x)^b


You should confirm that your power function is

y=(a*(1-x^b))^c


or


y=(a*(1-x)^b)^c


For the latter, over-parameterization exists, there is no unique solution and you should apply constraints.

Sam
OriginLab Technical Services

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000