[General Information]

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


[Fitting Parameters]                        

Naming Method=user-defined
Names=A,B,C,D
Lower bounds=--,--,--,--
Upper bounds=--,--,--,--
Meanings=offset,cofficient,cofficient,cofficient

[Independent Variables]
x = 

[Dependent Variables]
y = 

[Constants]

[Formula]

y = A + B*x + C*x^2 + D*x^3

[Constraints]

[Parameters Initialization]
sort( x_y_curve );
smooth( x_y_curve );
double coeff[4];
fitpoly( x_y_curve, 3, coeff);  
A = coeff[0];
B = coeff[1];
C = coeff[2];
D = coeff[3];


[Initializations]

[After fitting]

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

