2.1.7 addtool_quickfit

Menu Information

Gadgets: Quick Fit

Brief Information

Perform curve fitting on data plot within a region of interest

Additional Information

Minimum Origin Version Required: 8.1 SR2

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
Fit Mode mode

Input

int

0
Specify the fitting mode, polynomial fit or nonlinear curve fit.

Option list:

  • Polynomial Fit
    Perform polynomial fitting
  • Nonlinear Curve Fit
    Perform nonlinear curve fitting
Function func

Input

string

Linear
Specify the fitting function.
Label Box trtable

Input

TreeNode

<unassigned>
Specify the settings of the result text box content that is pasted on the source graph.
Report trreport

Input

TreeNode

<unassigned>
Specify the output destinations of the fitting results.
Fit Curve trcurve

Input

TreeNode

<unassigned>
Specify the fitted curve settings.
ROI Box trroi

Input

TreeNode

<unassigned>
Specify the ROI settings. The fitting will be performed within the ROI box.

Description

This function is used to add a rectangle onto the plot to perform fitting. The fitted curve displays on the graph, which will be updated automatically while you move the rectangle box. By clicking on the triangle button on the right side of the rectangle box, you can change the fitting function, output fitting results to a destination worksheet, and customize the ROI (range of interesting) box. For more details about perform quick fitting on a plot, please refer to Quick Fit ROI Tool in our User Guide.

Related X-Functions

fitpoly, nlfit, nlbeginr, nlbegin, nlend


Keywords:regression, ROI