[General Information]

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


[Fitting Parameters]                        

Naming Method=user-defined
Names=a,b, d, k
Lower bounds=0.0(X,ON),0.0(X,ON),--,0.0(X,ON)
Upper bounds=--,--,--,--
Meanings=unknown, unknown, power, coefficient

[Independent Variables]
x = 

[Dependent Variables]
y = 

[Constants]

[Formula]
y = a - (a-b)*exp( -(k*x)^d )

[Constraints]
a > b > 0                               


[Parameters Initialization]
sort( x_y_curve );
//smooth( x_y_curve, 2 );
a = max( y_data );
b = min( y_data );
d = 1.0;
double xmin, xmax;
x_data.GetMinMax(xmin, xmax);
double range = xmax - xmin;
k = 2.0 / range;

                               
[Initializations]

[After fitting]

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