[General Information]
Function Name = Bigaussian
Brief Description = Bigaussian peak function
Function Source = OPFMFuncs.Bigaussian
Number Of Parameters = 5
Function Type = Built-in
Function Form = Equations
Path = 
Number Of Independent Variables = 1
Number Of Dependent Variables = 1
FunctionPrev = NewFunction

[Fitting Parameters]
Names = y0,xc,H,w1,w2
Initial Values = --(V)
Meanings = Base,Center,Height, Width, Width
Lower Bounds = --(X, OFF),--(X, OFF),--(X, OFF),0.0(X, ON),0.0(X, ON)
Upper Bounds = --(X, OFF),--(X, OFF),--(X, OFF),--(X, OFF),--(X, OFF)
Naming Method = User-Defined
Number Of Significant Digits = 

[Independent Variables]
x = 

[Dependent Variables]
y = 

[Formula]
if (x < xc)
	
y = y0 + H*Exp[-(x - xc)^2/(2*w1^2)]
	
else 
	
y = y0 + H*Exp[-(x - xc)^2/(2*w2^2)]



[Constraints]




[Initializations]






[After Fitting]






[Constants]

[Controls]
General Linear Constraints = off
Initialization Scripts =Off
Scripts After Fitting = off
Number Of Duplicates = 0
Duplicate Offset = 2
Duplicate Unit = 4
Peak Center=2
Peak Width=4
Peak Width 2=5
Peak Amplitude=3
Generate Curves After Fitting = Yes
Curve Point Spacing = Uniform on X-Axis Scale
Generate Peaks After Fitting = Yes
Generate Peaks During Fitting = Yes
Generate Peaks with Baseline = Yes
Paste Parameters to Plot After Fitting = Yes
Paste Parameters to Notes Window After Fitting = Yes
Generate Residuals After Fitting = No
Keep Parameters = No
Compile On Param Change Script = 1
Enable Parameters Initialization = 1

[On Parameter Change]





[Compile Function]
Compile = 1
Compile Parameters Initialization = 1.
OnParamChangeScriptsEnabled = 0.

[Parameters Initialization]

double cent;
double w;
xc = peak_pos(x_y_curve, &w, &y0, NULL, &H, &cent);
w1 = 0.42466 * (w - 2 * (cent-xc));
w2 = 0.42466 * (w + 2 * (cent-xc));

[Origin C Function Header]






[Origin C Parameter Initialization Header]






[DerivedParameters]



[Moments]
mz0 =  H*Sqrt(PI/2)*(w1+w2)
mz1 =  xc+(w2-w1) / Sqrt(PI/2)
mc2 =  (w1*w1-w1*w2+w2*w2)-2/PI*(w2-w1)^2
mc3 =  (w2-w1)*(3*w1*w2-w1*w1-w2*w2)/Sqrt(PI/2)+2*((w2-w1)/Sqrt(PI/2))^3
mc4 =  3*((w2)^5+(w1)^5)/(w1+w2)-3*(w1-w2)^4/(PI/2)^2-(w2-w1)^2*(2*w1*w1+6*w1*w2+2*w2*w2)/(PI/2)
