[GENERAL INFORMATION]
Function Name=BWF
Brief Description=Breit-Wigner-Fano (BWF) line shape
Function Source = OPFMFuncs.BWF
Function Type = Built-in
Function Form=Equations
Number Of Parameters=5
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,H,w,q
Meanings=Base,Center,Height, Width, Asym
Initial Values=--(V)
Lower Bounds=--(X,OFF)
Upper Bounds=--(X,OFF)
Number Of Significant Digits=


[FORMULA]
y = y0 + H * (1 + (x - xc)/q/w)^2 / ( 1 + ((x - xc)/w)^2 )


[CONSTRAINTS]
/*Enter general linear constraints here*/


[CONSTANTS]


[Parameters Initialization]
/*Code to be executed to initialize parameters.*/

xc = peak_pos(x_y_curve, &w, &y0, NULL, &H);
w *= 0.85;
q = -2;

[INITIALIZATIONS]
/*Code to be executed before fitting, a good place for complicated initialization.*/


[AFTER FITTING]
/*Code to be executed after fitting, a good place for generating results.*/


[ON PARAM CHANGE]
/*Code to be executed when parameters 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=4
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=0


[ORIGIN C FUNCTION HEADER]



[ORIGIN C PARAMETER INITIALIZATION HEADER]



[Moments]
mz0 =  N.A.
mz1 =  N.A.
mc2 =  N.A.
mc3 =  N.A.
mc4 =  N.A.


