[General Information]

Function Name=YldFert1		; name show up in the select function dialog
Brief Description=Yeild-fertilizer model in Agriculture and Learning curve in psychology
Function Type=Built-in		; source type, built-in, user-defined, external dll
Function Form=Expression	; function form;
Function Source=fgroup.YldFert1
Number Of Parameters=3
Number Of Independent Variables=1
Number Of Dependent Variables=1


[Fitting Parameters]

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


[Independent Variables]

x = 


[Dependent Variables]

y = 


[Constants]


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

[Constraints]
k>0

[Parameters Initialization]
a = min( y_data );
x_y_curve = ln( x_y_curve - a );
double coeff[2];
fitpoly( x_y_curve, 1, coeff);  
b = exp( coeff[0] );
k = -1.0 * coeff[1];

[Initializations]


[After fitting]


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

