Changeset c0d873f in sasview for sansmodels/docs/sphinx/html/api/Constant.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/Constant.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>Constant — sansmodels v0.1.0 documentation</title> 11 <title>Constant — 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="CoreFourShellModel" href="CoreFourShellModel.html" /> … … 44 47 <a href="CappedCylinderModel.html" title="CappedCylinderModel" 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="constant"> 57 60 <h1>Constant<a class="headerlink" href="#constant" title="Permalink to this headline">¶</a></h1> 58 <div class="section" id=" module-sans.models.Constant">59 < span id="sans-models-constant"></span><h2><a class="reference internal" href="#module-sans.models.Constant" title="sans.models.Constant"><tt class="xref py py-mod docutils literal"><span class="pre">sans.models.Constant</span></tt></a><a class="headerlink" href="#module-sans.models.Constant" title="Permalink to this headline">¶</a></h2>60 < p>Provide constant function as a BaseComponent model</p>61 <div class="section" id="sans-models-constant"> 62 <h2><a class="reference internal" href="#module-sans.models.Constant" title="sans.models.Constant"><tt class="xref py py-mod docutils literal"><span class="pre">sans.models.Constant</span></tt></a><a class="headerlink" href="#sans-models-constant" title="Permalink to this headline">¶</a></h2> 63 <span class="target" id="module-sans.models.Constant"></span><p>Provide constant function as a BaseComponent model</p> 61 64 <dl class="class"> 62 65 <dt id="sans.models.Constant.Constant"> … … 68 71 <div>value = 1.0</div></blockquote> 69 72 <dl class="method"> 73 <dt id="sans.models.Constant.Constant.__add__"> 74 <tt class="descname">__add__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.Constant.Constant.__add__" title="Permalink to this definition">¶</a></dt> 75 <dd></dd></dl> 76 77 <dl class="method"> 78 <dt id="sans.models.Constant.Constant.__div__"> 79 <tt class="descname">__div__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.Constant.Constant.__div__" title="Permalink to this definition">¶</a></dt> 80 <dd></dd></dl> 81 82 <dl class="method"> 83 <dt id="sans.models.Constant.Constant.__init__"> 84 <tt class="descname">__init__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.Constant.Constant.__init__" title="Permalink to this definition">¶</a></dt> 85 <dd><p>Initialization</p> 86 </dd></dl> 87 88 <dl class="attribute"> 89 <dt id="sans.models.Constant.Constant.__module__"> 90 <tt class="descname">__module__</tt><em class="property"> = 'sans.models.Constant'</em><a class="headerlink" href="#sans.models.Constant.Constant.__module__" title="Permalink to this definition">¶</a></dt> 91 <dd></dd></dl> 92 93 <dl class="method"> 94 <dt id="sans.models.Constant.Constant.__mul__"> 95 <tt class="descname">__mul__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.Constant.Constant.__mul__" title="Permalink to this definition">¶</a></dt> 96 <dd></dd></dl> 97 98 <dl class="method"> 99 <dt id="sans.models.Constant.Constant.__str__"> 100 <tt class="descname">__str__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.Constant.Constant.__str__" title="Permalink to this definition">¶</a></dt> 101 <dd><table class="docutils field-list" frame="void" rules="none"> 102 <col class="field-name" /> 103 <col class="field-body" /> 104 <tbody valign="top"> 105 <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">string representatio</td> 106 </tr> 107 </tbody> 108 </table> 109 </dd></dl> 110 111 <dl class="method"> 112 <dt id="sans.models.Constant.Constant.__sub__"> 113 <tt class="descname">__sub__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.Constant.Constant.__sub__" title="Permalink to this definition">¶</a></dt> 114 <dd></dd></dl> 115 116 <dl class="method"> 117 <dt id="sans.models.Constant.Constant._clone"> 118 <tt class="descname">_clone</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.Constant.Constant._clone" title="Permalink to this definition">¶</a></dt> 119 <dd><p>Internal utility function to copy the internal 120 data members to a fresh copy.</p> 121 </dd></dl> 122 123 <dl class="method"> 70 124 <dt id="sans.models.Constant.Constant.calculate_ER"> 71 125 <tt class="descname">calculate_ER</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.Constant.Constant.calculate_ER" title="Permalink to this definition">¶</a></dt> … … 80 134 <dl class="method"> 81 135 <dt id="sans.models.Constant.Constant.evalDistribution"> 82 <tt class="descname">evalDistribution</tt><big>(</big>< em>qdist</em><big>)</big><a class="headerlink" href="#sans.models.Constant.Constant.evalDistribution" title="Permalink to this definition">¶</a></dt>136 <tt class="descname">evalDistribution</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.Constant.Constant.evalDistribution" title="Permalink to this definition">¶</a></dt> 83 137 <dd><p>Evaluate a distribution of q-values.</p> 84 138 <ul> … … 105 159 <col class="field-body" /> 106 160 <tbody valign="top"> 107 <tr class="field "><th class="field-name">Note :</th><td class="field-body"><p class="first">Due to 2D speed issue, no anisotropic scattering161 <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 108 162 is supported for python models, thus C-models should have</p> 109 163 <blockquote class="last"> … … 121 175 <col class="field-body" /> 122 176 <tbody valign="top"> 123 <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]177 <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] 124 178 where qx,qy are 1D ndarrays</td> 125 179 </tr> … … 136 190 <dl class="method"> 137 191 <dt id="sans.models.Constant.Constant.getParam"> 138 <tt class="descname">getParam</tt><big>(</big>< em>name</em><big>)</big><a class="headerlink" href="#sans.models.Constant.Constant.getParam" title="Permalink to this definition">¶</a></dt>192 <tt class="descname">getParam</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.Constant.Constant.getParam" title="Permalink to this definition">¶</a></dt> 139 193 <dd><p>Set the value of a model parameter</p> 140 194 <table class="docutils field-list" frame="void" rules="none"> … … 142 196 <col class="field-body" /> 143 197 <tbody valign="top"> 144 <tr class="field "><th class="field-name">Parameters:</th><td class="field-body"><strong>name</strong> – name of the parameter</td>198 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>name</strong> – name of the parameter</td> 145 199 </tr> 146 200 </tbody> … … 156 210 <dl class="method"> 157 211 <dt id="sans.models.Constant.Constant.getParamListWithToken"> 158 <tt class="descname">getParamListWithToken</tt><big>(</big>< em>token</em>, <em>member</em><big>)</big><a class="headerlink" href="#sans.models.Constant.Constant.getParamListWithToken" title="Permalink to this definition">¶</a></dt>212 <tt class="descname">getParamListWithToken</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.Constant.Constant.getParamListWithToken" title="Permalink to this definition">¶</a></dt> 159 213 <dd></dd></dl> 160 214 161 215 <dl class="method"> 162 216 <dt id="sans.models.Constant.Constant.getParamWithToken"> 163 <tt class="descname">getParamWithToken</tt><big>(</big>< em>name</em>, <em>token</em>, <em>member</em><big>)</big><a class="headerlink" href="#sans.models.Constant.Constant.getParamWithToken" title="Permalink to this definition">¶</a></dt>217 <tt class="descname">getParamWithToken</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.Constant.Constant.getParamWithToken" title="Permalink to this definition">¶</a></dt> 164 218 <dd></dd></dl> 165 219 166 220 <dl class="method"> 167 221 <dt id="sans.models.Constant.Constant.is_fittable"> 168 <tt class="descname">is_fittable</tt><big>(</big>< em>par_name</em><big>)</big><a class="headerlink" href="#sans.models.Constant.Constant.is_fittable" title="Permalink to this definition">¶</a></dt>222 <tt class="descname">is_fittable</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.Constant.Constant.is_fittable" title="Permalink to this definition">¶</a></dt> 169 223 <dd><p>Check if a given parameter is fittable or not</p> 170 224 <table class="docutils field-list" frame="void" rules="none"> … … 172 226 <col class="field-body" /> 173 227 <tbody valign="top"> 174 <tr class="field "><th class="field-name">Parameters:</th><td class="field-body"><strong>par_name</strong> – the parameter name to check</td>228 <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> 175 229 </tr> 176 230 </tbody> … … 180 234 <dl class="method"> 181 235 <dt id="sans.models.Constant.Constant.run"> 182 <tt class="descname">run</tt><big>(</big>< em>x=0.0</em><big>)</big><a class="headerlink" href="#sans.models.Constant.Constant.run" title="Permalink to this definition">¶</a></dt>236 <tt class="descname">run</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.Constant.Constant.run" title="Permalink to this definition">¶</a></dt> 183 237 <dd><p>Evaluate the model 184 238 @param x: unused … … 188 242 <dl class="method"> 189 243 <dt id="sans.models.Constant.Constant.runXY"> 190 <tt class="descname">runXY</tt><big>(</big>< em>x=0.0</em><big>)</big><a class="headerlink" href="#sans.models.Constant.Constant.runXY" title="Permalink to this definition">¶</a></dt>244 <tt class="descname">runXY</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.Constant.Constant.runXY" title="Permalink to this definition">¶</a></dt> 191 245 <dd><p>Evaluate the model 192 246 @param x: unused … … 196 250 <dl class="method"> 197 251 <dt id="sans.models.Constant.Constant.setParam"> 198 <tt class="descname">setParam</tt><big>(</big>< em>name</em>, <em>value</em><big>)</big><a class="headerlink" href="#sans.models.Constant.Constant.setParam" title="Permalink to this definition">¶</a></dt>252 <tt class="descname">setParam</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.Constant.Constant.setParam" title="Permalink to this definition">¶</a></dt> 199 253 <dd><p>Set the value of a model parameter</p> 200 254 <table class="docutils field-list" frame="void" rules="none"> … … 202 256 <col class="field-body" /> 203 257 <tbody valign="top"> 204 <tr class="field "><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">258 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> 205 259 <li><strong>name</strong> – name of the parameter</li> 206 260 <li><strong>value</strong> – value of the parameter</li> … … 214 268 <dl class="method"> 215 269 <dt id="sans.models.Constant.Constant.setParamWithToken"> 216 <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.Constant.Constant.setParamWithToken" title="Permalink to this definition">¶</a></dt>270 <tt class="descname">setParamWithToken</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.Constant.Constant.setParamWithToken" title="Permalink to this definition">¶</a></dt> 217 271 <dd></dd></dl> 218 272 … … 231 285 <ul> 232 286 <li><a class="reference internal" href="#">Constant</a><ul> 233 <li><a class="reference internal" href="# module-sans.models.Constant"><tt class="docutils literal"><span class="pre">sans.models.Constant</span></tt></a></li>287 <li><a class="reference internal" href="#sans-models-constant"><tt class="docutils literal"><span class="pre">sans.models.Constant</span></tt></a></li> 234 288 </ul> 235 289 </li> … … 250 304 <h3>Quick search</h3> 251 305 <form class="search" action="../search.html" method="get"> 252 <input type="text" name="q" size="18"/>306 <input type="text" name="q" /> 253 307 <input type="submit" value="Go" /> 254 308 <input type="hidden" name="check_keywords" value="yes" /> … … 279 333 <a href="CappedCylinderModel.html" title="CappedCylinderModel" 280 334 >previous</a> |</li> 281 <li><a href="../index.html">sansmodels v0.1.0 documentation</a> »</li>335 <li><a href="../index.html">sansmodels 0.1.0 documentation</a> »</li> 282 336 <li><a href="index.html" >Reference</a> »</li> 283 337 </ul> … … 285 339 <div class="footer"> 286 340 © Copyright 2010, sans group. 287 Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1. 0.7.341 Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1. 288 342 </div> 289 343 </body>
Note: See TracChangeset
for help on using the changeset viewer.