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


[FORMULA]

y = y0 + A/(sqrt(2*PI)*w*x)*exp(-(ln(x/xc))^2/(2*w^2))


[CONSTRAINTS]


[Parameters Initialization]
sort(x_y_curve);
smooth(x_y_curve);
y0 = yatxmax( x_y_curve );
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;
}
Dataset xx;
x_y_curve.AttachX( xx );
xx = ln( xx );
w = fwhm( x_y_curve, y0 );
A = A * sqrt( 2 * pi ) * w * xc * exp( -w^2 / 2 );
[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=0
Duplicate Offset=2
Duplicate Unit=3


