[General Information]

Function Name=Holliday1	; name show up in the select function dialog
Brief Description=extended Holliday Model
Function Type=Built-in		; source type, built-in, user-defined, external dll
Function Form=Expression	; function form;
Function Source=fgroup.Holliday1
Number Of Parameters=3
Number Of Independent Variables=1
Number Of Dependent Variables=1


[Fitting Parameters]

Naming Method=user-defined
Names=a,b,c
Lower bounds=--,--,--
Upper bounds=--,--,--
Meanings=coefficient,coefficient,coefficient

[Independent Variables]

x = 


[Dependent Variables]

y = 


[Constants]


[Formula]

y = a/(1 + b*x + c*x^2)

[Constraints]

[Parameters Initialization]
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];

[Initializations]


[After fitting]


[Controls]
General Linear Constraints=Off
Initialization scripts=Off
Scripts After fitting=Off

