[General Information]

Function Name=PearsonVII	; name show up in the select function dialog
Brief Description=Pearson VII peak function
Function Type=Built-in		; source type, built-in, user-defined, external dll
Function Form=Expression	; function form;
Function Source=fgroup.PearsonVII
Number Of Parameters=5
Number Of Independent Variables=1
Number Of Dependent Variables=1


[Fitting Parameters]

Naming Method=user-defined
Names=y0,xc,A,w,m
Lower bounds=--,--,0.0(X,ON),0.0(X,ON),0.5(X,ON)
Upper bounds=--,--,--,--,170(X,ON)
Meanings=baseline,center,amplitude,width,profile shape factor


[Independent Variables]

x = 


[Dependent Variables]

y = 


[Constants]


[Parameters Initialization]

xc = peak_pos(x_y_curve, &w, &y0, &A);
w *= 0.85;
m = 1.0;

[Formula]

y = A * 2 * sqrt(m) * exp(gammaln(2^(1./m)-1)) / ( PI * w * exp(gammaln(m - 0.5)) ) * ( 1. + 4. * (2^(1./m)-1) / w^2 * (x - xc)^2 )^(-m)

[Constraints]
m != 0.5

[Initializations]


[After fitting]


[Controls]
General Linear Constraints=Off
Initialization scripts=Off
Scripts After fitting=Off
Duplicate Offset=2
Duplicate Unit=4
Peak Center=2
Peak Width=4
Peak Amplitude=3