[GENERAL INFORMATION]
Function Name=CCE
Brief Description=Chesler-Cram Peak Function for use in chromatography
Function Source=fgroup.CCE
Function Type=Built-in
Function Form=Equations
Number Of Parameters=9
Number Of Independent Variables=1
Number Of Dependent Variables=1


[FITTING PARAMETERS]
Naming Method=User-Defined
Names=y0,xc1,A,w,k2,xc2,B,k3,xc3
Meanings=offset,center,amplitude,width,unknown,center,amplitude,unknown,center
Lower Bounds=--(I,Off),--(I,Off),--(I,Off),0.0(X,On),--(I,Off),--(I,Off),--(I,Off),--(I,Off),--(I,Off)
Upper Bounds=--(I,Off),--(I,Off),--(I,Off),--(I,Off),--(I,Off),--(I,Off),--(I,Off),--(I,Off),--(I,Off)
Number Of Significant Digits=


[FORMULA]
double z=x-xc1;
y = y0+A*(exp(-z*z/(2*w)) + (1 - 0.5*(1 - tanh(k2*(x-xc2)))) * B * exp(-0.5*k3*(abs(x-xc3) + (x-xc3))));


[CONSTRAINTS]



[CONSTANTS]



[Parameters Initialization]
xc1 = peak_pos(x_y_curve, &w, &y0, &A);
w *= 0.85;
if(A >= 0) A = sqrt(A);
	else A = -sqrt(abs(A));
xc2 = xc1 * 1.1;
xc3 = xc2 * 1.1;
k2 = 1.0;
B = 1.0;
k3 = 1.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=8
Peak Center=2
Peak Width=4
Peak Amplitude=3

[Compile Function]
Compile = 1