[GENERAL INFORMATION]
Function Name=Gaussian
Brief Description=Amplitude version of Gaussian Function
Function Source=OPFMFuncs.Gaussian
Function Type=Built-in
Function Form=Equations
Number Of Parameters=4
Number Of Independent Variables=1
Number Of Dependent Variables=1
Analytical Derivatives for User-Defined=Off

[FITTING PARAMETERS]
Naming Method=User-Defined
Names=y0,xc,A,w
Meanings=base,center,amplitude,FWHM
Initial Values=--(V)
Lower Bounds=--(X, OFF),--(X, OFF),--(X, OFF),0.0(X, ON)
Upper Bounds=--(X, OFF),--(X, OFF),--(X, OFF),--(X, OFF)
Number Of Significant Digits=


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


[CONSTRAINTS]



[CONSTANTS]


[Parameters Initialization]

xc = peak_pos(x_y_curve, &w, &y0, NULL, &A);
A *= 1.064467*w;

[INITIALIZATIONS]



[AFTER FITTING]



[ON PARAM CHANGE]



[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
Peak Center=2
Peak Width=4
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
Enable Parameters Initialization=1
Compile On Param Change Script=1


[COMPILE FUNCTION]
Compile=1
Compile Parameters Initialization=1
On Param Change Scripts Enabled=N/A


[ORIGIN C FUNCTION HEADER]



[ORIGIN C PARAMETER INITIALIZATION HEADER]



[Moments]			  
mz0 = A	 
mz1 = xc
mc2 = w * w /(8*ln(2))
mc3 = 0
mc4 = 3*w*w*w*w/(64*ln(2)*ln(2))
