[512573a] | 1 | |
---|
| 2 | |
---|
| 3 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
---|
| 4 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
---|
| 5 | |
---|
[c0d873f] | 6 | |
---|
[512573a] | 7 | <html xmlns="http://www.w3.org/1999/xhtml"> |
---|
| 8 | <head> |
---|
| 9 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
---|
| 10 | |
---|
[c0d873f] | 11 | <title>SphereModel — sansmodels 0.1.0 documentation</title> |
---|
| 12 | |
---|
[512573a] | 13 | <link rel="stylesheet" href="../_static/default.css" type="text/css" /> |
---|
| 14 | <link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> |
---|
[c0d873f] | 15 | |
---|
[512573a] | 16 | <script type="text/javascript"> |
---|
| 17 | var DOCUMENTATION_OPTIONS = { |
---|
| 18 | URL_ROOT: '../', |
---|
| 19 | VERSION: '0.1.0', |
---|
| 20 | COLLAPSE_INDEX: false, |
---|
| 21 | FILE_SUFFIX: '.html', |
---|
| 22 | HAS_SOURCE: true |
---|
| 23 | }; |
---|
| 24 | </script> |
---|
| 25 | <script type="text/javascript" src="../_static/jquery.js"></script> |
---|
| 26 | <script type="text/javascript" src="../_static/underscore.js"></script> |
---|
| 27 | <script type="text/javascript" src="../_static/doctools.js"></script> |
---|
[c0d873f] | 28 | <link rel="top" title="sansmodels 0.1.0 documentation" href="../index.html" /> |
---|
[512573a] | 29 | <link rel="up" title="Reference" href="index.html" /> |
---|
| 30 | <link rel="next" title="SphereSLDModel" href="SphereSLDModel.html" /> |
---|
| 31 | <link rel="prev" title="smearing_2d" href="smearing_2d.html" /> |
---|
| 32 | </head> |
---|
| 33 | <body> |
---|
| 34 | <div class="related"> |
---|
| 35 | <h3>Navigation</h3> |
---|
| 36 | <ul> |
---|
| 37 | <li class="right" style="margin-right: 10px"> |
---|
| 38 | <a href="../genindex.html" title="General Index" |
---|
| 39 | accesskey="I">index</a></li> |
---|
| 40 | <li class="right" > |
---|
| 41 | <a href="../py-modindex.html" title="Python Module Index" |
---|
| 42 | >modules</a> |</li> |
---|
| 43 | <li class="right" > |
---|
| 44 | <a href="SphereSLDModel.html" title="SphereSLDModel" |
---|
| 45 | accesskey="N">next</a> |</li> |
---|
| 46 | <li class="right" > |
---|
| 47 | <a href="smearing_2d.html" title="smearing_2d" |
---|
| 48 | accesskey="P">previous</a> |</li> |
---|
[c0d873f] | 49 | <li><a href="../index.html">sansmodels 0.1.0 documentation</a> »</li> |
---|
[512573a] | 50 | <li><a href="index.html" accesskey="U">Reference</a> »</li> |
---|
| 51 | </ul> |
---|
| 52 | </div> |
---|
| 53 | |
---|
| 54 | <div class="document"> |
---|
| 55 | <div class="documentwrapper"> |
---|
| 56 | <div class="bodywrapper"> |
---|
| 57 | <div class="body"> |
---|
| 58 | |
---|
| 59 | <div class="section" id="spheremodel"> |
---|
| 60 | <h1>SphereModel<a class="headerlink" href="#spheremodel" title="Permalink to this headline">¶</a></h1> |
---|
[c0d873f] | 61 | <div class="section" id="sans-models-spheremodel"> |
---|
| 62 | <h2><a class="reference internal" href="#module-sans.models.SphereModel" title="sans.models.SphereModel"><tt class="xref py py-mod docutils literal"><span class="pre">sans.models.SphereModel</span></tt></a><a class="headerlink" href="#sans-models-spheremodel" title="Permalink to this headline">¶</a></h2> |
---|
| 63 | <span class="target" id="module-sans.models.SphereModel"></span><p>Provide functionality for a C extension model</p> |
---|
[512573a] | 64 | <table class="docutils field-list" frame="void" rules="none"> |
---|
| 65 | <col class="field-name" /> |
---|
| 66 | <col class="field-body" /> |
---|
| 67 | <tbody valign="top"> |
---|
[c0d873f] | 68 | <tr class="field-odd field"><th class="field-name">WARNING:</th><td class="field-body">THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY |
---|
[512573a] | 69 | DO NOT MODIFY THIS FILE, MODIFY ..c_extensionssphere.h |
---|
| 70 | AND RE-RUN THE GENERATOR SCRIPT</td> |
---|
| 71 | </tr> |
---|
| 72 | </tbody> |
---|
| 73 | </table> |
---|
| 74 | <dl class="class"> |
---|
| 75 | <dt id="sans.models.SphereModel.SphereModel"> |
---|
| 76 | <em class="property">class </em><tt class="descclassname">sans.models.SphereModel.</tt><tt class="descname">SphereModel</tt><a class="headerlink" href="#sans.models.SphereModel.SphereModel" title="Permalink to this definition">¶</a></dt> |
---|
| 77 | <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">CSphereModel</span></tt>, <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> |
---|
| 78 | <p>Class that evaluates a SphereModel model. |
---|
| 79 | This file was auto-generated from ..c_extensionssphere.h. |
---|
| 80 | Refer to that file and the structure it contains |
---|
| 81 | for details of the model. |
---|
| 82 | List of default parameters:</p> |
---|
| 83 | <blockquote> |
---|
| 84 | <div>scale = 1.0 |
---|
| 85 | radius = 60.0 [A] |
---|
| 86 | sldSph = 2e-06 [1/A^(2)] |
---|
| 87 | sldSolv = 1e-06 [1/A^(2)] |
---|
| 88 | background = 0.0 [1/cm]</div></blockquote> |
---|
| 89 | <dl class="method"> |
---|
[c0d873f] | 90 | <dt id="sans.models.SphereModel.SphereModel.__add__"> |
---|
| 91 | <tt class="descname">__add__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.SphereModel.SphereModel.__add__" title="Permalink to this definition">¶</a></dt> |
---|
| 92 | <dd></dd></dl> |
---|
| 93 | |
---|
| 94 | <dl class="attribute"> |
---|
| 95 | <dt id="sans.models.SphereModel.SphereModel.__class__"> |
---|
| 96 | <tt class="descname">__class__</tt><a class="headerlink" href="#sans.models.SphereModel.SphereModel.__class__" title="Permalink to this definition">¶</a></dt> |
---|
| 97 | <dd><p>alias of <tt class="xref py py-class docutils literal"><span class="pre">type</span></tt></p> |
---|
| 98 | </dd></dl> |
---|
| 99 | |
---|
| 100 | <dl class="attribute"> |
---|
| 101 | <dt id="sans.models.SphereModel.SphereModel.__delattr__"> |
---|
| 102 | <tt class="descname">__delattr__</tt><a class="headerlink" href="#sans.models.SphereModel.SphereModel.__delattr__" title="Permalink to this definition">¶</a></dt> |
---|
| 103 | <dd><p>x.__delattr__(‘name’) <==> del x.name</p> |
---|
| 104 | </dd></dl> |
---|
| 105 | |
---|
| 106 | <dl class="attribute"> |
---|
| 107 | <dt id="sans.models.SphereModel.SphereModel.__dict__"> |
---|
| 108 | <tt class="descname">__dict__</tt><em class="property"> = <dictproxy object at 0x026477F0></em><a class="headerlink" href="#sans.models.SphereModel.SphereModel.__dict__" title="Permalink to this definition">¶</a></dt> |
---|
| 109 | <dd></dd></dl> |
---|
| 110 | |
---|
| 111 | <dl class="method"> |
---|
| 112 | <dt id="sans.models.SphereModel.SphereModel.__div__"> |
---|
| 113 | <tt class="descname">__div__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.SphereModel.SphereModel.__div__" title="Permalink to this definition">¶</a></dt> |
---|
| 114 | <dd></dd></dl> |
---|
| 115 | |
---|
| 116 | <dl class="attribute"> |
---|
| 117 | <dt id="sans.models.SphereModel.SphereModel.__getattribute__"> |
---|
| 118 | <tt class="descname">__getattribute__</tt><a class="headerlink" href="#sans.models.SphereModel.SphereModel.__getattribute__" title="Permalink to this definition">¶</a></dt> |
---|
| 119 | <dd><p>x.__getattribute__(‘name’) <==> x.name</p> |
---|
| 120 | </dd></dl> |
---|
| 121 | |
---|
| 122 | <dl class="attribute"> |
---|
| 123 | <dt id="sans.models.SphereModel.SphereModel.__hash__"> |
---|
| 124 | <tt class="descname">__hash__</tt><a class="headerlink" href="#sans.models.SphereModel.SphereModel.__hash__" title="Permalink to this definition">¶</a></dt> |
---|
| 125 | <dd><p>x.__hash__() <==> hash(x)</p> |
---|
| 126 | </dd></dl> |
---|
| 127 | |
---|
| 128 | <dl class="method"> |
---|
| 129 | <dt id="sans.models.SphereModel.SphereModel.__init__"> |
---|
| 130 | <tt class="descname">__init__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.SphereModel.SphereModel.__init__" title="Permalink to this definition">¶</a></dt> |
---|
| 131 | <dd><p>Initialization</p> |
---|
| 132 | </dd></dl> |
---|
| 133 | |
---|
| 134 | <dl class="attribute"> |
---|
| 135 | <dt id="sans.models.SphereModel.SphereModel.__module__"> |
---|
| 136 | <tt class="descname">__module__</tt><em class="property"> = 'sans.models.SphereModel'</em><a class="headerlink" href="#sans.models.SphereModel.SphereModel.__module__" title="Permalink to this definition">¶</a></dt> |
---|
| 137 | <dd></dd></dl> |
---|
| 138 | |
---|
| 139 | <dl class="method"> |
---|
| 140 | <dt id="sans.models.SphereModel.SphereModel.__mul__"> |
---|
| 141 | <tt class="descname">__mul__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.SphereModel.SphereModel.__mul__" title="Permalink to this definition">¶</a></dt> |
---|
| 142 | <dd></dd></dl> |
---|
| 143 | |
---|
| 144 | <dl class="staticmethod"> |
---|
| 145 | <dt id="sans.models.SphereModel.SphereModel.__new__"> |
---|
| 146 | <em class="property">static </em><tt class="descname">__new__</tt><big>(</big><em>S</em>, <em>...</em><big>)</big> → a new object with type S, a subtype of T<a class="headerlink" href="#sans.models.SphereModel.SphereModel.__new__" title="Permalink to this definition">¶</a></dt> |
---|
| 147 | <dd></dd></dl> |
---|
| 148 | |
---|
| 149 | <dl class="method"> |
---|
| 150 | <dt id="sans.models.SphereModel.SphereModel.__reduce__"> |
---|
| 151 | <tt class="descname">__reduce__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.SphereModel.SphereModel.__reduce__" title="Permalink to this definition">¶</a></dt> |
---|
| 152 | <dd><p>helper for pickle</p> |
---|
| 153 | </dd></dl> |
---|
| 154 | |
---|
| 155 | <dl class="method"> |
---|
| 156 | <dt id="sans.models.SphereModel.SphereModel.__reduce_ex__"> |
---|
| 157 | <tt class="descname">__reduce_ex__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.SphereModel.SphereModel.__reduce_ex__" title="Permalink to this definition">¶</a></dt> |
---|
| 158 | <dd><p>Overwrite the __reduce_ex__ of PyTypeObject <a href="#id1"><span class="problematic" id="id2">*</span></a>type call in the init of |
---|
| 159 | c model.</p> |
---|
| 160 | </dd></dl> |
---|
| 161 | |
---|
| 162 | <dl class="attribute"> |
---|
| 163 | <dt id="sans.models.SphereModel.SphereModel.__repr__"> |
---|
| 164 | <tt class="descname">__repr__</tt><a class="headerlink" href="#sans.models.SphereModel.SphereModel.__repr__" title="Permalink to this definition">¶</a></dt> |
---|
| 165 | <dd><p>x.__repr__() <==> repr(x)</p> |
---|
| 166 | </dd></dl> |
---|
| 167 | |
---|
| 168 | <dl class="attribute"> |
---|
| 169 | <dt id="sans.models.SphereModel.SphereModel.__setattr__"> |
---|
| 170 | <tt class="descname">__setattr__</tt><a class="headerlink" href="#sans.models.SphereModel.SphereModel.__setattr__" title="Permalink to this definition">¶</a></dt> |
---|
| 171 | <dd><p>x.__setattr__(‘name’, value) <==> x.name = value</p> |
---|
| 172 | </dd></dl> |
---|
| 173 | |
---|
| 174 | <dl class="method"> |
---|
| 175 | <dt id="sans.models.SphereModel.SphereModel.__setstate__"> |
---|
| 176 | <tt class="descname">__setstate__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.SphereModel.SphereModel.__setstate__" title="Permalink to this definition">¶</a></dt> |
---|
| 177 | <dd><p>restore the state of a model from pickle</p> |
---|
| 178 | </dd></dl> |
---|
| 179 | |
---|
| 180 | <dl class="attribute"> |
---|
| 181 | <dt id="sans.models.SphereModel.SphereModel.__str__"> |
---|
| 182 | <tt class="descname">__str__</tt><a class="headerlink" href="#sans.models.SphereModel.SphereModel.__str__" title="Permalink to this definition">¶</a></dt> |
---|
| 183 | <dd><p>x.__str__() <==> str(x)</p> |
---|
| 184 | </dd></dl> |
---|
| 185 | |
---|
| 186 | <dl class="method"> |
---|
| 187 | <dt id="sans.models.SphereModel.SphereModel.__sub__"> |
---|
| 188 | <tt class="descname">__sub__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.SphereModel.SphereModel.__sub__" title="Permalink to this definition">¶</a></dt> |
---|
| 189 | <dd></dd></dl> |
---|
| 190 | |
---|
| 191 | <dl class="attribute"> |
---|
| 192 | <dt id="sans.models.SphereModel.SphereModel.__weakref__"> |
---|
| 193 | <tt class="descname">__weakref__</tt><a class="headerlink" href="#sans.models.SphereModel.SphereModel.__weakref__" title="Permalink to this definition">¶</a></dt> |
---|
| 194 | <dd><p>list of weak references to the object (if defined)</p> |
---|
| 195 | </dd></dl> |
---|
| 196 | |
---|
| 197 | <dl class="method"> |
---|
| 198 | <dt id="sans.models.SphereModel.SphereModel._clone"> |
---|
| 199 | <tt class="descname">_clone</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.SphereModel.SphereModel._clone" title="Permalink to this definition">¶</a></dt> |
---|
| 200 | <dd><p>Internal utility function to copy the internal |
---|
| 201 | data members to a fresh copy.</p> |
---|
| 202 | </dd></dl> |
---|
| 203 | |
---|
| 204 | <dl class="method"> |
---|
[512573a] | 205 | <dt id="sans.models.SphereModel.SphereModel.calculate_ER"> |
---|
| 206 | <tt class="descname">calculate_ER</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.SphereModel.SphereModel.calculate_ER" title="Permalink to this definition">¶</a></dt> |
---|
| 207 | <dd><p>Calculate the effective radius for P(q)*S(q)</p> |
---|
| 208 | <table class="docutils field-list" frame="void" rules="none"> |
---|
| 209 | <col class="field-name" /> |
---|
| 210 | <col class="field-body" /> |
---|
| 211 | <tbody valign="top"> |
---|
[c0d873f] | 212 | <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the value of the effective radius</td> |
---|
[512573a] | 213 | </tr> |
---|
| 214 | </tbody> |
---|
| 215 | </table> |
---|
| 216 | </dd></dl> |
---|
| 217 | |
---|
| 218 | <dl class="method"> |
---|
| 219 | <dt id="sans.models.SphereModel.SphereModel.clone"> |
---|
| 220 | <tt class="descname">clone</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.SphereModel.SphereModel.clone" title="Permalink to this definition">¶</a></dt> |
---|
| 221 | <dd><p>Return a identical copy of self</p> |
---|
| 222 | </dd></dl> |
---|
| 223 | |
---|
| 224 | <dl class="attribute"> |
---|
| 225 | <dt id="sans.models.SphereModel.SphereModel.dispersion"> |
---|
| 226 | <tt class="descname">dispersion</tt><a class="headerlink" href="#sans.models.SphereModel.SphereModel.dispersion" title="Permalink to this definition">¶</a></dt> |
---|
| 227 | <dd><p>Dispersion parameters</p> |
---|
| 228 | </dd></dl> |
---|
| 229 | |
---|
| 230 | <dl class="method"> |
---|
| 231 | <dt id="sans.models.SphereModel.SphereModel.evalDistribution"> |
---|
[c0d873f] | 232 | <tt class="descname">evalDistribution</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.SphereModel.SphereModel.evalDistribution" title="Permalink to this definition">¶</a></dt> |
---|
[512573a] | 233 | <dd><p>Evaluate the model in cartesian coordinates</p> |
---|
| 234 | <table class="docutils field-list" frame="void" rules="none"> |
---|
| 235 | <col class="field-name" /> |
---|
| 236 | <col class="field-body" /> |
---|
| 237 | <tbody valign="top"> |
---|
[c0d873f] | 238 | <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>x</strong> – input q[], or [qx[], qy[]]</td> |
---|
[512573a] | 239 | </tr> |
---|
[c0d873f] | 240 | <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">scattering function P(q[])</td> |
---|
[512573a] | 241 | </tr> |
---|
| 242 | </tbody> |
---|
| 243 | </table> |
---|
| 244 | </dd></dl> |
---|
| 245 | |
---|
| 246 | <dl class="method"> |
---|
| 247 | <dt id="sans.models.SphereModel.SphereModel.getDispParamList"> |
---|
| 248 | <tt class="descname">getDispParamList</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.SphereModel.SphereModel.getDispParamList" title="Permalink to this definition">¶</a></dt> |
---|
| 249 | <dd><p>Return a list of all available parameters for the model</p> |
---|
| 250 | </dd></dl> |
---|
| 251 | |
---|
| 252 | <dl class="method"> |
---|
| 253 | <dt id="sans.models.SphereModel.SphereModel.getParam"> |
---|
[c0d873f] | 254 | <tt class="descname">getParam</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.SphereModel.SphereModel.getParam" title="Permalink to this definition">¶</a></dt> |
---|
[512573a] | 255 | <dd><p>Set the value of a model parameter</p> |
---|
| 256 | <table class="docutils field-list" frame="void" rules="none"> |
---|
| 257 | <col class="field-name" /> |
---|
| 258 | <col class="field-body" /> |
---|
| 259 | <tbody valign="top"> |
---|
[c0d873f] | 260 | <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>name</strong> – name of the parameter</td> |
---|
[512573a] | 261 | </tr> |
---|
| 262 | </tbody> |
---|
| 263 | </table> |
---|
| 264 | </dd></dl> |
---|
| 265 | |
---|
| 266 | <dl class="method"> |
---|
| 267 | <dt id="sans.models.SphereModel.SphereModel.getParamList"> |
---|
| 268 | <tt class="descname">getParamList</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.SphereModel.SphereModel.getParamList" title="Permalink to this definition">¶</a></dt> |
---|
| 269 | <dd><p>Return a list of all available parameters for the model</p> |
---|
| 270 | </dd></dl> |
---|
| 271 | |
---|
| 272 | <dl class="method"> |
---|
| 273 | <dt id="sans.models.SphereModel.SphereModel.getParamListWithToken"> |
---|
[c0d873f] | 274 | <tt class="descname">getParamListWithToken</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.SphereModel.SphereModel.getParamListWithToken" title="Permalink to this definition">¶</a></dt> |
---|
[512573a] | 275 | <dd></dd></dl> |
---|
| 276 | |
---|
| 277 | <dl class="method"> |
---|
| 278 | <dt id="sans.models.SphereModel.SphereModel.getParamWithToken"> |
---|
[c0d873f] | 279 | <tt class="descname">getParamWithToken</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.SphereModel.SphereModel.getParamWithToken" title="Permalink to this definition">¶</a></dt> |
---|
[512573a] | 280 | <dd></dd></dl> |
---|
| 281 | |
---|
| 282 | <dl class="method"> |
---|
| 283 | <dt id="sans.models.SphereModel.SphereModel.is_fittable"> |
---|
[c0d873f] | 284 | <tt class="descname">is_fittable</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.SphereModel.SphereModel.is_fittable" title="Permalink to this definition">¶</a></dt> |
---|
[512573a] | 285 | <dd><p>Check if a given parameter is fittable or not</p> |
---|
| 286 | <table class="docutils field-list" frame="void" rules="none"> |
---|
| 287 | <col class="field-name" /> |
---|
| 288 | <col class="field-body" /> |
---|
| 289 | <tbody valign="top"> |
---|
[c0d873f] | 290 | <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> |
---|
[512573a] | 291 | </tr> |
---|
| 292 | </tbody> |
---|
| 293 | </table> |
---|
| 294 | </dd></dl> |
---|
| 295 | |
---|
| 296 | <dl class="attribute"> |
---|
| 297 | <dt id="sans.models.SphereModel.SphereModel.log"> |
---|
| 298 | <tt class="descname">log</tt><a class="headerlink" href="#sans.models.SphereModel.SphereModel.log" title="Permalink to this definition">¶</a></dt> |
---|
| 299 | <dd><p>Log</p> |
---|
| 300 | </dd></dl> |
---|
| 301 | |
---|
| 302 | <dl class="attribute"> |
---|
| 303 | <dt id="sans.models.SphereModel.SphereModel.params"> |
---|
| 304 | <tt class="descname">params</tt><a class="headerlink" href="#sans.models.SphereModel.SphereModel.params" title="Permalink to this definition">¶</a></dt> |
---|
| 305 | <dd><p>Parameters</p> |
---|
| 306 | </dd></dl> |
---|
| 307 | |
---|
[c0d873f] | 308 | <dl class="method"> |
---|
[512573a] | 309 | <dt id="sans.models.SphereModel.SphereModel.reset"> |
---|
[c0d873f] | 310 | <tt class="descname">reset</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.SphereModel.SphereModel.reset" title="Permalink to this definition">¶</a></dt> |
---|
[512573a] | 311 | <dd><p>Reset pair correlation</p> |
---|
| 312 | </dd></dl> |
---|
| 313 | |
---|
| 314 | <dl class="method"> |
---|
| 315 | <dt id="sans.models.SphereModel.SphereModel.run"> |
---|
[c0d873f] | 316 | <tt class="descname">run</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.SphereModel.SphereModel.run" title="Permalink to this definition">¶</a></dt> |
---|
[512573a] | 317 | <dd><p>Evaluate the model</p> |
---|
| 318 | <table class="docutils field-list" frame="void" rules="none"> |
---|
| 319 | <col class="field-name" /> |
---|
| 320 | <col class="field-body" /> |
---|
| 321 | <tbody valign="top"> |
---|
[c0d873f] | 322 | <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>x</strong> – input q, or [q,phi]</td> |
---|
[512573a] | 323 | </tr> |
---|
[c0d873f] | 324 | <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">scattering function P(q)</td> |
---|
[512573a] | 325 | </tr> |
---|
| 326 | </tbody> |
---|
| 327 | </table> |
---|
| 328 | </dd></dl> |
---|
| 329 | |
---|
| 330 | <dl class="method"> |
---|
| 331 | <dt id="sans.models.SphereModel.SphereModel.runXY"> |
---|
[c0d873f] | 332 | <tt class="descname">runXY</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.SphereModel.SphereModel.runXY" title="Permalink to this definition">¶</a></dt> |
---|
[512573a] | 333 | <dd><p>Evaluate the model in cartesian coordinates</p> |
---|
| 334 | <table class="docutils field-list" frame="void" rules="none"> |
---|
| 335 | <col class="field-name" /> |
---|
| 336 | <col class="field-body" /> |
---|
| 337 | <tbody valign="top"> |
---|
[c0d873f] | 338 | <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>x</strong> – input q, or [qx, qy]</td> |
---|
[512573a] | 339 | </tr> |
---|
[c0d873f] | 340 | <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">scattering function P(q)</td> |
---|
[512573a] | 341 | </tr> |
---|
| 342 | </tbody> |
---|
| 343 | </table> |
---|
| 344 | </dd></dl> |
---|
| 345 | |
---|
| 346 | <dl class="method"> |
---|
| 347 | <dt id="sans.models.SphereModel.SphereModel.setParam"> |
---|
[c0d873f] | 348 | <tt class="descname">setParam</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.SphereModel.SphereModel.setParam" title="Permalink to this definition">¶</a></dt> |
---|
[512573a] | 349 | <dd><p>Set the value of a model parameter</p> |
---|
| 350 | <table class="docutils field-list" frame="void" rules="none"> |
---|
| 351 | <col class="field-name" /> |
---|
| 352 | <col class="field-body" /> |
---|
| 353 | <tbody valign="top"> |
---|
[c0d873f] | 354 | <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
---|
[512573a] | 355 | <li><strong>name</strong> – name of the parameter</li> |
---|
| 356 | <li><strong>value</strong> – value of the parameter</li> |
---|
| 357 | </ul> |
---|
| 358 | </td> |
---|
| 359 | </tr> |
---|
| 360 | </tbody> |
---|
| 361 | </table> |
---|
| 362 | </dd></dl> |
---|
| 363 | |
---|
| 364 | <dl class="method"> |
---|
| 365 | <dt id="sans.models.SphereModel.SphereModel.setParamWithToken"> |
---|
[c0d873f] | 366 | <tt class="descname">setParamWithToken</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.SphereModel.SphereModel.setParamWithToken" title="Permalink to this definition">¶</a></dt> |
---|
[512573a] | 367 | <dd></dd></dl> |
---|
| 368 | |
---|
| 369 | <dl class="method"> |
---|
| 370 | <dt id="sans.models.SphereModel.SphereModel.set_dispersion"> |
---|
[c0d873f] | 371 | <tt class="descname">set_dispersion</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.SphereModel.SphereModel.set_dispersion" title="Permalink to this definition">¶</a></dt> |
---|
[512573a] | 372 | <dd><p>Set the dispersion object for a model parameter</p> |
---|
| 373 | <table class="docutils field-list" frame="void" rules="none"> |
---|
| 374 | <col class="field-name" /> |
---|
| 375 | <col class="field-body" /> |
---|
| 376 | <tbody valign="top"> |
---|
[c0d873f] | 377 | <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
---|
[512573a] | 378 | <li><strong>parameter</strong> – name of the parameter [string]</li> |
---|
| 379 | <li><strong>dispersion</strong> – dispersion object of type DispersionModel</li> |
---|
| 380 | </ul> |
---|
| 381 | </td> |
---|
| 382 | </tr> |
---|
| 383 | </tbody> |
---|
| 384 | </table> |
---|
| 385 | </dd></dl> |
---|
| 386 | |
---|
| 387 | </dd></dl> |
---|
| 388 | |
---|
| 389 | <dl class="function"> |
---|
| 390 | <dt id="sans.models.SphereModel.create_SphereModel"> |
---|
| 391 | <tt class="descclassname">sans.models.SphereModel.</tt><tt class="descname">create_SphereModel</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.SphereModel.create_SphereModel" title="Permalink to this definition">¶</a></dt> |
---|
| 392 | <dd></dd></dl> |
---|
| 393 | |
---|
| 394 | </div> |
---|
| 395 | </div> |
---|
| 396 | |
---|
| 397 | |
---|
| 398 | </div> |
---|
| 399 | </div> |
---|
| 400 | </div> |
---|
| 401 | <div class="sphinxsidebar"> |
---|
| 402 | <div class="sphinxsidebarwrapper"> |
---|
| 403 | <h3><a href="../index.html">Table Of Contents</a></h3> |
---|
| 404 | <ul> |
---|
| 405 | <li><a class="reference internal" href="#">SphereModel</a><ul> |
---|
[c0d873f] | 406 | <li><a class="reference internal" href="#sans-models-spheremodel"><tt class="docutils literal"><span class="pre">sans.models.SphereModel</span></tt></a></li> |
---|
[512573a] | 407 | </ul> |
---|
| 408 | </li> |
---|
| 409 | </ul> |
---|
| 410 | |
---|
| 411 | <h4>Previous topic</h4> |
---|
| 412 | <p class="topless"><a href="smearing_2d.html" |
---|
| 413 | title="previous chapter">smearing_2d</a></p> |
---|
| 414 | <h4>Next topic</h4> |
---|
| 415 | <p class="topless"><a href="SphereSLDModel.html" |
---|
| 416 | title="next chapter">SphereSLDModel</a></p> |
---|
| 417 | <h3>This Page</h3> |
---|
| 418 | <ul class="this-page-menu"> |
---|
| 419 | <li><a href="../_sources/api/SphereModel.txt" |
---|
| 420 | rel="nofollow">Show Source</a></li> |
---|
| 421 | </ul> |
---|
| 422 | <div id="searchbox" style="display: none"> |
---|
| 423 | <h3>Quick search</h3> |
---|
| 424 | <form class="search" action="../search.html" method="get"> |
---|
[c0d873f] | 425 | <input type="text" name="q" /> |
---|
[512573a] | 426 | <input type="submit" value="Go" /> |
---|
| 427 | <input type="hidden" name="check_keywords" value="yes" /> |
---|
| 428 | <input type="hidden" name="area" value="default" /> |
---|
| 429 | </form> |
---|
| 430 | <p class="searchtip" style="font-size: 90%"> |
---|
| 431 | Enter search terms or a module, class or function name. |
---|
| 432 | </p> |
---|
| 433 | </div> |
---|
| 434 | <script type="text/javascript">$('#searchbox').show(0);</script> |
---|
| 435 | </div> |
---|
| 436 | </div> |
---|
| 437 | <div class="clearer"></div> |
---|
| 438 | </div> |
---|
| 439 | <div class="related"> |
---|
| 440 | <h3>Navigation</h3> |
---|
| 441 | <ul> |
---|
| 442 | <li class="right" style="margin-right: 10px"> |
---|
| 443 | <a href="../genindex.html" title="General Index" |
---|
| 444 | >index</a></li> |
---|
| 445 | <li class="right" > |
---|
| 446 | <a href="../py-modindex.html" title="Python Module Index" |
---|
| 447 | >modules</a> |</li> |
---|
| 448 | <li class="right" > |
---|
| 449 | <a href="SphereSLDModel.html" title="SphereSLDModel" |
---|
| 450 | >next</a> |</li> |
---|
| 451 | <li class="right" > |
---|
| 452 | <a href="smearing_2d.html" title="smearing_2d" |
---|
| 453 | >previous</a> |</li> |
---|
[c0d873f] | 454 | <li><a href="../index.html">sansmodels 0.1.0 documentation</a> »</li> |
---|
[512573a] | 455 | <li><a href="index.html" >Reference</a> »</li> |
---|
| 456 | </ul> |
---|
| 457 | </div> |
---|
| 458 | <div class="footer"> |
---|
| 459 | © Copyright 2010, sans group. |
---|
[c0d873f] | 460 | Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1. |
---|
[512573a] | 461 | </div> |
---|
| 462 | </body> |
---|
| 463 | </html> |
---|