[GENERAL INFORMATION]
Function Name=OneSiteBind
Brief Description=One site direct binding.  Rectangular hyperbola, connects to isotherm or saturation curve.
Function Source=fgroup.Binding1
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=Bmax, k1
Meanings=top asymptote, median
Lower Bounds=--(I,Off),0(I,Off)
Upper Bounds=--(I,Off),--(I,Off)
Number Of Significant Digits=


[FORMULA]

y = Bmax * x / (k + x)


[CONSTRAINTS]



[Parameters Initialization]
sort(x_y_curve);
//smooth(x_y_curve, 2);

double dXAsympt,dYAsympt;
int nRes = ocmath_xatasymt(x_data.GetSize(), x_data, y_data, &dXAsympt);
if(nRes != OE_NOERROR) dXAsympt = 1.0;
nRes = ocmath_yatasymt(x_data.GetSize(), x_data, y_data, &dYAsympt);
if(nRes != OE_NOERROR) dYAsympt = 1.0;

Bmax = dYAsympt; // max( y_data );
k1 = -dXAsympt;  // xaty50( x_y_curve );

[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

