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
 LabTalk Forum
 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
egonnelli Posted - 10/04/2012 : 5:50:01 PM
Hello,

I am in doubt about the "Parameters Initialization" from the "Holliday Model" Built Function. The question is understand this function and apply the same script for the "Parameters Initialization" to another equation.

The Holliday Model function is in the form: "y=1/a+b*x+c*x^2" and the script for initialization is:

------------------------------------------------------

sort(x_y_curve);
smooth(x_y_curve);
x_y_curve = 1.0 / x_y_curve;
double coeff[3];
fitpoly( x_y_curve, 2, coeff);
a = coeff[0];
b = coeff[1];
c = coeff[2];


-------------------------------------------------------

Now my question,

If I want to Apply this script for another equation, in this case:

"y = K/(a+b*x^2+c*x^4)+ T; " (It looks like the above equation, but substituting "1.0" by K. And changing the degree of the denominator polynomial for 4th. Plus a constant "T")

What is the new script in these conditions?




Thank you very much,

Eduardo
1   L A T E S T    R E P L I E S    (Newest First)
egonnelli Posted - 10/04/2012 : 8:21:17 PM
Another thing,

What is the logic in the Initialization Parameters script, because in the Holliday1 function, y=a/(a+b*x+c*x^2), the script is:

sort( x_y_curve );
smooth( x_y_curve );
x_y_curve = 1.0 / x_y_curve;
double coeff[3];
fitpoly( x_y_curve, 2, coeff);
a = 1 / coeff[0];
b = a * coeff[1];
c = a * coeff[2];

Note that,in the case of Holliday function, y=1/(a+b*x+c*x^2), the script is simpler than the Holliday1


sort( x_y_curve );
smooth( x_y_curve );
x_y_curve = 1.0 / x_y_curve;
double coeff[3];
fitpoly( x_y_curve, 2, coeff);
a = coeff[0];
b = coeff[1];
c = coeff[2];

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