Author: | Pierre Barbier de Reuille <pierre.barbierdereuille@gmail.com> |
---|
This module specifically implement the curve fitting, wrapping the default scipy.optimize.leastsq function. It allows for parameter value fixing, different kind of residual and added constraints function.
The main class of the module is the CurveFitting class.
Fit a curve using the scipy.optimize.leastsq() function
Parameters: |
|
---|
Once fitted, the following variables contain the result of the fitting:
Variables: |
|
---|
Note
In this implementation, residuals are supposed to be a generalisation of the notion of difference. In the end, the mathematical expression of this minimisation is:
Where \(\theta\) is the vector of \(p\) parameters to optimise, \(r\) is the residual function and \(f\) is the function being fitted.