[GENERAL INFORMATION]
Function Name=SRichards2
Brief Description=Sigmoidal Richards function, type 2
Function Source=fgroup.SRichards2
Function Type=Built-in
Function Form=Expression
Number Of Parameters=4
Number Of Independent Variables=1
Number Of Dependent Variables=1


[FITTING PARAMETERS]
Naming Method=User-Defined
Names=a, xc, d, k
Meanings=unknown, center, unknown, coefficient
Lower Bounds=0.0(X,ON),--,--,0.0(X,ON)
Upper Bounds=--,--,--,--
Number Of Significant Digits=


[FORMULA]

y = a*( 1 + (d-1)*exp(-k*(x-xc)) )^(1/(1-d))


[CONSTRAINTS]
#d != 1


[Parameters Initialization]
sort( x_y_curve );
//smooth( x_y_curve, 2 );
a = max( y_data );
xc = xaty50( x_y_curve );
d = xatymin( x_y_curve );
if ( ((xc - d) / xc) < 0.1 ) d = 0.5;
else d = 2.0;
double xmin, xmax;
x_data.GetMinMax(xmin, xmax);
double range = (xmax - xmin)/2;
k = 2.0 / range;


[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

