Nonlinear Implicit Curve Fitting (Pro Only)

Origin's NLFit tool supports implicit fitting using the Orthogonal Distance Regression (ODR) algorithm, including fitting with X and/or Y error data.

NLFit Implicit Fit.png

To fit your data with implicit fitting functions, you may use the built-in functions of nonlinear implicit curve fitting, or create your own implicit fitting functions.

Fit with the Implicit Functions

To fit with an implicit function,

  1. Select from top menu Analysis:Fitting:Nonlinear Implicit Curve Fit to open the dialog.
  2. Select a function under the Implicit category.

Notes: Implicit fit functions use Orthogonal Distance Regression.

Mini Tutorial:Fit for Ellipse

  1. Import the Ellipse.dat file as single ASCII, which can be found under \Samples\Curve Fitting
  2. Highlight column A and B, select "Analysis:Fitting:Nonlinear Implicit Curve Fitting" to open the NLFit dialog
  3. Choose "Ellipse" as the function type
  4. Go to "Data Selection", make sure "Use Each Range's Setting" is chosen for Weight
  5. In "Data Selection", expand the "Input" branch, and further expand "Range 1"
  6. Under branch "x", choose "Arbitrary Dataset" for Weight, and choose column C(Weight X) as the dataset
  7. Do the similar for "y", this time choose column D(Weight Y) as the dataset
  8. Click "Fit" to fit the data and generate report sheet

Implicit Fit with More Than Two Variables

Please note the following when you carry out implicit fit with more than 2 independent variables:

  • It is required to have worksheet data as the input data, i.e. you cannot carry out the fitting from a data plot in this case.
  • Only the data type Fitted Point for Input Data is supported for all variables. To modify this setting in the NLFit dialog, go to the Settings taband select Fitted Curves. Expand the Fitted Curves Plot branch set Data Type of variable to be Fitted Point for Input Data.
  • It is not supported to generate a fitted curve automatically, however you could get the data for fitted curve in the report sheet.

Create a User-Defined Implicit Function for Fitting

To create your own implicit fitting function, you need to first open the Fitting Function Builder either by:

  1. Select Analysis:Fitting:Nonlinear Implicit Curve Fit to open the NLFit dialog.
  2. Select <New...> in the drop-down menu of Function.


Choose Tools:Fitting Function Builder or press F8.

When the Fitting Function Builder is open,

  1. Choose the Create a New Function radio button and click Next.
  2. Choose the Implicit radio button for Function Model.


  1. Select Tools:Fitting Function Organizer or press F9 to open the Fitting Function Organizer
  2. Create a new function under the Implicit category.

Note that you can only do implicit fitting with functions in the Implicit category, so you need to move any created implicit functions to the Implicit category in Fitting Function Organizer.

Refer to the Origin help file for how to define a user-defined fitting function.

This is a short tutorial showing how to create a user-defined implicit fitting function and fit data with it.

  1. Choose Tools:Fitting Function Organizer or press F9 to open the Fitting Function Organizer.
  2. Choose the Implicit category and click the New Function button.
  3. Type Hyperbolic as Function Name, set the Function Model to Implicit and Function Form as Equations.
  4. Type x,y in the Variables box, a,b,c,d,e in the Parameters box.
  5. In the Function Body, type
    Note that the value f is estimated as 0.
  6. Click Save to save the function and click OK to close the dialog.
  7. Prepare some test data following a hyperbolic trend and import into Origin. You can use the Simulate button in the Fitting Function Organizer to generate data with added noise.
  8. Set column A as x and column B as y.
  9. Select column A and B and choose Analysis:Fitting:Nonlinear Implicit Fitting to open the NLFit dialog.
  10. In the Function drop-down menu, choose Hyperbolic(User) and click Fit.
Note: Fitting with any User Defined function requires parameter initialization. A value of 1 for each parameter should be sufficient for a Hyperbolic function.