[General Information]

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


[Fitting Parameters]

Naming Method=user-defined
Names=y0,x0,A1,t1
Lower bounds=--,--,--,0.0(X,ON)
Upper bounds=--,--,--,--
Meanings=offset,center,amplitude,width


[Independent Variables]

x = 


[Dependent Variables]

y = 


[Constants]


[Formula]
y = y0 + A1*exp((x-x0)/t1)

[Constraints]

[Parameters Initialization]
x0 = min(x_data);
int sign;
t1 = get_exponent(x_data, y_data, &y0, &A1, &sign);
if (t1 < 0)
{
		int nSize = x_data.GetSize();
		y0 = y_data[0] + y_data[nSize-1] - y0;
		A1 = -sign * exp(A1+t1*(x_data[0]+x_data[nSize-1])-x0*t1);
		t1 = -1 / t1;
}
else
{
		t1 = 1 / t1;
		A1 = sign * exp(A1+x0/t1);
}

[Initializations]


[After fitting]


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