
<!DOCTYPE html>

<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" />

    <title>lsqfit Documentation &#8212; lsqfit 13.0.1 documentation</title>
    <link rel="stylesheet" type="text/css" href="_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="_static/pyramid.css" />
    <script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script>
    <script src="_static/jquery.js"></script>
    <script src="_static/underscore.js"></script>
    <script src="_static/_sphinx_javascript_frameworks_compat.js"></script>
    <script src="_static/doctools.js"></script>
    <link rel="index" title="Index" href="genindex.html" />
    <link rel="search" title="Search" href="search.html" />
    <link rel="next" title="Overview and Tutorial" href="overview.html" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Neuton&amp;subset=latin" type="text/css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Nobile:regular,italic,bold,bolditalic&amp;subset=latin" type="text/css" media="screen" charset="utf-8" />
<!--[if lte IE 6]>
<link rel="stylesheet" href="_static/ie6.css" type="text/css" media="screen" charset="utf-8" />
<![endif]-->

  </head><body>

    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="overview.html" title="Overview and Tutorial"
             accesskey="N">next</a> |</li>
        <li class="nav-item nav-item-0"><a href="#">lsqfit 13.0.1 documentation</a> &#187;</li>
        <li class="nav-item nav-item-this"><a href="">lsqfit Documentation</a></li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body" role="main">
            
  <section id="lsqfit-documentation">
<h1>lsqfit Documentation<a class="headerlink" href="#lsqfit-documentation" title="Permalink to this heading">¶</a></h1>
<a class="reference external image-reference" href="https://zenodo.org/badge/latestdoi/4593457"><img alt="https://zenodo.org/badge/4593457.svg" src="https://zenodo.org/badge/4593457.svg" /></a>
<p>Contents:</p>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="overview.html">Overview and Tutorial</a><ul>
<li class="toctree-l2"><a class="reference internal" href="overview.html#introduction">Introduction</a></li>
<li class="toctree-l2"><a class="reference internal" href="overview.html#gaussian-random-variables-and-error-propagation">Gaussian Random Variables and Error Propagation</a></li>
<li class="toctree-l2"><a class="reference internal" href="overview.html#basic-fits">Basic Fits</a></li>
<li class="toctree-l2"><a class="reference internal" href="overview.html#chained-fits-large-data-sets">Chained Fits; Large Data Sets</a></li>
<li class="toctree-l2"><a class="reference internal" href="overview.html#x-has-errors"><code class="docutils literal notranslate"><span class="pre">x</span></code> has Errors</a></li>
<li class="toctree-l2"><a class="reference internal" href="overview.html#correlated-parameters-gaussian-bayes-factor">Correlated Parameters; Gaussian Bayes Factor</a></li>
<li class="toctree-l2"><a class="reference internal" href="overview.html#y-has-no-error-marginalization"><code class="docutils literal notranslate"><span class="pre">y</span></code> has No Error; Marginalization</a></li>
<li class="toctree-l2"><a class="reference internal" href="overview.html#svd-cuts-and-roundoff-error">SVD Cuts and Roundoff Error</a></li>
<li class="toctree-l2"><a class="reference internal" href="overview.html#svd-cuts-and-inadequate-statistics">SVD Cuts and Inadequate Statistics</a></li>
<li class="toctree-l2"><a class="reference internal" href="overview.html#y-has-unknown-errors"><code class="docutils literal notranslate"><span class="pre">y</span></code> has Unknown Errors</a></li>
<li class="toctree-l2"><a class="reference internal" href="overview.html#tuning-priors-with-the-empirical-bayes-criterion">Tuning Priors with the Empirical Bayes Criterion</a></li>
<li class="toctree-l2"><a class="reference internal" href="overview.html#positive-parameters-non-gaussian-priors">Positive Parameters; Non-Gaussian Priors</a></li>
<li class="toctree-l2"><a class="reference internal" href="overview.html#faster-fitters">Faster Fitters</a></li>
<li class="toctree-l2"><a class="reference internal" href="overview.html#debugging-and-troubleshooting">Debugging and Troubleshooting</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="testing.html">Non-Gaussian Behavior; Testing Fits</a><ul>
<li class="toctree-l2"><a class="reference internal" href="testing.html#introduction">Introduction</a></li>
<li class="toctree-l2"><a class="reference internal" href="testing.html#bootstrap-error-analysis-non-gaussian-output">Bootstrap Error Analysis; Non-Gaussian Output</a></li>
<li class="toctree-l2"><a class="reference internal" href="testing.html#bayesian-integrals">Bayesian Integrals</a></li>
<li class="toctree-l2"><a class="reference internal" href="testing.html#testing-fits-with-simulated-data">Testing Fits with Simulated Data</a></li>
<li class="toctree-l2"><a class="reference internal" href="testing.html#goodness-of-fit">Goodness of Fit</a></li>
<li class="toctree-l2"><a class="reference internal" href="testing.html#fit-residuals-and-q-q-plots">Fit Residuals and Q-Q Plots</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="case-extrapolation.html">Case Study: Simple Extrapolation</a><ul>
<li class="toctree-l2"><a class="reference internal" href="case-extrapolation.html#the-problem">The Problem</a></li>
<li class="toctree-l2"><a class="reference internal" href="case-extrapolation.html#a-bad-solution">A Bad Solution</a></li>
<li class="toctree-l2"><a class="reference internal" href="case-extrapolation.html#a-better-solution-priors">A Better Solution — Priors</a></li>
<li class="toctree-l2"><a class="reference internal" href="case-extrapolation.html#bayes-factors">Bayes Factors</a></li>
<li class="toctree-l2"><a class="reference internal" href="case-extrapolation.html#another-solution-marginalization">Another Solution — Marginalization</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="case-pendulum.html">Case Study: Numerical Analysis inside a Fit</a><ul>
<li class="toctree-l2"><a class="reference internal" href="case-pendulum.html#the-problem">The Problem</a></li>
<li class="toctree-l2"><a class="reference internal" href="case-pendulum.html#pendulum-dynamics">Pendulum Dynamics</a></li>
<li class="toctree-l2"><a class="reference internal" href="case-pendulum.html#two-types-of-input-data">Two Types of Input Data</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="case-spline.html">Case Study: Fitting a Spline</a><ul>
<li class="toctree-l2"><a class="reference internal" href="case-spline.html#the-problem">The Problem</a></li>
<li class="toctree-l2"><a class="reference internal" href="case-spline.html#spline-fit">Spline Fit</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="case-outliers.html">Case Study: Outliers and Bayesian Integrals</a><ul>
<li class="toctree-l2"><a class="reference internal" href="case-outliers.html#the-problem">The Problem</a></li>
<li class="toctree-l2"><a class="reference internal" href="case-outliers.html#a-solution">A Solution</a></li>
<li class="toctree-l2"><a class="reference internal" href="case-outliers.html#a-variation">A Variation</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="lsqfit.html"><code class="xref py py-mod docutils literal notranslate"><span class="pre">lsqfit</span></code> - Nonlinear Least Squares Fitting</a><ul>
<li class="toctree-l2"><a class="reference internal" href="lsqfit.html#introduction">Introduction</a></li>
<li class="toctree-l2"><a class="reference internal" href="lsqfit.html#nonlinear-fit-objects">nonlinear_fit Objects</a></li>
<li class="toctree-l2"><a class="reference internal" href="lsqfit.html#functions">Functions</a></li>
<li class="toctree-l2"><a class="reference internal" href="lsqfit.html#lsqfit-multifitter-classes"><code class="xref py py-class docutils literal notranslate"><span class="pre">lsqfit.MultiFitter</span></code> Classes</a></li>
<li class="toctree-l2"><a class="reference internal" href="lsqfit.html#references">References</a></li>
<li class="toctree-l2"><a class="reference internal" href="lsqfit.html#requirements">Requirements</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="gsl.html">GSL Routines</a><ul>
<li class="toctree-l2"><a class="reference internal" href="gsl.html#fitters">Fitters</a></li>
<li class="toctree-l2"><a class="reference internal" href="gsl.html#minimizer">Minimizer</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="scipy.html"><code class="xref py py-mod docutils literal notranslate"><span class="pre">scipy</span></code> Routines</a><ul>
<li class="toctree-l2"><a class="reference internal" href="scipy.html#fitter">Fitter</a></li>
<li class="toctree-l2"><a class="reference internal" href="scipy.html#minimizer">Minimizer</a></li>
</ul>
</li>
</ul>
</div>
</section>
<section id="indices-and-tables">
<h1>Indices and tables<a class="headerlink" href="#indices-and-tables" title="Permalink to this heading">¶</a></h1>
<ul class="simple">
<li><p><a class="reference internal" href="genindex.html"><span class="std std-ref">Index</span></a></p></li>
<li><p><a class="reference internal" href="py-modindex.html"><span class="std std-ref">Module Index</span></a></p></li>
<li><p><a class="reference internal" href="search.html"><span class="std std-ref">Search Page</span></a></p></li>
</ul>
</section>


            <div class="clearer"></div>
          </div>
        </div>
      </div>
      <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
        <div class="sphinxsidebarwrapper">
  <div>
    <h3><a href="#">Table of Contents</a></h3>
    <ul>
<li><a class="reference internal" href="#">lsqfit Documentation</a></li>
<li><a class="reference internal" href="#indices-and-tables">Indices and tables</a></li>
</ul>

  </div>
  <div>
    <h4>Next topic</h4>
    <p class="topless"><a href="overview.html"
                          title="next chapter">Overview and Tutorial</a></p>
  </div>
  <div role="note" aria-label="source link">
    <h3>This Page</h3>
    <ul class="this-page-menu">
      <li><a href="_sources/index.rst.txt"
            rel="nofollow">Show Source</a></li>
    </ul>
   </div>
<div id="searchbox" style="display: none" role="search">
  <h3 id="searchlabel">Quick search</h3>
    <div class="searchformwrapper">
    <form class="search" action="search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>
    </div>
</div>
<script>document.getElementById('searchbox').style.display = "block"</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="overview.html" title="Overview and Tutorial"
             >next</a> |</li>
        <li class="nav-item nav-item-0"><a href="#">lsqfit 13.0.1 documentation</a> &#187;</li>
        <li class="nav-item nav-item-this"><a href="">lsqfit Documentation</a></li> 
      </ul>
    </div>
    <div class="footer" role="contentinfo">
        &#169; Copyright 2009-2019, G. P. Lepage.
      Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 5.0.2.
    </div>
  </body>
</html>