Tutorial:Fit Multiple Datasets by Fitting One and then Using Those Fit Parameters for Other Datasets
From Howto Wiki
In some cases, you might have multiple datasets, and want to fit them using the user-defined function without parameter initial code. For increased efficiency, you can fit one and then apply the fit parameters for other datasets.
Minimum Origin Version Required: Origin 8.6
What you will learn
- How to perform an independent fit.
- How to fit one of multiple datasets by doing 1-iteration, full-iteration.
- How to apply the parameter values of one dataset to other datasets.
- Create a user-defined function MyExp by following the steps in this tutorial.
- Import \Samples\Curve Fitting\Exponential Decay.dat to Origin worksheet.
- Highlight all columns and then select Analysis: Fitting: Non-linear Curve Fit from the menu to open the NLFit dialog.
- Select the function just defined in Settings tab, Function Selection page:
- Switch to Parameters tab, enter 80, 100, -5 on the Value column as initial values for y0, a, b of the first dataset. Then select 1 from the independent fit drop-down list and iterate the first dataset until converged.
- The parameter values are calculated and the fitting result is hinted in the left corner of this dialog.
- To initialize the parameters of other datasets, apply the parameter values of the first dataset to other datasets by right-clicking the values, and then selecting Apply Whole Set of "Value" to All Datasets from the fly-out menu.
- Click Fit button to finish the fitting for all datasets.