

[General Information]
Function Name = SchulzFlory
Brief Description = Schulz Flory distribution Function
Function Source = fgroup.SchulzFlory
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
FunctionPrev = schulzflory


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


[Formula]
y = y0 + A*exp((xc-x)/w)*(x/xc)^(xc/w)


[Constraints]


[Parameters Initialization]

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

[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 = 3
Peak Center = 2
Peak Width = 3
Peak Amplitude=4
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
OnParamChangeScriptsEnabled = N/A




[Origin C Function Header]




[Origin C Parameter Initialization Header]


[Moments]
mz0 = exp(xc/w)*A*(w^(xc/w))*(xc^(1-xc/w))*gamma(xc/w)
mz1 = w^2*gamma(2+xc/w)/(xc*gamma(xc/w))
mc2 = -w^2*((w+xc)*Gamma(2+xc/w)-w*Gamma(3+xc/w))/(w*Gamma(xc/w))
mc3 = 1/Gamma(xc/w)*(2*(w + xc)^3*gamma(xc/w) + w^3/xc*(-3*(w + xc)*gamma(3 + xc/w) + w*gamma(4 + xc/w)))
mc4 = 1/Gamma(xc/w)*(-3*(w + xc)^4*gamma(xc/w) + w^3/xc*(6*(w + xc)^2*gamma(3 + xc/w) + w*(-4*(w + xc)*Gamma(4 + xc/w) + w*Gamma(5 + xc/w))))

