[General Information]

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


[Fitting Parameters]                        

Naming Method=user-defined
Names=A
Lower bounds=--
Upper bounds=--
Meanings=cofficient

[Independent Variables]
x = 

[Dependent Variables]
y = 

[Constants]

[Formula]

y = 1 - 1/(x^A)

[Constraints]

[Parameters Initialization]
sort( x_y_curve );
//smooth( x_y_curve, 2 );
x_y_curve = ln( 1 / ( 1 - x_y_curve ) );
Dataset dx;
x_y_curve.AttachX(dx);
dx = ln(dx);
double coeff[2];
fitpoly( x_y_curve, 1, coeff);
A = coeff[1];

[Initializations]

[After fitting]

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