[General Information]

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


[Fitting Parameters]

Naming Method=user-defined
Names=p1, p2, p3, p4
Lower bounds=--,--,--,--
Upper bounds=--,--,--,--
Meanings=coefficient,unknown,offset,coefficient


[Independent Variables]

x = 


[Dependent Variables]

y = 


[Constants]


[Formula]
y = p1*exp(-x/p2) + p3 + p4*x

[Constraints]
p2 != 0

[Initializations]


[Parameters Initialization]
p3 = min( y_data );
x_y_curve = x_y_curve - p3;
double coeff[3];
fitpoly( x_y_curve, 2, coeff, 2, 2);
p4 = coeff[1];
x_y_curve = ln( x_y_curve );
fitpoly( x_y_curve, 1, coeff, 1, 2);  
p1 = exp( coeff[0] );
p2 = -1.0 / coeff[1];

[After fitting]


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

