[General Information]

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


[Fitting Parameters]

Naming Method=user-defined
Names=a,b,c
Lower bounds=--,--,--
Upper bounds=--,--,--
Meanings=asymptote,response range,rate


[Independent Variables]

x =


[Dependent Variables]

y =


[Constants]


[Formula]

y = a-b*c^x

[Constraints]


[Parameters Initialization]

int sign;
c = exp(get_exponent(x_data, y_data, &a, &b, &sign));
if (c>=1)
{
		int nSize = x_data.GetSize();
		a = y_data[0] + y_data[nSize-1] - a;
		b = sign * exp(b) * pow(c, x_data[0]+x_data[nSize-1]);
		c = 1/c;
}
else
{
		b = - sign * exp(b);
}

[Initializations]


[After fitting]


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