[General Information]
Function Name=Lanczos3
Brief Description=NIST lanczos3
Function Source=fgroup.Lanczos3
Function Type=Built-in
Function Form=Expression
Number Of Parameters=6
Number Of Independent Variables=1
Number Of Dependent Variables=1


[Fitting Parameters]
Naming Method=User-Defined
Names=b1,b2,b3,b4,b5,b6
Meanings=?
Initial Values=--(V)
Lower bounds=--,0.0(X,OFF),--,0.0(X,OFF),--,0.0(X,OFF)
Upper bounds=--,--,--,--,--,--
Number Of Significant Digits=


[Formula]
y = b1 * exp(-b2 * x) + b3 * exp(-b4 * x) + b5 * exp(-b6 * x) ;


[Constraints]



[Constants]


[Parameters Initialization]
	// get lt var and set values 
	double setpar;
	LT_get_var("setpar", &setpar);
	if( 0 == setpar)
	{
		b1 = 1.2;
		b2 = 0.3;
		b3 = 5.6;
		b4 = 5.5;
		b5 = 6.5;
		b6 = 7.6;
	}
	else if(1 == setpar)
	{
		b1 = 0.5;
		b2 = 0.7;
		b3 = 3.6;
		b4 = 4.2;
		b5 = 4.0;
		b6 = 6.3;
	}
	else
	{
		b1 = 0.086816415;
		b2 = 0.954981015;
		b3 = 0.844007775;
		b4 = 2.951595183;
		b5 = 1.58256859;
		b6 = 4.986356508;
	}
		//Code to be executed to initialize parameters


[Initializations]



[After Fitting]



[On Param Change]



[Independent Variables]
x=


[Dependent Variables]
y=


[Controls]
General Linear Constraints=On
Initialization Scripts=On
Scripts After Fitting=Off
Number Of Duplicates=N/A
Duplicate Offset=N/A
Duplicate Unit=N/A
Generate Curves After Fitting=Yes
Curve Point Spacing=Uniform on X-Axis Scale
Generate Peaks After Fitting=Yes
Generate Peaks During Fitting=Yes
Generate Peaks with Baseline=Yes
Paste Parameters to Plot After Fitting=Yes
Paste Parameters to Notes Window After Fitting=Yes
Generate Residuals After Fitting=No
Keep Parameters=No
Enable Parameters Initialization=0
Compile On Param Change Script=1


[Compile Function]
Compile=0
Compile Parameters Initialization=1
On Param Change Scripts Enabled=N/A




[Origin C Parameter Initialization Header]
#include <origin.h>

// Add your special include files here.
// For example, if you want to use functions from the NAG library, 
// add the header file for the NAG functions here.

// Add code here for other Origin C functions that you want to define in this file,
// and access in your parameter initialization.

// You can access C functions defined in other files, if those files are loaded and compiled 
// in your workspace, and the functions have been prototyped in a header file that you have 
// included above. 
	
// You can access NLSF object methods and properties directly in your function code.
// You should follow C-language syntax in defining your function. 
// For instance, if your parameter name is P1, you cannot use p1 in your function code. 
// When using fractions, remember that integer division such as 1/2 is equal to 0, and not 0.5
// Use 0.5 or 1/2.0 to get the correct value.

// For more information and examples, please refer to the "User-Defined Fitting Function" 
// section of the Origin Help file.


