From ddf7d40e8eae540a0c6ff7387064ac800b94cc2a Mon Sep 17 00:00:00 2001 From: Matt Newville Date: Sun, 7 Feb 2021 16:30:42 -0600 Subject: [PATCH] faq rst fixes --- doc/faq.rst | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/doc/faq.rst b/doc/faq.rst index 498076d7f..ab519a8ac 100644 --- a/doc/faq.rst +++ b/doc/faq.rst @@ -184,7 +184,7 @@ Parameter will not be updated. Parameter values that are "way off" are a common reason for Parameters being stuck at initial values. As an example, imagine fitting peak-like -data with and `x` range of 0 to 10, peak centered at 6, and a width of 1 or +data with and ``x`` range of 0 to 10, peak centered at 6, and a width of 1 or 2 or so, as in the example at :ref:`sphx_glr_examples_documentation_model_gaussian.py`. A Gaussian function with an initial value of for the peak center at 5 and an initial @@ -226,7 +226,7 @@ Can Parameters be used for Array Indices or Discrete Values? The short answer is "No": variables in all of the fitting methods used in -`lmfit` (and all of those available in `scipy.optimize`) are treated as +``lmfit`` (and all of those available in ``scipy.optimize``) are treated as continuous values, and represented as double precision floating point values. As an important example, you cannot have a variable that is somehow constrained to be an integer. @@ -269,13 +269,13 @@ That you implement with a model function and use to fit data like this: result = mod.fit(ydat, pars, x=xdat) print(result.fit_report()) -This will not result in a very good fit, as the value for `x0` cannot be +This will not result in a very good fit, as the value for ``x0`` cannot be found by making a small change in its value. Specifically, -`model[np.where(x