[General Information]

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


[Fitting Parameters]

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


[Independent Variables]

x =


[Dependent Variables]

y =


[Constants]


[Formula]

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

[Constraints]


[Parameters Initialization]
sort(x_y_curve);
smooth(x_y_curve);
Dataset dx;  	
x_y_curve = x_data/x_y_curve;  	
double coeff[3];
fitpoly(x_y_curve,2,coeff);
b=(3+(coeff[1]-coeff[2])/coeff[0])/2.0;
a=1.0/(b*coeff[0]);

[Initializations]


[After fitting]


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

