2.4.16 nlbeginor
Contents
Menu Information
Analysis: Fitting: Nonlinear Implicit Curve Fit...
Brief Information
Start a nonlinear implicit curve fitting session, and work on functions with multiple variables(>=3)
Additional Information
Minimum Origin Version Required: 2022 (Pro Only)
X-Function not designed for Auto GetN Dialog.
Command Line Usage
nlbeginor irng:=(1,2,3) func:=Ellipsoid; //initialize to fit data with column 1 to 3 as Y with user-defined function
nlbeginor irng:=(1,2,3) theme:=MyTheme; //initialize to fit data with column 1 to 3 as Y with saved theme file
X-Function Execution Options
Please refer to the page for additional option switches when accessing the x-function from script
Variables
| Display Name |
Variable Name |
I/O and Type |
Default Value |
Description |
|---|---|---|---|---|
| Input | irng |
Input Range |
|
The data to be fitted |
| Fitting Function Name | func |
Input string |
|
The fitting function used to fit data |
| NLFit Tree | nltree |
Input/Output TreeNode |
|
Tree containing the information of fitting such as parameter values, standard error, etc. |
| Fitting Mode | mode |
Input int |
|
The method to treat the input data for fitting.
Option list:
|
| Dialog Theme | theme |
Input string |
|
The theme is used to store the special settings that user often use. |
| Notation of Parameters | pnotation |
Input int |
|
Notation of parameters in the output tree.
Option list:
|
| Parameter Initialization | init |
Input int |
|
Specify the status of Parameter Initialization.
Option list:
|
| Global Weight Method | weight |
Input int |
|
Option list:
|
| How to Initialize the NLFit Object | option |
Input int |
|
Option list:
|
Description
Start a nonlinear implicit fitting session, including option settings and parameter initialization.
The nltree is a TreeNode variable, which can control many fitting settings and allows you to read fitting results such as the parameter values, standard error, etc.
For details please refer to this.
Note that only the fitting functions under the Implicit category in Fitting Function Organizer are available with this x-function.
Algorithm
The nonlinear implicit fitting uses the orthogonal distance regression (ODR) iteration algorithm.
Reference
"J. W. Zwolak, P.T. Boggs, and L.T. Watson, ``Algorithm 869: ODRPACK95: A weighted orthogonal distance regression code with bound constraints, ACM Transactions on Mathematical Software Vol. 33, Issue 4, August 2007."
Examples
This example shows to fit an implicit ellipse function with X Y error.
string fn$=system.path.program$ + "Samples\Curve Fitting\Ellipsoid.dat"; newbook; impasc fname:=fn$; nlbeginor irng:=(1,2,3) func:=Ellipsoid; // This function is a user-defined function nlfit; nlend 1 1;
The parameter control in nlbeginor is similar to nlbegin, you could refer to more examples.
Related X-Functions
nlbegin nlfit nlend nlpara nlbegino
Keywords:regression, NLFit