Changeset f696e2a in sasview for park_integration/docs/sphinx/html/api/ScipyFitting.html
- Timestamp:
- Oct 24, 2011 1:42:54 PM (13 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 8884996
- Parents:
- 40299ce
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
park_integration/docs/sphinx/html/api/ScipyFitting.html
r6b1588b rf696e2a 3 3 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 4 4 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 5 5 6 6 7 <html xmlns="http://www.w3.org/1999/xhtml"> … … 8 9 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 9 10 10 <title>ScipyFitting — park_integration v0.1.0 documentation</title> 11 <title>ScipyFitting — park_integration 0.1.0 documentation</title> 12 11 13 <link rel="stylesheet" href="../_static/default.css" type="text/css" /> 12 14 <link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> 15 13 16 <script type="text/javascript"> 14 17 var DOCUMENTATION_OPTIONS = { … … 23 26 <script type="text/javascript" src="../_static/underscore.js"></script> 24 27 <script type="text/javascript" src="../_static/doctools.js"></script> 25 <link rel="top" title="park_integration v0.1.0 documentation" href="../index.html" />28 <link rel="top" title="park_integration 0.1.0 documentation" href="../index.html" /> 26 29 <link rel="up" title="Reference" href="index.html" /> 27 30 <link rel="prev" title="ParkFitting" href="ParkFitting.html" /> … … 40 43 <a href="ParkFitting.html" title="ParkFitting" 41 44 accesskey="P">previous</a> |</li> 42 <li><a href="../index.html">park_integration v0.1.0 documentation</a> »</li>45 <li><a href="../index.html">park_integration 0.1.0 documentation</a> »</li> 43 46 <li><a href="index.html" accesskey="U">Reference</a> »</li> 44 47 </ul> … … 52 55 <div class="section" id="scipyfitting"> 53 56 <h1>ScipyFitting<a class="headerlink" href="#scipyfitting" title="Permalink to this headline">¶</a></h1> 54 <div class="section" id="mod ule-sans.fit.ScipyFitting">55 < span id="mod-sans-fit-scipyfitting"></span><h2>:mod:` sans.fit.ScipyFitting`<a class="headerlink" href="#module-sans.fit.ScipyFitting" title="Permalink to this headline">¶</a></h2>56 < p>ScipyFitting module contains FitArrange , ScipyFit,57 <div class="section" id="mod-sans-fit-scipyfitting"> 58 <h2>:mod:` sans.fit.ScipyFitting`<a class="headerlink" href="#mod-sans-fit-scipyfitting" title="Permalink to this headline">¶</a></h2> 59 <span class="target" id="module-sans.fit.ScipyFitting"></span><p>ScipyFitting module contains FitArrange , ScipyFit, 57 60 Parameter classes.All listed classes work together to perform a 58 61 simple fit with scipy optimizer.</p> … … 74 77 <col class="field-body" /> 75 78 <tbody valign="top"> 76 <tr class="field "><th class="field-name">Note :</th><td class="field-body">Set_param() if used must always preceded set_model()79 <tr class="field-odd field"><th class="field-name">Note :</th><td class="field-body">Set_param() if used must always preceded set_model() 77 80 for the fit to be performed.In case of Scipyfit set_param is called in 78 81 fit () automatically.</td> … … 87 90 chisqr1, out1, cov1=engine.fit({model.parameter.name:value},qmin,qmax)</p> 88 91 <dl class="method"> 92 <dt id="sans.fit.ScipyFitting.ScipyFit.__init__"> 93 <tt class="descname">__init__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.fit.ScipyFitting.ScipyFit.__init__" title="Permalink to this definition">¶</a></dt> 94 <dd><p>Creates a dictionary (self.fit_arrange_dict={})of FitArrange elements 95 with Uid as keys</p> 96 </dd></dl> 97 98 <dl class="attribute"> 99 <dt id="sans.fit.ScipyFitting.ScipyFit.__module__"> 100 <tt class="descname">__module__</tt><em class="property"> = 'sans.fit.ScipyFitting'</em><a class="headerlink" href="#sans.fit.ScipyFitting.ScipyFit.__module__" title="Permalink to this definition">¶</a></dt> 101 <dd></dd></dl> 102 103 <dl class="method"> 104 <dt id="sans.fit.ScipyFitting.ScipyFit._check_param_range"> 105 <tt class="descname">_check_param_range</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.fit.ScipyFitting.ScipyFit._check_param_range" title="Permalink to this definition">¶</a></dt> 106 <dd><p>Check parameter range and set the initial value inside 107 if it is out of range.</p> 108 <p>: model: park model object</p> 109 </dd></dl> 110 111 <dl class="method"> 112 <dt id="sans.fit.ScipyFitting.ScipyFit._get_zero_shift"> 113 <tt class="descname">_get_zero_shift</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.fit.ScipyFitting.ScipyFit._get_zero_shift" title="Permalink to this definition">¶</a></dt> 114 <dd><p>Get 10% shift of the param value = 0 based on the range value</p> 115 <p>: param range: min or max value of the bounds</p> 116 </dd></dl> 117 118 <dl class="method"> 89 119 <dt id="sans.fit.ScipyFitting.ScipyFit.fit"> 90 <tt class="descname">fit</tt><big>(</big>< em>q=None</em>, <em>handler=None</em>, <em>curr_thread=None</em>, <em>ftol=1.49012e-008</em><big>)</big><a class="headerlink" href="#sans.fit.ScipyFitting.ScipyFit.fit" title="Permalink to this definition">¶</a></dt>120 <tt class="descname">fit</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.fit.ScipyFitting.ScipyFit.fit" title="Permalink to this definition">¶</a></dt> 91 121 <dd></dd></dl> 92 122 93 123 <dl class="method"> 94 124 <dt id="sans.fit.ScipyFitting.ScipyFit.get_model"> 95 <tt class="descname">get_model</tt><big>(</big>< em>id</em><big>)</big><a class="headerlink" href="#sans.fit.ScipyFitting.ScipyFit.get_model" title="Permalink to this definition">¶</a></dt>125 <tt class="descname">get_model</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.fit.ScipyFitting.ScipyFit.get_model" title="Permalink to this definition">¶</a></dt> 96 126 <dd><table class="docutils field-list" frame="void" rules="none"> 97 127 <col class="field-name" /> 98 128 <col class="field-body" /> 99 129 <tbody valign="top"> 100 <tr class="field "><th class="field-name">Parameters:</th><td class="field-body"><strong>id</strong> – id is key in the dictionary containing the model to return</td>101 </tr> 102 <tr class="field "><th class="field-name">Returns:</th><td class="field-body">a model at this id or None if no FitArrange element was130 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>id</strong> – id is key in the dictionary containing the model to return</td> 131 </tr> 132 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">a model at this id or None if no FitArrange element was 103 133 created with this id</td> 104 134 </tr> … … 109 139 <dl class="method"> 110 140 <dt id="sans.fit.ScipyFitting.ScipyFit.get_problem_to_fit"> 111 <tt class="descname">get_problem_to_fit</tt><big>(</big>< em>id</em><big>)</big><a class="headerlink" href="#sans.fit.ScipyFitting.ScipyFit.get_problem_to_fit" title="Permalink to this definition">¶</a></dt>141 <tt class="descname">get_problem_to_fit</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.fit.ScipyFitting.ScipyFit.get_problem_to_fit" title="Permalink to this definition">¶</a></dt> 112 142 <dd><p>return the self.selected value of the fit problem of id</p> 113 143 <table class="docutils field-list" frame="void" rules="none"> … … 115 145 <col class="field-body" /> 116 146 <tbody valign="top"> 117 <tr class="field "><th class="field-name">Parameters:</th><td class="field-body"><strong>id</strong> – the id of the problem</td>147 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>id</strong> – the id of the problem</td> 118 148 </tr> 119 149 </tbody> … … 123 153 <dl class="method"> 124 154 <dt id="sans.fit.ScipyFitting.ScipyFit.remove_fit_problem"> 125 <tt class="descname">remove_fit_problem</tt><big>(</big>< em>id</em><big>)</big><a class="headerlink" href="#sans.fit.ScipyFitting.ScipyFit.remove_fit_problem" title="Permalink to this definition">¶</a></dt>155 <tt class="descname">remove_fit_problem</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.fit.ScipyFitting.ScipyFit.remove_fit_problem" title="Permalink to this definition">¶</a></dt> 126 156 <dd><p>remove fitarrange in id</p> 127 157 </dd></dl> … … 129 159 <dl class="method"> 130 160 <dt id="sans.fit.ScipyFitting.ScipyFit.select_problem_for_fit"> 131 <tt class="descname">select_problem_for_fit</tt><big>(</big>< em>id</em>, <em>value</em><big>)</big><a class="headerlink" href="#sans.fit.ScipyFitting.ScipyFit.select_problem_for_fit" title="Permalink to this definition">¶</a></dt>161 <tt class="descname">select_problem_for_fit</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.fit.ScipyFitting.ScipyFit.select_problem_for_fit" title="Permalink to this definition">¶</a></dt> 132 162 <dd><p>select a couple of model and data at the id position in dictionary 133 163 and set in self.selected value to value</p> … … 136 166 <col class="field-body" /> 137 167 <tbody valign="top"> 138 <tr class="field "><th class="field-name">Parameters:</th><td class="field-body"><strong>value</strong> – the value to allow fitting.168 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>value</strong> – the value to allow fitting. 139 169 can only have the value one or zero</td> 140 170 </tr> … … 145 175 <dl class="method"> 146 176 <dt id="sans.fit.ScipyFitting.ScipyFit.set_data"> 147 <tt class="descname">set_data</tt><big>(</big>< em>data</em>, <em>id</em>, <em>smearer=None</em>, <em>qmin=None</em>, <em>qmax=None</em><big>)</big><a class="headerlink" href="#sans.fit.ScipyFitting.ScipyFit.set_data" title="Permalink to this definition">¶</a></dt>177 <tt class="descname">set_data</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.fit.ScipyFitting.ScipyFit.set_data" title="Permalink to this definition">¶</a></dt> 148 178 <dd><p>Receives plottable, creates a list of data to fit,set data 149 179 in a FitArrange object and adds that object in a dictionary … … 153 183 <col class="field-body" /> 154 184 <tbody valign="top"> 155 <tr class="field "><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">185 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> 156 186 <li><strong>data</strong> – data added</li> 157 187 <li><strong>id</strong> – unique key corresponding to a fitArrange object with data</li> … … 165 195 <dl class="method"> 166 196 <dt id="sans.fit.ScipyFitting.ScipyFit.set_model"> 167 <tt class="descname">set_model</tt><big>(</big>< em>model</em>, <em>id</em>, <em>pars=</em><span class="optional">[</span><span class="optional">]</span>, <em>constraints=</em><span class="optional">[</span><span class="optional">]</span><big>)</big><a class="headerlink" href="#sans.fit.ScipyFitting.ScipyFit.set_model" title="Permalink to this definition">¶</a></dt>197 <tt class="descname">set_model</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.fit.ScipyFitting.ScipyFit.set_model" title="Permalink to this definition">¶</a></dt> 168 198 <dd><p>set a model on a given in the fit engine.</p> 169 199 <table class="docutils field-list" frame="void" rules="none"> … … 171 201 <col class="field-body" /> 172 202 <tbody valign="top"> 173 <tr class="field "><th class="field-name">Parameters:</th><td class="field-body"><strong>model</strong> – sans.models type</td>203 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>model</strong> – sans.models type</td> 174 204 </tr> 175 205 </tbody> … … 183 213 <col class="field-body" /> 184 214 <tbody valign="top"> 185 <tr class="field "><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">215 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> 186 216 <li><strong>pars</strong> – the list of parameters to fit</li> 187 217 <li><strong>constraints</strong> – <p>list of … … 198 228 </td> 199 229 </tr> 200 <tr class="field "><th class="field-name">Note :</th><td class="field-body"><p class="first last">pars must contains only name of existing model’s parameters</p>230 <tr class="field-even field"><th class="field-name">Note :</th><td class="field-body"><p class="first last">pars must contains only name of existing model’s parameters</p> 201 231 </td> 202 232 </tr> … … 204 234 </table> 205 235 </dd></dl> 206 207 </dd></dl>208 209 <dl class="class">210 <dt id="sans.fit.ScipyFitting.fitresult">211 <em class="property">class </em><tt class="descclassname">sans.fit.ScipyFitting.</tt><tt class="descname">fitresult</tt><big>(</big><em>model=None</em>, <em>param_list=None</em><big>)</big><a class="headerlink" href="#sans.fit.ScipyFitting.fitresult" title="Permalink to this definition">¶</a></dt>212 <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p>213 <p>Storing fit result</p>214 <dl class="method">215 <dt id="sans.fit.ScipyFitting.fitresult.print_summary">216 <tt class="descname">print_summary</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.fit.ScipyFitting.fitresult.print_summary" title="Permalink to this definition">¶</a></dt>217 <dd></dd></dl>218 219 <dl class="method">220 <dt id="sans.fit.ScipyFitting.fitresult.set_fitness">221 <tt class="descname">set_fitness</tt><big>(</big><em>fitness</em><big>)</big><a class="headerlink" href="#sans.fit.ScipyFitting.fitresult.set_fitness" title="Permalink to this definition">¶</a></dt>222 <dd></dd></dl>223 224 <dl class="method">225 <dt id="sans.fit.ScipyFitting.fitresult.set_model">226 <tt class="descname">set_model</tt><big>(</big><em>model</em><big>)</big><a class="headerlink" href="#sans.fit.ScipyFitting.fitresult.set_model" title="Permalink to this definition">¶</a></dt>227 <dd></dd></dl>228 236 229 237 </dd></dl> … … 241 249 <ul> 242 250 <li><a class="reference internal" href="#">ScipyFitting</a><ul> 243 <li><a class="reference internal" href="#mod ule-sans.fit.ScipyFitting">:mod:` sans.fit.ScipyFitting`</a></li>251 <li><a class="reference internal" href="#mod-sans-fit-scipyfitting">:mod:` sans.fit.ScipyFitting`</a></li> 244 252 </ul> 245 253 </li> … … 257 265 <h3>Quick search</h3> 258 266 <form class="search" action="../search.html" method="get"> 259 <input type="text" name="q" size="18"/>267 <input type="text" name="q" /> 260 268 <input type="submit" value="Go" /> 261 269 <input type="hidden" name="check_keywords" value="yes" /> … … 283 291 <a href="ParkFitting.html" title="ParkFitting" 284 292 >previous</a> |</li> 285 <li><a href="../index.html">park_integration v0.1.0 documentation</a> »</li>293 <li><a href="../index.html">park_integration 0.1.0 documentation</a> »</li> 286 294 <li><a href="index.html" >Reference</a> »</li> 287 295 </ul> … … 289 297 <div class="footer"> 290 298 © Copyright 2010, sans group. 291 Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1. 0.7.299 Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1. 292 300 </div> 293 301 </body>
Note: See TracChangeset
for help on using the changeset viewer.