@@ -14,13 +14,13 @@ Overview
14
14
LMfit-py provides a Least-Squares Minimization routine and class with a
15
15
simple, flexible approach to parameterizing a model for fitting to data.
16
16
17
- LMFIT is a pure python package, and so easy to install from source or witn
18
- `pip install lmfit `.
17
+ LMfit is a pure python package, and so easy to install from source or with
18
+ `` pip install lmfit ` `.
19
19
20
- For questions, comments, and suggestions, please use the LMFIt mailing
20
+ For questions, comments, and suggestions, please use the LMfit mailing
21
21
list, https://groups.google.com/group/lmfit-py. Using the bug tracking
22
- software in Github Issues is encouraged for known problems and bug reports.
23
- Please read Contributing.md before creating an Issue.
22
+ software in GitHub Issues is encouraged for known problems and bug reports.
23
+ Please read ` Contributing.md < .github/CONTRIBUTING.md >`_ before creating an Issue.
24
24
25
25
26
26
Parameters and Fitting
@@ -38,14 +38,14 @@ dictionary, containing named parameters::
38
38
39
39
fit_params = Parameters()
40
40
fit_params['amp'] = Parameter(value=1.2, min=0.1, max=1000)
41
- fit_params['cen'] = Parameter(value=40.0, vary=False),
42
- fit_params['wid'] = Parameter(value=4, min=0)}
41
+ fit_params['cen'] = Parameter(value=40.0, vary=False)
42
+ fit_params['wid'] = Parameter(value=4, min=0)
43
43
44
- or using the equivalent:
44
+ or using the equivalent::
45
45
46
46
fit_params = Parameters()
47
47
fit_params.add('amp', value=1.2, min=0.1, max=1000)
48
- fit_params.add('cen', value=40.0, vary=False),
48
+ fit_params.add('cen', value=40.0, vary=False)
49
49
fit_params.add('wid', value=4, min=0)
50
50
51
51
The programmer will also write a function to be minimized (in the
@@ -68,7 +68,7 @@ changed if different bounds or constraints are placed on the fitting
68
68
Parameters. The fitting model (as described in myfunc) is instead written
69
69
in terms of physical parameters of the system, and remains remains
70
70
independent of what is actually varied in the fit. In addition, which
71
- parameters are adjuested and which are fixed happens at run-time, so that
71
+ parameters are adjusted and which are fixed happens at run-time, so that
72
72
changing what is varied and what constraints are placed on the parameters
73
73
can easily be modified by the consumer in real-time data analysis.
74
74
@@ -83,5 +83,5 @@ statistics and information.
83
83
84
84
By default, the underlying fit algorithm is the Levenberg-Marquart
85
85
algorithm with numerically-calculated derivatives from MINPACK's lmdif
86
- function, as used by scipy.optimize.leastsq. Other solvers (Nelder-Mead,
86
+ function, as used by `` scipy.optimize.leastsq `` . Other solvers (Nelder-Mead,
87
87
etc) are also available, though slightly less well-tested and supported.
0 commit comments