[General Information]

Function Name=SWeibull1 	; name show up in the select function dialog
Brief Description=Sigmoidal Weibull funciton, type 1
Function Type=Built-in		; source type, built-in, user-defined, external dll
Function Form=Expression	; function form;
Function Source=fgroup.SWeibull1
Number Of Parameters=4
Number Of Independent Variables=1
Number Of Dependent Variables=1


[Fitting Parameters]                        

Naming Method=user-defined
Names=A, xc, d, k
Lower bounds=0.0(X,ON),--,--,0.0(X,ON)
Upper bounds=--,--,--,--
Meanings=amplitude, center, power, coefficient

[Independent Variables]
x = 

[Dependent Variables]
y = 

[Constants]

[Formula]
y = A*( 1 - exp( -(k*(x-xc))^d ) )

[Constraints]


[Parameters Initialization]
sort( x_y_curve );
//smooth( x_y_curve, 2 );
A = max( y_data );
xc = xaty50( x_y_curve );
d = 1.1;
double xmin, xmax;
x_data.GetMinMax(xmin, xmax);
double range = xmax - xmin;
k = 1.0 / range;

[Initializations]

[After fitting]

[Controls]
General Linear Constraints=Off
Initialization scripts=Off
Scripts After fitting=Off
