File Exchange > Data Analysis >    Speedy Fit

Author:
OriginLab Technical Support
Date Added:
1/18/2019
Last Update:
1/9/2024
Downloads (90 Days):
730
Total Ratings:
13
File Size:
206 KB
Average Rating:
File Name:
Speedy Fit.opx
File Version:
2.80
Minimum Versions:
License:
Free
Type:
App
Summary:

Perform batch fitting fast

Screen Shot and Video:
Description:

  • Purpose
    This app can be used to fit a large number of datasets from a worksheet sequentially and speedily, and create a simple report table of parameter values and fit statistics.
    Features include:
    • Fit all XY (YErr) datasets in the active worksheet
    • Perform linear, polynomial and nonlinear fit using different algorithms
    • Preview of fitted curve for current dataset with 95% confidence band and 95% prediction band
    • Select a built-in or user-defined function for nonlinear fit
    • Three choices for parameter initialization for nonlinear fit:
      • Initialize each dataset independently
      • Use fit values from previous dataset as initial parameter values for next dataset
      • Use custom (user-specified) initial parameter values for all datasets
    • Output parameter values, standard errors, dependencies etc and also output fit statistics including fit status
    • Output the fitted curve, and allow go through each dataset by the navigation buttons on the fitted curve graph
    • Use metadata elements such as long name or comments as dataset identifier in the output sheet
  • Installation
    Download the file "Speedy Fit.opx", and then drag-and-drop onto the Origin workspace. An icon will appear in the Apps gallery window.
  • Operation
    1. Import desired data into a worksheet. Make sure that column designations are set correctly (such as XYY..., XYXY.... XYYer... etc)
    2. With worksheet active, click the icon in the Apps Gallery window.
    3. In the pop up dialog, the Current Data is the first Y data of the active worksheet, and the preview of fitted curve shows in the right side of the dialog.
    4. Select a tab to decide what fitting to perform.
    5. For nonlinear fit, select the fitting function, and the desired method for parameter initialization.
    6. Optionally enter custom initial values, fix status, and lower/upper bounds for parameters in the table.
    7. Choose the parameter values and statistics you want to output by clicking Report Settings button.
    8. Click OK button to perform the sequential fitting.
    9. For large number of datasets, a progress bar will be displayed, including information on what percentage of datasets were successfully fitted.
    10. You can quit the fit process in the middle. Results up to that dataset will still be available in the output sheet.
  • Dialog Settings
    • Linear Tab
      • Current Data: The current data from worksheet for preview, change it to check the result of the one you want.
      • Weighted Fit: If the current data has error, this checkbox is available for whether to perform weighted fit.
      • Table: Show the fitted results of the current data, and you can fix intercept or slope.
      • 95% Confidence Band: Show 95% confidence band on preview of fitted curve.
      • 95% Prediction Band: Show 95% prediction band on preview of fitted curve.
    • Polynomial Tab
      • Current Data: The current data from worksheet for preview, change it to check the result of the one you want.
      • Weighted Fit: If the current data has error, this checkbox is available for whether to perform weighted fit.
      • Order: Select the order of polynomial fit.
      • Table: Show the fitted results of the current data, and you can fix intercept.
      • 95% Confidence Band: Show 95% confidence band on preview of fitted curve.
      • 95% Prediction Band: Show 95% prediction band on preview of fitted curve.
    • Nonlinear Tab
      • Current Data: The current data from worksheet for preview, change it to check the result of the one you want.
      • Weighted Fit: If the current data has error, this checkbox is available for whether to perform weighted fit.
      • Category: Select the category of fitting function.
      • Function: Select the fitting function from the specified category.
      • Parameter Initialization: Specify how to initialize parameters when perform sequential fit. Options include:
        • Initialize for Each Dataset: Initialize each dataset independently.
        • Use Fit Values from Previous Dataset: Use fit values from previous dataset as initial parameter values for next dataset.
        • Use Custom Values for All Datasets: Use custom (user-specified) initial parameter values for all datasets.
      • Iteration Algorithm: Choose what algorithm is used for iteration, including Levenberg Marquardt and Orthogonal Distance Regression.
      • Table: Show the fitted results of the current data, and you can change the values to change the intial values, fix parameters and change lower/upper bounds. If Parameter Initialization is Use Custom Values for All Datasets, the manually changed parameter values (not the values from clicking 1 Iter. or Fit button) in this table is used for each data when performing sequential fit.
      • Apply to All Datasets button: This is button is shown when Parameter Initialization is Use Custom Values for All Datasets. Clicking this button, the initial parameter values in the table for current dataset will be applied to all other datasets.
      • Hold as Initial Values button: This is button is shown when Parameter Initialization is Use Custom Values for All Datasets. When you have performed the fitting by clicking 1 Iter. button or Fit button, the fitted values of current status will be shown in the table. Then clicking this button will keep current fitted values as initial parameters.
      • 95% Confidence Band: Show 95% confidence band on preview of fitted curve.
      • 95% Prediction Band: Show 95% prediction band on preview of fitted curve.
    • Preview All Plots: This checkbox is shown if the data is from graph. If checked, all plots in the graph will show for preview, otherwise, it only shows the current plot for preview.
    • Buttons
      • Previous Data: Change the current data to the previous one in worksheet.
      • Next Data: Change the current data to the next one in worksheet.
      • Report Settings: Choose the parameter values and statistics you want to output. For more details, please refer to Quantities to Compute.
      • Reinit: For nonlinear fit only. It is to reinitialization the parameters.
      • 1 Iter.: For nonlinear fit only. Perform 1 iteration with current parameter values.
      • Fit: For nonlinear fit only. Perform iterations until the max number (400) of iteration is reached, or meet the tolerance.
      • OK: Perform sequential fit on all datasets in worksheet, and output results.
      • Cancel: Do nothing and close dialog.

Updates:

v2.8: Support multiple dataset identifiers selection
v2.7: Fix bug for crash when XY not same size
v2.6: Change mini version to 2022b
v2.5: Fix bug for showing button icons
v2.4: Fix bug for fixed parameter issue
v2.3: Change button's icon
v2.2: More buttons for playing related
v2.1: Add playing buttons to result graph
v2: Add iteration algorithms for nonlinear fit
v1.9: Support for masked data
v1.8: Output regular residuals
v1.7: Output derived parameters
v1.6: Add checkbox if preview all plots, improve initialization for nonlinear fit
v1.5: Different customized parameters for each dataset
v1.4: Localization
v1.3: Fix bug for default bounds issue
v1.2: Fix bug for fitting failed issue
v1.1: Fix bug for setting missing value for bounds

Reviews and Comments:
07/18/2024sophialucky 

01/15/2024hanifkhan88good

06/19/2023OriginLabHi lablam,
We don’t provide older version anymore. Please upgrade your Origin to version 2022 or later.

06/17/2023lablamHow to download v2.5? This App (v2.6) does not work in my Origin (Ver. 20 19).

02/19/2023leewei867

08/05/2022google chromI entered the program from your site, but it expires soon

07/12/2022noissegood !

06/26/2022sr.mendez 

04/28/2022OriginLabHi, Shenghua Cheng

As what we said in the description, this app is used to fit a large number of datasets from a worksheet and output the result to a worksheet. If you want formular expression, I suggest you use fitting tool in Origin software such as Linear or Nonlinear Fit or Quick Fit Gadget.

OriginLab Technical Service

04/27/2022Shenghua ChengWhy can't the fitting curve expression be displayed, and what is the use of this tool?

12