[GENERAL INFORMATION]
Function Name=MnMolecular1
Brief Description=Monomolecular growth model
Function Source=fgroup.MnMolecular1
Function Type=Built-in
Function Form=Expression
Number Of Parameters=3
Number Of Independent Variables=1
Number Of Dependent Variables=1


[FITTING PARAMETERS]
Naming Method=User-Defined
Names=A1, A2, k
Meanings=offset,coefficient,coefficient
Lower Bounds=0.0(X,ON),0.0(X,ON),--
Upper Bounds=--,--,--
Number Of Significant Digits=


[FORMULA]
y = A1 - A2*exp(-k*x)


[CONSTRAINTS]
A1 > A2 > 0


[Parameters Initialization]

sort( x_y_curve );
smooth( x_y_curve );
A1 = yatasymt(x_y_curve); // max( y_data ); 
double ymid=(max(y_data)+min(y_data))/2.0;
if(A1>ymid) 
	x_y_curve = ln(A1 - x_y_curve);
else
	x_y_curve = ln(x_y_curve - A1);
double coeff[2];
fitpoly( x_y_curve, 1, coeff);  
A2 =(A1>ymid)? exp(coeff[0]) : -exp(coeff[0]);
k = -1.0 * coeff[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


