This module provides a widget designed to configure and run a fitting process with constraints on parameters.
The main class is FitWidget. It relies on silx.math.fit.fitmanager, which relies on silx.math.fit.leastsq().
The user can choose between functions before running the fit. These function can be user defined, or by default are loaded from silx.math.fit.fittheories.
For a tutorial on how to use FitWidget, see Using FitWidget.
This widget can be used to configure, run and display results of a fitting process.
The standard steps for using this widget is to initialize it, then load the data to be fitted.
Optionally, you can also load user defined fit theories. If you skip this step, a series of default fit functions will be presented (gaussian-like functions), and you can later load your custom fit theories from an external file using the GUI.
A fit theory is a fit function and its associated features:
- estimation function,
- list of parameter names
- numerical derivative algorithm
- configuration widget
Once the widget is up and running, the user may select a fit theory and a background theory, change configuration parameters specific to the theory run the estimation, set constraints on parameters and run the actual fit.
The results are displayed in a table.
Parameters: |
|
---|
Set data to be fitted.
Parameters: |
|
---|