Start a nonlinear curve fitting session for XYZ 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.
nlbeginz iz:=3 func:=gauss2D;
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 | iz |
Input XYZRange |
|
Specify the data to be fitted. |
Fitting Function Name | func |
Input string |
|
Specify the fitting function used to fit data. |
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 (e.g. Gaussian2D). 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 XYZ data. You can also customize the fitting settings with it.
//Prepare the data string fname$=system.path.program$ + "Samples\Matrix Conversion and Gridding\XYZ Random Gaussian.dat"; newbook; impasc; // import the data nlbeginz 3 Gauss2D tt; // fit the XYZ data with 2D Gaussian function nlfit; nlend 1 2; // Show the fitted parameters in a dialog.
nlfit, nlend, nlgui, nlpara, nlfn, nlbegin, nlbeginr, nlbeginm
Keywords:regression, NLFit