Changeset c0d873f in sasview for sansmodels/docs/sphinx/html/api/pluginmodel.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/pluginmodel.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>pluginmodel — sansmodels v0.1.0 documentation</title> 11 <title>pluginmodel — 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="PolymerExclVolume" href="PolymerExclVolume.html" /> … … 44 47 <a href="PearlNecklaceModel.html" title="PearlNecklaceModel" 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="pluginmodel"> 57 60 <h1>pluginmodel<a class="headerlink" href="#pluginmodel" title="Permalink to this headline">¶</a></h1> 58 <div class="section" id=" module-sans.models.pluginmodel">59 < span id="sans-models-pluginmodel"></span><h2><a class="reference internal" href="#module-sans.models.pluginmodel" title="sans.models.pluginmodel"><tt class="xref py py-mod docutils literal"><span class="pre">sans.models.pluginmodel</span></tt></a><a class="headerlink" href="#module-sans.models.pluginmodel" title="Permalink to this headline">¶</a></h2>60 < dl class="class">61 <div class="section" id="sans-models-pluginmodel"> 62 <h2><a class="reference internal" href="#module-sans.models.pluginmodel" title="sans.models.pluginmodel"><tt class="xref py py-mod docutils literal"><span class="pre">sans.models.pluginmodel</span></tt></a><a class="headerlink" href="#sans-models-pluginmodel" title="Permalink to this headline">¶</a></h2> 63 <span class="target" id="module-sans.models.pluginmodel"></span><dl class="class"> 61 64 <dt id="sans.models.pluginmodel.Model1DPlugin"> 62 <em class="property">class </em><tt class="descclassname">sans.models.pluginmodel.</tt><tt class="descname">Model1DPlugin</tt>< big>(</big><em>name='Plugin Model'</em><big>)</big><a class="headerlink" href="#sans.models.pluginmodel.Model1DPlugin" title="Permalink to this definition">¶</a></dt>65 <em class="property">class </em><tt class="descclassname">sans.models.pluginmodel.</tt><tt class="descname">Model1DPlugin</tt><a class="headerlink" href="#sans.models.pluginmodel.Model1DPlugin" title="Permalink to this definition">¶</a></dt> 63 66 <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> 67 <dl class="method"> 68 <dt id="sans.models.pluginmodel.Model1DPlugin.__add__"> 69 <tt class="descname">__add__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.pluginmodel.Model1DPlugin.__add__" title="Permalink to this definition">¶</a></dt> 70 <dd></dd></dl> 71 72 <dl class="method"> 73 <dt id="sans.models.pluginmodel.Model1DPlugin.__div__"> 74 <tt class="descname">__div__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.pluginmodel.Model1DPlugin.__div__" title="Permalink to this definition">¶</a></dt> 75 <dd></dd></dl> 76 77 <dl class="method"> 78 <dt id="sans.models.pluginmodel.Model1DPlugin.__init__"> 79 <tt class="descname">__init__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.pluginmodel.Model1DPlugin.__init__" title="Permalink to this definition">¶</a></dt> 80 <dd><p>Initialization</p> 81 </dd></dl> 82 83 <dl class="attribute"> 84 <dt id="sans.models.pluginmodel.Model1DPlugin.__module__"> 85 <tt class="descname">__module__</tt><em class="property"> = 'sans.models.pluginmodel'</em><a class="headerlink" href="#sans.models.pluginmodel.Model1DPlugin.__module__" title="Permalink to this definition">¶</a></dt> 86 <dd></dd></dl> 87 88 <dl class="method"> 89 <dt id="sans.models.pluginmodel.Model1DPlugin.__mul__"> 90 <tt class="descname">__mul__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.pluginmodel.Model1DPlugin.__mul__" title="Permalink to this definition">¶</a></dt> 91 <dd></dd></dl> 92 93 <dl class="method"> 94 <dt id="sans.models.pluginmodel.Model1DPlugin.__str__"> 95 <tt class="descname">__str__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.pluginmodel.Model1DPlugin.__str__" title="Permalink to this definition">¶</a></dt> 96 <dd><table class="docutils field-list" frame="void" rules="none"> 97 <col class="field-name" /> 98 <col class="field-body" /> 99 <tbody valign="top"> 100 <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">string representatio</td> 101 </tr> 102 </tbody> 103 </table> 104 </dd></dl> 105 106 <dl class="method"> 107 <dt id="sans.models.pluginmodel.Model1DPlugin.__sub__"> 108 <tt class="descname">__sub__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.pluginmodel.Model1DPlugin.__sub__" title="Permalink to this definition">¶</a></dt> 109 <dd></dd></dl> 110 111 <dl class="method"> 112 <dt id="sans.models.pluginmodel.Model1DPlugin._clone"> 113 <tt class="descname">_clone</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.pluginmodel.Model1DPlugin._clone" title="Permalink to this definition">¶</a></dt> 114 <dd><p>Internal utility function to copy the internal 115 data members to a fresh copy.</p> 116 </dd></dl> 117 64 118 <dl class="method"> 65 119 <dt id="sans.models.pluginmodel.Model1DPlugin.calculate_ER"> … … 75 129 <dl class="method"> 76 130 <dt id="sans.models.pluginmodel.Model1DPlugin.evalDistribution"> 77 <tt class="descname">evalDistribution</tt><big>(</big>< em>qdist</em><big>)</big><a class="headerlink" href="#sans.models.pluginmodel.Model1DPlugin.evalDistribution" title="Permalink to this definition">¶</a></dt>131 <tt class="descname">evalDistribution</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.pluginmodel.Model1DPlugin.evalDistribution" title="Permalink to this definition">¶</a></dt> 78 132 <dd><p>Evaluate a distribution of q-values.</p> 79 133 <ul> … … 100 154 <col class="field-body" /> 101 155 <tbody valign="top"> 102 <tr class="field "><th class="field-name">Note :</th><td class="field-body"><p class="first">Due to 2D speed issue, no anisotropic scattering156 <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 103 157 is supported for python models, thus C-models should have</p> 104 158 <blockquote class="last"> … … 116 170 <col class="field-body" /> 117 171 <tbody valign="top"> 118 <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]172 <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] 119 173 where qx,qy are 1D ndarrays</td> 120 174 </tr> … … 125 179 <dl class="method"> 126 180 <dt id="sans.models.pluginmodel.Model1DPlugin.function"> 127 <tt class="descname">function</tt><big>(</big>< em>x</em><big>)</big><a class="headerlink" href="#sans.models.pluginmodel.Model1DPlugin.function" title="Permalink to this definition">¶</a></dt>181 <tt class="descname">function</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.pluginmodel.Model1DPlugin.function" title="Permalink to this definition">¶</a></dt> 128 182 <dd><p>Function to be implemented by the plug-in writer</p> 129 183 </dd></dl> … … 137 191 <dl class="method"> 138 192 <dt id="sans.models.pluginmodel.Model1DPlugin.getParam"> 139 <tt class="descname">getParam</tt><big>(</big>< em>name</em><big>)</big><a class="headerlink" href="#sans.models.pluginmodel.Model1DPlugin.getParam" title="Permalink to this definition">¶</a></dt>193 <tt class="descname">getParam</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.pluginmodel.Model1DPlugin.getParam" title="Permalink to this definition">¶</a></dt> 140 194 <dd><p>Set the value of a model parameter</p> 141 195 <table class="docutils field-list" frame="void" rules="none"> … … 143 197 <col class="field-body" /> 144 198 <tbody valign="top"> 145 <tr class="field "><th class="field-name">Parameters:</th><td class="field-body"><strong>name</strong> – name of the parameter</td>199 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>name</strong> – name of the parameter</td> 146 200 </tr> 147 201 </tbody> … … 157 211 <dl class="method"> 158 212 <dt id="sans.models.pluginmodel.Model1DPlugin.getParamListWithToken"> 159 <tt class="descname">getParamListWithToken</tt><big>(</big>< em>token</em>, <em>member</em><big>)</big><a class="headerlink" href="#sans.models.pluginmodel.Model1DPlugin.getParamListWithToken" title="Permalink to this definition">¶</a></dt>213 <tt class="descname">getParamListWithToken</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.pluginmodel.Model1DPlugin.getParamListWithToken" title="Permalink to this definition">¶</a></dt> 160 214 <dd></dd></dl> 161 215 162 216 <dl class="method"> 163 217 <dt id="sans.models.pluginmodel.Model1DPlugin.getParamWithToken"> 164 <tt class="descname">getParamWithToken</tt><big>(</big>< em>name</em>, <em>token</em>, <em>member</em><big>)</big><a class="headerlink" href="#sans.models.pluginmodel.Model1DPlugin.getParamWithToken" title="Permalink to this definition">¶</a></dt>218 <tt class="descname">getParamWithToken</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.pluginmodel.Model1DPlugin.getParamWithToken" title="Permalink to this definition">¶</a></dt> 165 219 <dd></dd></dl> 166 220 167 221 <dl class="method"> 168 222 <dt id="sans.models.pluginmodel.Model1DPlugin.is_fittable"> 169 <tt class="descname">is_fittable</tt><big>(</big>< em>par_name</em><big>)</big><a class="headerlink" href="#sans.models.pluginmodel.Model1DPlugin.is_fittable" title="Permalink to this definition">¶</a></dt>223 <tt class="descname">is_fittable</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.pluginmodel.Model1DPlugin.is_fittable" title="Permalink to this definition">¶</a></dt> 170 224 <dd><p>Check if a given parameter is fittable or not</p> 171 225 <table class="docutils field-list" frame="void" rules="none"> … … 173 227 <col class="field-body" /> 174 228 <tbody valign="top"> 175 <tr class="field "><th class="field-name">Parameters:</th><td class="field-body"><strong>par_name</strong> – the parameter name to check</td>229 <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> 176 230 </tr> 177 231 </tbody> … … 181 235 <dl class="method"> 182 236 <dt id="sans.models.pluginmodel.Model1DPlugin.run"> 183 <tt class="descname">run</tt><big>(</big>< em>x=0.0</em><big>)</big><a class="headerlink" href="#sans.models.pluginmodel.Model1DPlugin.run" title="Permalink to this definition">¶</a></dt>237 <tt class="descname">run</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.pluginmodel.Model1DPlugin.run" title="Permalink to this definition">¶</a></dt> 184 238 <dd><p>Evaluate the model</p> 185 239 <table class="docutils field-list" frame="void" rules="none"> … … 187 241 <col class="field-body" /> 188 242 <tbody valign="top"> 189 <tr class="field "><th class="field-name">Parameters:</th><td class="field-body"><strong>x</strong> – input x, or [x, phi] [radian]</td>190 </tr> 191 <tr class="field "><th class="field-name">Returns:</th><td class="field-body">function value</td>243 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>x</strong> – input x, or [x, phi] [radian]</td> 244 </tr> 245 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">function value</td> 192 246 </tr> 193 247 </tbody> … … 197 251 <dl class="method"> 198 252 <dt id="sans.models.pluginmodel.Model1DPlugin.runXY"> 199 <tt class="descname">runXY</tt><big>(</big>< em>x=0.0</em><big>)</big><a class="headerlink" href="#sans.models.pluginmodel.Model1DPlugin.runXY" title="Permalink to this definition">¶</a></dt>253 <tt class="descname">runXY</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.pluginmodel.Model1DPlugin.runXY" title="Permalink to this definition">¶</a></dt> 200 254 <dd><p>Evaluate the model</p> 201 255 <table class="docutils field-list" frame="void" rules="none"> … … 203 257 <col class="field-body" /> 204 258 <tbody valign="top"> 205 <tr class="field "><th class="field-name">Parameters:</th><td class="field-body"><strong>x</strong> – input x, or [x, y]</td>206 </tr> 207 <tr class="field "><th class="field-name">Returns:</th><td class="field-body">function value</td>259 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>x</strong> – input x, or [x, y]</td> 260 </tr> 261 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">function value</td> 208 262 </tr> 209 263 </tbody> … … 213 267 <dl class="method"> 214 268 <dt id="sans.models.pluginmodel.Model1DPlugin.setParam"> 215 <tt class="descname">setParam</tt><big>(</big>< em>name</em>, <em>value</em><big>)</big><a class="headerlink" href="#sans.models.pluginmodel.Model1DPlugin.setParam" title="Permalink to this definition">¶</a></dt>269 <tt class="descname">setParam</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.pluginmodel.Model1DPlugin.setParam" title="Permalink to this definition">¶</a></dt> 216 270 <dd><p>Set the value of a model parameter</p> 217 271 <table class="docutils field-list" frame="void" rules="none"> … … 219 273 <col class="field-body" /> 220 274 <tbody valign="top"> 221 <tr class="field "><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">275 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> 222 276 <li><strong>name</strong> – name of the parameter</li> 223 277 <li><strong>value</strong> – value of the parameter</li> … … 231 285 <dl class="method"> 232 286 <dt id="sans.models.pluginmodel.Model1DPlugin.setParamWithToken"> 233 <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.pluginmodel.Model1DPlugin.setParamWithToken" title="Permalink to this definition">¶</a></dt>287 <tt class="descname">setParamWithToken</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.pluginmodel.Model1DPlugin.setParamWithToken" title="Permalink to this definition">¶</a></dt> 234 288 <dd></dd></dl> 235 289 … … 248 302 <ul> 249 303 <li><a class="reference internal" href="#">pluginmodel</a><ul> 250 <li><a class="reference internal" href="# module-sans.models.pluginmodel"><tt class="docutils literal"><span class="pre">sans.models.pluginmodel</span></tt></a></li>304 <li><a class="reference internal" href="#sans-models-pluginmodel"><tt class="docutils literal"><span class="pre">sans.models.pluginmodel</span></tt></a></li> 251 305 </ul> 252 306 </li> … … 267 321 <h3>Quick search</h3> 268 322 <form class="search" action="../search.html" method="get"> 269 <input type="text" name="q" size="18"/>323 <input type="text" name="q" /> 270 324 <input type="submit" value="Go" /> 271 325 <input type="hidden" name="check_keywords" value="yes" /> … … 296 350 <a href="PearlNecklaceModel.html" title="PearlNecklaceModel" 297 351 >previous</a> |</li> 298 <li><a href="../index.html">sansmodels v0.1.0 documentation</a> »</li>352 <li><a href="../index.html">sansmodels 0.1.0 documentation</a> »</li> 299 353 <li><a href="index.html" >Reference</a> »</li> 300 354 </ul> … … 302 356 <div class="footer"> 303 357 © Copyright 2010, sans group. 304 Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1. 0.7.358 Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1. 305 359 </div> 306 360 </body>
Note: See TracChangeset
for help on using the changeset viewer.