[General Information]

Function Name=Hyperbl		; name show up in the select function dialog
Brief Description=Hyperbola funciton, also the Michaelis-Menten model in Enzyme Kinetics
Function Type=Built-in		; source type, built-in, user-defined, external dll
Function Form=Expression	; function form;
Function Source=fgroup.Hyperbl
Number Of Parameters=2
Number Of Independent Variables=1
Number Of Dependent Variables=1


[Fitting Parameters]

Naming Method=user-defined
Names=P1,P2
Lower bounds=--,--
Upper bounds=--,--
Meanings=vertical asymptote,horizontal asymptote


[Independent Variables]

x = 


[Dependent Variables]

y =


[Constants]


[Formula]

y = P1*x/(P2 + 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;

P1= dYAsympt;
P2= -dXAsympt;


[Initializations]


[After fitting]


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