[GENERAL INFORMATION]
Function Name=Lorentz
Brief Description=Lorentzian peak function
Function Source=fgroup.Lorentz
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,area
Lower Bounds=--,--,0.0(X,ON),--
Upper Bounds=--,--,--,--
Number Of Significant Digits=


[FORMULA]
y = y0 + (2*A/PI)*(w/(4*(x-xc)^2 + w^2))


[CONSTRAINTS]



[CONSTANTS]


[Parameters Initialization]
sort(x_y_curve);
smooth(x_y_curve);
y0 = yatxmin( x_y_curve );
w = fwhm( x_y_curve, y0 );
A = area( x_y_curve, y0 );
if ( A > 0 ) xc = xatymax( x_y_curve );
else xc = xatymin( x_y_curve );


[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


