[GENERAL INFORMATION]
Function Name=BoxLucas2
Brief Description=a parameterization of Box Lucas Model.
Function Source=fgroup.BoxLucas2
Function Type=Built-in
Function Form=Expression
Number Of Parameters=2
Number Of Independent Variables=1
Number Of Dependent Variables=1


[FITTING PARAMETERS]
Naming Method=User-Defined
Names=a1, a2
Meanings=unknown,unknown
Lower Bounds=--,--
Upper Bounds=--,--
Number Of Significant Digits=


[FORMULA]
y = (a1/(a1-a2))*(exp(-a2*x) - exp(-a1*x))


[CONSTRAINTS]

[Parameters Initialization]
sort( x_y_curve );
//smooth( x_y_curve, 2 );
x_y_curve = ln( x_y_curve );
double coeff[2];
fitpoly( x_y_curve, 1, coeff);  
a2 = -coeff[1];
a1 = a2 * coeff[0] / ( coeff[0] - 1 );

[CONSTANTS]


[INITIALIZATIONS]



[AFTER FITTING]



[INDEPENDENT VARIABLES]
x=


[DEPENDENT VARIABLES]
y=


[CONTROLS]
General Linear Constraints=Off
Initialization Scripts=Off
Scripts After Fitting=Off
Number Of Duplicates=N/A
Duplicate Offset=N/A
Duplicate Unit=N/A

