[General Information]
Function Name = DoniachSunjic
Brief Description = Doniach Sunjic function
Function Source = OPFMFuncs.DoniachSunjic
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,w,a
Initial Values = --(V)
Meanings = Offset,Center,Height,FWHM,Asymmetry
Lower Bounds = --(X, OFF),--(X, OFF),--(X, OFF),--(X, OFF),--(X, OFF)
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]
y =  y0 + H*Cos[(Pi*a)/2 + (1 - a)*ArcTan[(x - xc)/w]]/(w^2 + (x - xc)^2)^((1 - a)/2)
where
xc = peak center
H = peak height
w = FWHM ( Full Width at Half- Maximum).
a  = Singularity Index or the asymmetry parameter (~ height of the peak)

[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 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]

xc = peak_pos(x_y_curve, &w, &y0, NULL, &H);
a = H;

[Origin C Function Header]


[Origin C Parameter Initialization Header]


[DerivedParameters]
