[GENERAL INFORMATION]
Function Name=Extreme
Brief Description=Extreme Function in Statistics
Function Source=fgroup.Extreme
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=y0,xc,w,A
Meanings=offset,Center,Width,Amplitude
Lower Bounds=--,--,0.0(X,ON),--
Upper Bounds=--,--,--,--
Number Of Significant Digits=


[FORMULA]
y = y0+A*exp(-exp(-z)-z+1)
z = (x-xc)/w


[CONSTRAINTS]


[CONSTANTS]


[Parameters Initialization]
sort(x_y_curve);
//smooth(x_y_curve, 2);
y0 = yatxmin( x_y_curve );
w = 0.42 * fwhm( x_y_curve, y0 );
A = area( x_y_curve, y0 );
if ( A > 0 )
{ 
   xc = xatymax( x_y_curve );
   A = max( y_data ) - y0;
}
else
{ 
   xc = xatymin( x_y_curve );
   A = min( y_data ) - y0;
}


[INITIALIZATIONS]



[AFTER FITTING]



[INDEPENDENT VARIABLES]
x=


[DEPENDENT VARIABLES]
y=


[CONTROLS]
General Linear Constraints=Off
Initialization Scripts=Off
Scripts After Fitting=Off
Number Of Duplicates=0
Duplicate Offset=2
Duplicate Unit=3
Peak Center=2
Peak Width=3
Peak Amplitude=4
