[GENERAL INFORMATION]
Function Name=GaussMod
Brief Description=Exponentially modified Gaussian peak function for use in Chromatography
Function Source=fgroup.GaussMod
Function Type=Built-in
Function Form=Expression
Number Of Parameters=5
Number Of Independent Variables=1
Number Of Dependent Variables=1


[FITTING PARAMETERS]
Naming Method=User-Defined
Names=y0,A,xc,w,t0
Meanings=offset,amplitude,center,width,unknown
Lower Bounds=--,--,--,0.0(X,ON),0.0(X,ON)
Upper Bounds=--,--,--,--,--
Number Of Significant Digits=


[FORMULA]

double z = (x-xc)/w - w/t0;

y = y0 + A/t0 * exp(0.5*(w/t0)^2-(x-xc)/t0)*(erf(z/sqrt(2))+1)/2;

[CONSTRAINTS]



[CONSTANTS]


[Parameters Initialization]
sort(x_y_curve);
//smooth(x_y_curve, 2);
y0 = yatxmin( x_y_curve );
w = 0.5 * 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 );
t0 = 2.0;


[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=4
Peak Center=3
Peak Width=4
Peak Amplitude=2
