Changeset c0d873f in sasview for sansmodels/docs/sphinx/html/api/AddComponent.html
- Timestamp:
- Oct 24, 2011 2:52:52 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:
- 8d70c0a
- Parents:
- 67cd7c0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/docs/sphinx/html/api/AddComponent.html
r512573a rc0d873f 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>AddComponent — sansmodels v0.1.0 documentation</title> 11 <title>AddComponent — sansmodels 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="sansmodels v0.1.0 documentation" href="../index.html" />28 <link rel="top" title="sansmodels 0.1.0 documentation" href="../index.html" /> 26 29 <link rel="up" title="Reference" href="index.html" /> 27 30 <link rel="next" title="BarBellModel" href="BarBellModel.html" /> … … 44 47 <a href="index.html" title="Reference" 45 48 accesskey="P">previous</a> |</li> 46 <li><a href="../index.html">sansmodels v0.1.0 documentation</a> »</li>49 <li><a href="../index.html">sansmodels 0.1.0 documentation</a> »</li> 47 50 <li><a href="index.html" accesskey="U">Reference</a> »</li> 48 51 </ul> … … 56 59 <div class="section" id="addcomponent"> 57 60 <h1>AddComponent<a class="headerlink" href="#addcomponent" title="Permalink to this headline">¶</a></h1> 58 <div class="section" id=" module-sans.models.AddComponent">59 < span id="sans-models-addcomponent"></span><h2><a class="reference internal" href="#module-sans.models.AddComponent" title="sans.models.AddComponent"><tt class="xref py py-mod docutils literal"><span class="pre">sans.models.AddComponent</span></tt></a><a class="headerlink" href="#module-sans.models.AddComponent" title="Permalink to this headline">¶</a></h2>60 < p>Provide base functionality for all model components</p>61 <table class="docutils field-list" frame="void" rules="none"> 62 <col class="field-name" /> 63 <col class="field-body" /> 64 <tbody valign="top"> 65 <tr class="field "><th class="field-name">author:</th><td class="field-body">Mathieu Doucet / UTK</td>66 </tr> 67 <tr class="field "><th class="field-name">contact:</th><td class="field-body"><a class="reference external" href="mailto:mathieu.doucet%40nist.gov">mathieu<span>.</span>doucet<span>@</span>nist<span>.</span>gov</a></td>61 <div class="section" id="sans-models-addcomponent"> 62 <h2><a class="reference internal" href="#module-sans.models.AddComponent" title="sans.models.AddComponent"><tt class="xref py py-mod docutils literal"><span class="pre">sans.models.AddComponent</span></tt></a><a class="headerlink" href="#sans-models-addcomponent" title="Permalink to this headline">¶</a></h2> 63 <span class="target" id="module-sans.models.AddComponent"></span><p>Provide base functionality for all model components</p> 64 <table class="docutils field-list" frame="void" rules="none"> 65 <col class="field-name" /> 66 <col class="field-body" /> 67 <tbody valign="top"> 68 <tr class="field-odd field"><th class="field-name">author:</th><td class="field-body">Mathieu Doucet / UTK</td> 69 </tr> 70 <tr class="field-even field"><th class="field-name">contact:</th><td class="field-body"><a class="reference external" href="mailto:mathieu.doucet%40nist.gov">mathieu<span>.</span>doucet<span>@</span>nist<span>.</span>gov</a></td> 68 71 </tr> 69 72 </tbody> … … 71 74 <dl class="class"> 72 75 <dt id="sans.models.AddComponent.AddComponent"> 73 <em class="property">class </em><tt class="descclassname">sans.models.AddComponent.</tt><tt class="descname">AddComponent</tt>< big>(</big><em>base=None</em>, <em>other=None</em><big>)</big><a class="headerlink" href="#sans.models.AddComponent.AddComponent" title="Permalink to this definition">¶</a></dt>76 <em class="property">class </em><tt class="descclassname">sans.models.AddComponent.</tt><tt class="descname">AddComponent</tt><a class="headerlink" href="#sans.models.AddComponent.AddComponent" title="Permalink to this definition">¶</a></dt> 74 77 <dd><p>Bases: <a class="reference internal" href="BaseComponent.html#sans.models.BaseComponent.BaseComponent" title="sans.models.BaseComponent.BaseComponent"><tt class="xref py py-class docutils literal"><span class="pre">sans.models.BaseComponent.BaseComponent</span></tt></a></p> 75 78 <p>Basic model component for Addition 76 79 Provides basic arithmetics</p> 77 80 <dl class="method"> 81 <dt id="sans.models.AddComponent.AddComponent.__add__"> 82 <tt class="descname">__add__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.AddComponent.AddComponent.__add__" title="Permalink to this definition">¶</a></dt> 83 <dd></dd></dl> 84 85 <dl class="method"> 86 <dt id="sans.models.AddComponent.AddComponent.__div__"> 87 <tt class="descname">__div__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.AddComponent.AddComponent.__div__" title="Permalink to this definition">¶</a></dt> 88 <dd></dd></dl> 89 90 <dl class="method"> 91 <dt id="sans.models.AddComponent.AddComponent.__init__"> 92 <tt class="descname">__init__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.AddComponent.AddComponent.__init__" title="Permalink to this definition">¶</a></dt> 93 <dd><table class="docutils field-list" frame="void" rules="none"> 94 <col class="field-name" /> 95 <col class="field-body" /> 96 <tbody valign="top"> 97 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> 98 <li><strong>base</strong> – component to add to</li> 99 <li><strong>other</strong> – component to add</li> 100 </ul> 101 </td> 102 </tr> 103 </tbody> 104 </table> 105 </dd></dl> 106 107 <dl class="attribute"> 108 <dt id="sans.models.AddComponent.AddComponent.__module__"> 109 <tt class="descname">__module__</tt><em class="property"> = 'sans.models.AddComponent'</em><a class="headerlink" href="#sans.models.AddComponent.AddComponent.__module__" title="Permalink to this definition">¶</a></dt> 110 <dd></dd></dl> 111 112 <dl class="method"> 113 <dt id="sans.models.AddComponent.AddComponent.__mul__"> 114 <tt class="descname">__mul__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.AddComponent.AddComponent.__mul__" title="Permalink to this definition">¶</a></dt> 115 <dd></dd></dl> 116 117 <dl class="method"> 118 <dt id="sans.models.AddComponent.AddComponent.__str__"> 119 <tt class="descname">__str__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.AddComponent.AddComponent.__str__" title="Permalink to this definition">¶</a></dt> 120 <dd><table class="docutils field-list" frame="void" rules="none"> 121 <col class="field-name" /> 122 <col class="field-body" /> 123 <tbody valign="top"> 124 <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">string representatio</td> 125 </tr> 126 </tbody> 127 </table> 128 </dd></dl> 129 130 <dl class="method"> 131 <dt id="sans.models.AddComponent.AddComponent.__sub__"> 132 <tt class="descname">__sub__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.AddComponent.AddComponent.__sub__" title="Permalink to this definition">¶</a></dt> 133 <dd></dd></dl> 134 135 <dl class="method"> 136 <dt id="sans.models.AddComponent.AddComponent._clone"> 137 <tt class="descname">_clone</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.AddComponent.AddComponent._clone" title="Permalink to this definition">¶</a></dt> 138 <dd><p>Internal utility function to copy the internal 139 data members to a fresh copy.</p> 140 </dd></dl> 141 142 <dl class="method"> 78 143 <dt id="sans.models.AddComponent.AddComponent.calculate_ER"> 79 144 <tt class="descname">calculate_ER</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.AddComponent.AddComponent.calculate_ER" title="Permalink to this definition">¶</a></dt> … … 88 153 <dl class="method"> 89 154 <dt id="sans.models.AddComponent.AddComponent.evalDistribution"> 90 <tt class="descname">evalDistribution</tt><big>(</big>< em>qdist</em><big>)</big><a class="headerlink" href="#sans.models.AddComponent.AddComponent.evalDistribution" title="Permalink to this definition">¶</a></dt>155 <tt class="descname">evalDistribution</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.AddComponent.AddComponent.evalDistribution" title="Permalink to this definition">¶</a></dt> 91 156 <dd><p>Evaluate a distribution of q-values.</p> 92 157 <ul> … … 113 178 <col class="field-body" /> 114 179 <tbody valign="top"> 115 <tr class="field "><th class="field-name">Note :</th><td class="field-body"><p class="first">Due to 2D speed issue, no anisotropic scattering180 <tr class="field-odd field"><th class="field-name">Note :</th><td class="field-body"><p class="first">Due to 2D speed issue, no anisotropic scattering 116 181 is supported for python models, thus C-models should have</p> 117 182 <blockquote class="last"> … … 129 194 <col class="field-body" /> 130 195 <tbody valign="top"> 131 <tr class="field "><th class="field-name">Parameters:</th><td class="field-body"><strong>qdist</strong> – ndarray of scalar q-values or list [qx,qy]196 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>qdist</strong> – ndarray of scalar q-values or list [qx,qy] 132 197 where qx,qy are 1D ndarrays</td> 133 198 </tr> … … 144 209 <dl class="method"> 145 210 <dt id="sans.models.AddComponent.AddComponent.getParam"> 146 <tt class="descname">getParam</tt><big>(</big>< em>name</em><big>)</big><a class="headerlink" href="#sans.models.AddComponent.AddComponent.getParam" title="Permalink to this definition">¶</a></dt>211 <tt class="descname">getParam</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.AddComponent.AddComponent.getParam" title="Permalink to this definition">¶</a></dt> 147 212 <dd><p>Set the value of a model parameter</p> 148 213 <table class="docutils field-list" frame="void" rules="none"> … … 150 215 <col class="field-body" /> 151 216 <tbody valign="top"> 152 <tr class="field "><th class="field-name">Parameters:</th><td class="field-body"><strong>name</strong> – name of the parameter</td>153 </tr> 154 <tr class="field "><th class="field-name">Returns:</th><td class="field-body">value of the parameter</td>217 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>name</strong> – name of the parameter</td> 218 </tr> 219 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">value of the parameter</td> 155 220 </tr> 156 221 </tbody> … … 166 231 <dl class="method"> 167 232 <dt id="sans.models.AddComponent.AddComponent.getParamListWithToken"> 168 <tt class="descname">getParamListWithToken</tt><big>(</big>< em>token</em>, <em>member</em><big>)</big><a class="headerlink" href="#sans.models.AddComponent.AddComponent.getParamListWithToken" title="Permalink to this definition">¶</a></dt>233 <tt class="descname">getParamListWithToken</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.AddComponent.AddComponent.getParamListWithToken" title="Permalink to this definition">¶</a></dt> 169 234 <dd></dd></dl> 170 235 171 236 <dl class="method"> 172 237 <dt id="sans.models.AddComponent.AddComponent.getParamWithToken"> 173 <tt class="descname">getParamWithToken</tt><big>(</big>< em>name</em>, <em>token</em>, <em>member</em><big>)</big><a class="headerlink" href="#sans.models.AddComponent.AddComponent.getParamWithToken" title="Permalink to this definition">¶</a></dt>238 <tt class="descname">getParamWithToken</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.AddComponent.AddComponent.getParamWithToken" title="Permalink to this definition">¶</a></dt> 174 239 <dd></dd></dl> 175 240 176 241 <dl class="method"> 177 242 <dt id="sans.models.AddComponent.AddComponent.is_fittable"> 178 <tt class="descname">is_fittable</tt><big>(</big>< em>par_name</em><big>)</big><a class="headerlink" href="#sans.models.AddComponent.AddComponent.is_fittable" title="Permalink to this definition">¶</a></dt>243 <tt class="descname">is_fittable</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.AddComponent.AddComponent.is_fittable" title="Permalink to this definition">¶</a></dt> 179 244 <dd><p>Check if a given parameter is fittable or not</p> 180 245 <table class="docutils field-list" frame="void" rules="none"> … … 182 247 <col class="field-body" /> 183 248 <tbody valign="top"> 184 <tr class="field "><th class="field-name">Parameters:</th><td class="field-body"><strong>par_name</strong> – the parameter name to check</td>249 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>par_name</strong> – the parameter name to check</td> 185 250 </tr> 186 251 </tbody> … … 190 255 <dl class="method"> 191 256 <dt id="sans.models.AddComponent.AddComponent.run"> 192 <tt class="descname">run</tt><big>(</big>< em>x=0</em><big>)</big><a class="headerlink" href="#sans.models.AddComponent.AddComponent.run" title="Permalink to this definition">¶</a></dt>257 <tt class="descname">run</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.AddComponent.AddComponent.run" title="Permalink to this definition">¶</a></dt> 193 258 <dd><p>Evaluate each part of the component and sum the results</p> 194 259 <table class="docutils field-list" frame="void" rules="none"> … … 196 261 <col class="field-body" /> 197 262 <tbody valign="top"> 198 <tr class="field "><th class="field-name">Parameters:</th><td class="field-body"><strong>x</strong> – input parameter</td>199 </tr> 200 <tr class="field "><th class="field-name">Returns:</th><td class="field-body">value of the model at x</td>263 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>x</strong> – input parameter</td> 264 </tr> 265 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">value of the model at x</td> 201 266 </tr> 202 267 </tbody> … … 206 271 <dl class="method"> 207 272 <dt id="sans.models.AddComponent.AddComponent.runXY"> 208 <tt class="descname">runXY</tt><big>(</big>< em>x=0</em><big>)</big><a class="headerlink" href="#sans.models.AddComponent.AddComponent.runXY" title="Permalink to this definition">¶</a></dt>273 <tt class="descname">runXY</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.AddComponent.AddComponent.runXY" title="Permalink to this definition">¶</a></dt> 209 274 <dd><p>Evaluate each part of the component and sum the results</p> 210 275 <table class="docutils field-list" frame="void" rules="none"> … … 212 277 <col class="field-body" /> 213 278 <tbody valign="top"> 214 <tr class="field "><th class="field-name">Parameters:</th><td class="field-body"><strong>x</strong> – input parameter</td>215 </tr> 216 <tr class="field "><th class="field-name">Returns:</th><td class="field-body">value of the model at x</td>279 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>x</strong> – input parameter</td> 280 </tr> 281 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">value of the model at x</td> 217 282 </tr> 218 283 </tbody> … … 222 287 <dl class="method"> 223 288 <dt id="sans.models.AddComponent.AddComponent.setParam"> 224 <tt class="descname">setParam</tt><big>(</big>< em>name</em>, <em>value</em><big>)</big><a class="headerlink" href="#sans.models.AddComponent.AddComponent.setParam" title="Permalink to this definition">¶</a></dt>289 <tt class="descname">setParam</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.AddComponent.AddComponent.setParam" title="Permalink to this definition">¶</a></dt> 225 290 <dd><p>Set the value of a model parameter</p> 226 291 <table class="docutils field-list" frame="void" rules="none"> … … 228 293 <col class="field-body" /> 229 294 <tbody valign="top"> 230 <tr class="field "><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">295 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> 231 296 <li><strong>name</strong> – name of parameter to set</li> 232 297 <li><strong>value</strong> – value to give the paramter</li> … … 240 305 <dl class="method"> 241 306 <dt id="sans.models.AddComponent.AddComponent.setParamWithToken"> 242 <tt class="descname">setParamWithToken</tt><big>(</big>< em>name</em>, <em>value</em>, <em>token</em>, <em>member</em><big>)</big><a class="headerlink" href="#sans.models.AddComponent.AddComponent.setParamWithToken" title="Permalink to this definition">¶</a></dt>307 <tt class="descname">setParamWithToken</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.AddComponent.AddComponent.setParamWithToken" title="Permalink to this definition">¶</a></dt> 243 308 <dd></dd></dl> 244 309 … … 257 322 <ul> 258 323 <li><a class="reference internal" href="#">AddComponent</a><ul> 259 <li><a class="reference internal" href="# module-sans.models.AddComponent"><tt class="docutils literal"><span class="pre">sans.models.AddComponent</span></tt></a></li>324 <li><a class="reference internal" href="#sans-models-addcomponent"><tt class="docutils literal"><span class="pre">sans.models.AddComponent</span></tt></a></li> 260 325 </ul> 261 326 </li> … … 276 341 <h3>Quick search</h3> 277 342 <form class="search" action="../search.html" method="get"> 278 <input type="text" name="q" size="18"/>343 <input type="text" name="q" /> 279 344 <input type="submit" value="Go" /> 280 345 <input type="hidden" name="check_keywords" value="yes" /> … … 305 370 <a href="index.html" title="Reference" 306 371 >previous</a> |</li> 307 <li><a href="../index.html">sansmodels v0.1.0 documentation</a> »</li>372 <li><a href="../index.html">sansmodels 0.1.0 documentation</a> »</li> 308 373 <li><a href="index.html" >Reference</a> »</li> 309 374 </ul> … … 311 376 <div class="footer"> 312 377 © Copyright 2010, sans group. 313 Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1. 0.7.378 Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1. 314 379 </div> 315 380 </body>
Note: See TracChangeset
for help on using the changeset viewer.