Start a nonlinear curve fitting session for matrix data
X-Function not designed for Auto GetN Dialog. This feature is for OriginPro only.
This feature is updated in 8.0 SR5. For more details, please refer to Release Notes.
nlbeginm func:=Gauss2D; // Fit the active matrix data with a 2D Gaussian function.
Please refer to the page for additional option switches when accessing the x-function from script
Display Name |
Variable Name |
I/O and Type |
Default Value |
Description |
---|---|---|---|---|
Input Matrix | im |
Input MatrixObject |
|
Specify the matrix data to be fitted. |
Fitting Function Name | func |
Input string |
|
Specify the fitting function. |
nltree |
Input/Output TreeNode |
|
This is the tree with which you can customize the settings of the fitting such as parameter values, standard error. For more details, please refer to here. | |
Number of Replicas | replica |
Input int |
|
Specify the number of replicas. Enter a non-zero value if you want to fit your data to a built-in peak function by replicating the function for each peak. Each of function may have different parameter values. Your data should display multiple peaks of the same general form. If the function you have selected does not support replicas, this is disabled. |
Dialog Theme | theme |
Input string |
|
Specify a theme. The settings saved in it will be loaded to customize the fitting. |
Notation of Parameters | pnotation |
Input int |
|
Specify the notation of parameters in the output tree.
Option list:
|
Parameter Initialization | init |
Input int |
|
Specify the status of parameter initialization. Option list:
|
How to Initialize the NLFit Object | option |
Input int |
|
Specify how to initialize the NLFit Object.
Option list:
|
Start a nonlinear surface fitting session from matrix data. You can customize the fitting settings and the parameter initilization.
This example fits the data in a matrix with a 2D Gaussian function and generate the result report.
//Prepare the data string fn$=system.path.program$ + "Samples\Matrix Conversion and Gridding\2D Gaussian.ogm"; doc -a %(fn$); // fit the matrix data with 2D Gaussian and generate report nlbeginm func:=Gauss2D; nlfit; nlend 1 2;
nlfit, nlend, nlgui, nlpara, nlfn, nlbegin, nlbeginz, nlbeginr
Keywords:regression, NLFit