[GENERAL INFORMATION]
Function Name=HyperbolaMod
Brief Description=Modified hyperbola function
Function Source=fgroup.HyperbolaMod
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=T1,T2
Meanings=amplitude,unknown
Lower Bounds=--,--
Upper Bounds=--,--
Number Of Significant Digits=


[FORMULA]

y = x/(T1*x+T2)


[CONSTRAINTS]



[CONSTANTS]


[Parameters Initialization]
 
//smooth(x_y_curve, 2);
sort(x_y_curve);
if( fabs(xatymax(x_y_curve)-xatymin(x_y_curve))<(max(x_data)-min(x_data))*2/3 ) {
   T1=(yatxmin(x_y_curve)+yatxmax(x_y_curve))/2.0;
   T2=-T1*(xatymin(x_y_curve)+xatymax(x_y_curve))/2.0;
}
else {
   double dy1=Curve_yfromX(&x_y_curve,0.9*min(x_data)+0.1*max(x_data))-yatxmin(x_y_curve);
   double dy2=yatxmax(x_y_curve)-Curve_yfromX(&x_y_curve,0.1*min(x_data)+0.9*max(x_data));
   if( fabs(dy1)<fabs(dy2) ) {
      T1=yatxmin(x_y_curve);
      T2=-T1*max(x_data);
     }
   else {
      T1=yatxmax(x_y_curve);
      T2=-T1*min(x_data);
     }
      
}



[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

