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 for Programming
 Forum for Origin C
 Creating a new Parameters Initialization Script

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
mwmarmw Posted - 07/05/2021 : 07:13:09 AM
Hello, I am doing NLCF. My question is how do I set up parameter initialization for a function of the following form:
y=k*(x^c)+l*(x^d)+a*(1-exp(-b*x))

I tried something like that:
sort( x_y_curve );
//smooth( x_y_curve, 2 );
Dataset dx;
x_y_curve.AttachX(dx);
dx = ln(dx);
x_y_curve = ln( x_y_curve );
Dataset coeff;
coeff.SetSize(2);
fitpoly( x_y_curve, 1, coeff);
k= exp( coeff[0] );
c = coeff[1];

coeff.SetSize(3);
fitpoly( x_y_curve, 1, coeff);
l = exp( coeff[0] );
d = coeff[1];

int sign;
double a1;
b = -get_exponent_cuv(x_y_curve, &a1, &a, &sign);
a = (a1-sign*exp(a)) / 2;


but there is definitely some error in it (maybe in a different place of the function being built?), Because although the curve fits well, the parameters obtained have undefined values.

I will appreciate any help
1   L A T E S T    R E P L I E S    (Newest First)
Chris D Posted - 07/06/2021 : 12:11:14 PM
Hi,

Can you submit a support ticket about this and please provide a dataset for use to test with.

https://www.originlab.com/restricted/support/index.aspx?c=3


Thanks,
Chris Drozdowski
Originlab Technical Support

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