[GENERAL INFORMATION]
Function Name=SineDamp
Brief Description=sine damp function
Function Source=fgroup.SineDamp
Function Type=Built-in
Function Form=Expression
Number Of Parameters=4
Number Of Independent Variables=1
Number Of Dependent Variables=1


[FITTING PARAMETERS]
Naming Method=User-Defined
Names=xc,w,t0,A
Meanings=center,width,decay constant,amplitude
Lower Bounds=--(I,Off),0(X,On),0(X,On),0(X,Off)
Upper Bounds=--(I,Off),--(I,Off),--(I,Off),--(I,Off)
Number Of Significant Digits=


[FORMULA]
y = A*exp(-x/t0)*sin(PI*(x-xc)/w)


[CONSTRAINTS]

[Parameters Initialization]
sort(x_y_curve);
smooth(x_y_curve);
A = max( y_data );
w = max( x_data ) - min ( x_data );
xc = min( x_data ) + w;
w = w / 50;
x_y_curve = ln( fabs( x_y_curve ) );
double coeff[2];
fitpoly( x_y_curve, 1, coeff, 2, 2);
t0 = ln( -5 / coeff[1] );


[CONSTANTS]


[INITIALIZATIONS]



[AFTER FITTING]



[INDEPENDENT VARIABLES]
x=


[DEPENDENT VARIABLES]
y=


[CONTROLS]
General Linear Constraints=Off
Initialization Scripts=Off
Scripts After Fitting=Off
Number Of Duplicates=N/A
Duplicate Offset=N/A
Duplicate Unit=N/A


