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 | |
---|
6 | |
---|
7 | <html xmlns="http://www.w3.org/1999/xhtml"> |
---|
8 | <head> |
---|
9 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
---|
10 | |
---|
11 | <title>PolymerExclVolume — sansmodels 0.1.0 documentation</title> |
---|
12 | |
---|
13 | <link rel="stylesheet" href="../_static/default.css" type="text/css" /> |
---|
14 | <link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> |
---|
15 | |
---|
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> |
---|
28 | <link rel="top" title="sansmodels 0.1.0 documentation" href="../index.html" /> |
---|
29 | <link rel="up" title="Reference" href="index.html" /> |
---|
30 | <link rel="next" title="Poly_GaussCoil" href="Poly_GaussCoil.html" /> |
---|
31 | <link rel="prev" title="pluginmodel" href="pluginmodel.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="Poly_GaussCoil.html" title="Poly_GaussCoil" |
---|
45 | accesskey="N">next</a> |</li> |
---|
46 | <li class="right" > |
---|
47 | <a href="pluginmodel.html" title="pluginmodel" |
---|
48 | accesskey="P">previous</a> |</li> |
---|
49 | <li><a href="../index.html">sansmodels 0.1.0 documentation</a> »</li> |
---|
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="polymerexclvolume"> |
---|
60 | <h1>PolymerExclVolume<a class="headerlink" href="#polymerexclvolume" title="Permalink to this headline">¶</a></h1> |
---|
61 | <div class="section" id="sans-models-polymerexclvolume"> |
---|
62 | <h2><a class="reference internal" href="#module-sans.models.PolymerExclVolume" title="sans.models.PolymerExclVolume"><tt class="xref py py-mod docutils literal"><span class="pre">sans.models.PolymerExclVolume</span></tt></a><a class="headerlink" href="#sans-models-polymerexclvolume" title="Permalink to this headline">¶</a></h2> |
---|
63 | <span class="target" id="module-sans.models.PolymerExclVolume"></span><dl class="class"> |
---|
64 | <dt id="sans.models.PolymerExclVolume.PolymerExclVolume"> |
---|
65 | <em class="property">class </em><tt class="descclassname">sans.models.PolymerExclVolume.</tt><tt class="descname">PolymerExclVolume</tt><a class="headerlink" href="#sans.models.PolymerExclVolume.PolymerExclVolume" title="Permalink to this definition">¶</a></dt> |
---|
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 | <p>Class that evaluates a PolymerExclVolModel model. |
---|
68 | This file was auto-generated from ..c_extensionspolyexclvol.h. |
---|
69 | Refer to that file and the structure it contains |
---|
70 | for details of the model. |
---|
71 | List of default parameters:</p> |
---|
72 | <blockquote> |
---|
73 | <div>scale = 0.01 |
---|
74 | rg = 100.0 [A] |
---|
75 | m = 3.0 |
---|
76 | background = 0.0 [1/cm]</div></blockquote> |
---|
77 | <dl class="method"> |
---|
78 | <dt id="sans.models.PolymerExclVolume.PolymerExclVolume.__add__"> |
---|
79 | <tt class="descname">__add__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.PolymerExclVolume.PolymerExclVolume.__add__" title="Permalink to this definition">¶</a></dt> |
---|
80 | <dd></dd></dl> |
---|
81 | |
---|
82 | <dl class="method"> |
---|
83 | <dt id="sans.models.PolymerExclVolume.PolymerExclVolume.__div__"> |
---|
84 | <tt class="descname">__div__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.PolymerExclVolume.PolymerExclVolume.__div__" title="Permalink to this definition">¶</a></dt> |
---|
85 | <dd></dd></dl> |
---|
86 | |
---|
87 | <dl class="method"> |
---|
88 | <dt id="sans.models.PolymerExclVolume.PolymerExclVolume.__init__"> |
---|
89 | <tt class="descname">__init__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.PolymerExclVolume.PolymerExclVolume.__init__" title="Permalink to this definition">¶</a></dt> |
---|
90 | <dd><p>Initialization</p> |
---|
91 | </dd></dl> |
---|
92 | |
---|
93 | <dl class="attribute"> |
---|
94 | <dt id="sans.models.PolymerExclVolume.PolymerExclVolume.__module__"> |
---|
95 | <tt class="descname">__module__</tt><em class="property"> = 'sans.models.PolymerExclVolume'</em><a class="headerlink" href="#sans.models.PolymerExclVolume.PolymerExclVolume.__module__" title="Permalink to this definition">¶</a></dt> |
---|
96 | <dd></dd></dl> |
---|
97 | |
---|
98 | <dl class="method"> |
---|
99 | <dt id="sans.models.PolymerExclVolume.PolymerExclVolume.__mul__"> |
---|
100 | <tt class="descname">__mul__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.PolymerExclVolume.PolymerExclVolume.__mul__" title="Permalink to this definition">¶</a></dt> |
---|
101 | <dd></dd></dl> |
---|
102 | |
---|
103 | <dl class="method"> |
---|
104 | <dt id="sans.models.PolymerExclVolume.PolymerExclVolume.__str__"> |
---|
105 | <tt class="descname">__str__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.PolymerExclVolume.PolymerExclVolume.__str__" title="Permalink to this definition">¶</a></dt> |
---|
106 | <dd><table class="docutils field-list" frame="void" rules="none"> |
---|
107 | <col class="field-name" /> |
---|
108 | <col class="field-body" /> |
---|
109 | <tbody valign="top"> |
---|
110 | <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">string representatio</td> |
---|
111 | </tr> |
---|
112 | </tbody> |
---|
113 | </table> |
---|
114 | </dd></dl> |
---|
115 | |
---|
116 | <dl class="method"> |
---|
117 | <dt id="sans.models.PolymerExclVolume.PolymerExclVolume.__sub__"> |
---|
118 | <tt class="descname">__sub__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.PolymerExclVolume.PolymerExclVolume.__sub__" title="Permalink to this definition">¶</a></dt> |
---|
119 | <dd></dd></dl> |
---|
120 | |
---|
121 | <dl class="method"> |
---|
122 | <dt id="sans.models.PolymerExclVolume.PolymerExclVolume._clone"> |
---|
123 | <tt class="descname">_clone</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.PolymerExclVolume.PolymerExclVolume._clone" title="Permalink to this definition">¶</a></dt> |
---|
124 | <dd><p>Internal utility function to copy the internal |
---|
125 | data members to a fresh copy.</p> |
---|
126 | </dd></dl> |
---|
127 | |
---|
128 | <dl class="method"> |
---|
129 | <dt id="sans.models.PolymerExclVolume.PolymerExclVolume._polymerexclvol"> |
---|
130 | <tt class="descname">_polymerexclvol</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.PolymerExclVolume.PolymerExclVolume._polymerexclvol" title="Permalink to this definition">¶</a></dt> |
---|
131 | <dd></dd></dl> |
---|
132 | |
---|
133 | <dl class="method"> |
---|
134 | <dt id="sans.models.PolymerExclVolume.PolymerExclVolume.calculate_ER"> |
---|
135 | <tt class="descname">calculate_ER</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.PolymerExclVolume.PolymerExclVolume.calculate_ER" title="Permalink to this definition">¶</a></dt> |
---|
136 | <dd></dd></dl> |
---|
137 | |
---|
138 | <dl class="method"> |
---|
139 | <dt id="sans.models.PolymerExclVolume.PolymerExclVolume.clone"> |
---|
140 | <tt class="descname">clone</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.PolymerExclVolume.PolymerExclVolume.clone" title="Permalink to this definition">¶</a></dt> |
---|
141 | <dd><p>Returns a new object identical to the current object</p> |
---|
142 | </dd></dl> |
---|
143 | |
---|
144 | <dl class="method"> |
---|
145 | <dt id="sans.models.PolymerExclVolume.PolymerExclVolume.evalDistribution"> |
---|
146 | <tt class="descname">evalDistribution</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.PolymerExclVolume.PolymerExclVolume.evalDistribution" title="Permalink to this definition">¶</a></dt> |
---|
147 | <dd><p>Evaluate a distribution of q-values.</p> |
---|
148 | <ul> |
---|
149 | <li><p class="first">For 1D, a numpy array is expected as input:</p> |
---|
150 | <blockquote> |
---|
151 | <div><p>evalDistribution(q)</p> |
---|
152 | </div></blockquote> |
---|
153 | </li> |
---|
154 | </ul> |
---|
155 | <p>where q is a numpy array.</p> |
---|
156 | <ul class="simple"> |
---|
157 | <li>For 2D, a list of numpy arrays are expected: [qx_prime,qy_prime], |
---|
158 | where 1D arrays,</li> |
---|
159 | </ul> |
---|
160 | <p>qx_prime = [ qx[0], qx[1], qx[2], ....] |
---|
161 | and |
---|
162 | qy_prime = [ qy[0], qy[1], qy[2], ....]</p> |
---|
163 | <p>Then get |
---|
164 | q = numpy.sqrt(qx_prime^2+qy_prime^2)</p> |
---|
165 | <p>that is a qr in 1D array; |
---|
166 | q = [q[0], q[1], q[2], ....]</p> |
---|
167 | <table class="docutils field-list" frame="void" rules="none"> |
---|
168 | <col class="field-name" /> |
---|
169 | <col class="field-body" /> |
---|
170 | <tbody valign="top"> |
---|
171 | <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 |
---|
172 | is supported for python models, thus C-models should have</p> |
---|
173 | <blockquote class="last"> |
---|
174 | <div><p>their own evalDistribution methods.</p> |
---|
175 | </div></blockquote> |
---|
176 | </td> |
---|
177 | </tr> |
---|
178 | </tbody> |
---|
179 | </table> |
---|
180 | <p>The method is then called the following way:</p> |
---|
181 | <p>evalDistribution(q) |
---|
182 | where q is a numpy array.</p> |
---|
183 | <table class="docutils field-list" frame="void" rules="none"> |
---|
184 | <col class="field-name" /> |
---|
185 | <col class="field-body" /> |
---|
186 | <tbody valign="top"> |
---|
187 | <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] |
---|
188 | where qx,qy are 1D ndarrays</td> |
---|
189 | </tr> |
---|
190 | </tbody> |
---|
191 | </table> |
---|
192 | </dd></dl> |
---|
193 | |
---|
194 | <dl class="method"> |
---|
195 | <dt id="sans.models.PolymerExclVolume.PolymerExclVolume.getDispParamList"> |
---|
196 | <tt class="descname">getDispParamList</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.PolymerExclVolume.PolymerExclVolume.getDispParamList" title="Permalink to this definition">¶</a></dt> |
---|
197 | <dd><p>Return a list of all available parameters for the model</p> |
---|
198 | </dd></dl> |
---|
199 | |
---|
200 | <dl class="method"> |
---|
201 | <dt id="sans.models.PolymerExclVolume.PolymerExclVolume.getParam"> |
---|
202 | <tt class="descname">getParam</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.PolymerExclVolume.PolymerExclVolume.getParam" title="Permalink to this definition">¶</a></dt> |
---|
203 | <dd><p>Set the value of a model parameter</p> |
---|
204 | <table class="docutils field-list" frame="void" rules="none"> |
---|
205 | <col class="field-name" /> |
---|
206 | <col class="field-body" /> |
---|
207 | <tbody valign="top"> |
---|
208 | <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>name</strong> – name of the parameter</td> |
---|
209 | </tr> |
---|
210 | </tbody> |
---|
211 | </table> |
---|
212 | </dd></dl> |
---|
213 | |
---|
214 | <dl class="method"> |
---|
215 | <dt id="sans.models.PolymerExclVolume.PolymerExclVolume.getParamList"> |
---|
216 | <tt class="descname">getParamList</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.PolymerExclVolume.PolymerExclVolume.getParamList" title="Permalink to this definition">¶</a></dt> |
---|
217 | <dd><p>Return a list of all available parameters for the model</p> |
---|
218 | </dd></dl> |
---|
219 | |
---|
220 | <dl class="method"> |
---|
221 | <dt id="sans.models.PolymerExclVolume.PolymerExclVolume.getParamListWithToken"> |
---|
222 | <tt class="descname">getParamListWithToken</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.PolymerExclVolume.PolymerExclVolume.getParamListWithToken" title="Permalink to this definition">¶</a></dt> |
---|
223 | <dd></dd></dl> |
---|
224 | |
---|
225 | <dl class="method"> |
---|
226 | <dt id="sans.models.PolymerExclVolume.PolymerExclVolume.getParamWithToken"> |
---|
227 | <tt class="descname">getParamWithToken</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.PolymerExclVolume.PolymerExclVolume.getParamWithToken" title="Permalink to this definition">¶</a></dt> |
---|
228 | <dd></dd></dl> |
---|
229 | |
---|
230 | <dl class="method"> |
---|
231 | <dt id="sans.models.PolymerExclVolume.PolymerExclVolume.is_fittable"> |
---|
232 | <tt class="descname">is_fittable</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.PolymerExclVolume.PolymerExclVolume.is_fittable" title="Permalink to this definition">¶</a></dt> |
---|
233 | <dd><p>Check if a given parameter is fittable or not</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"> |
---|
238 | <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> |
---|
239 | </tr> |
---|
240 | </tbody> |
---|
241 | </table> |
---|
242 | </dd></dl> |
---|
243 | |
---|
244 | <dl class="method"> |
---|
245 | <dt id="sans.models.PolymerExclVolume.PolymerExclVolume.run"> |
---|
246 | <tt class="descname">run</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.PolymerExclVolume.PolymerExclVolume.run" title="Permalink to this definition">¶</a></dt> |
---|
247 | <dd><p>Evaluate the model |
---|
248 | @param x: input q-value (float or [float, float] as [r, theta]) |
---|
249 | @return: (guinier value)</p> |
---|
250 | </dd></dl> |
---|
251 | |
---|
252 | <dl class="method"> |
---|
253 | <dt id="sans.models.PolymerExclVolume.PolymerExclVolume.runXY"> |
---|
254 | <tt class="descname">runXY</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.PolymerExclVolume.PolymerExclVolume.runXY" title="Permalink to this definition">¶</a></dt> |
---|
255 | <dd><p>Evaluate the model |
---|
256 | @param x: input q-value (float or [float, float] as [qx, qy]) |
---|
257 | @return: guinier value</p> |
---|
258 | </dd></dl> |
---|
259 | |
---|
260 | <dl class="method"> |
---|
261 | <dt id="sans.models.PolymerExclVolume.PolymerExclVolume.setParam"> |
---|
262 | <tt class="descname">setParam</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.PolymerExclVolume.PolymerExclVolume.setParam" title="Permalink to this definition">¶</a></dt> |
---|
263 | <dd><p>Set the value of a model parameter</p> |
---|
264 | <table class="docutils field-list" frame="void" rules="none"> |
---|
265 | <col class="field-name" /> |
---|
266 | <col class="field-body" /> |
---|
267 | <tbody valign="top"> |
---|
268 | <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
---|
269 | <li><strong>name</strong> – name of the parameter</li> |
---|
270 | <li><strong>value</strong> – value of the parameter</li> |
---|
271 | </ul> |
---|
272 | </td> |
---|
273 | </tr> |
---|
274 | </tbody> |
---|
275 | </table> |
---|
276 | </dd></dl> |
---|
277 | |
---|
278 | <dl class="method"> |
---|
279 | <dt id="sans.models.PolymerExclVolume.PolymerExclVolume.setParamWithToken"> |
---|
280 | <tt class="descname">setParamWithToken</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.PolymerExclVolume.PolymerExclVolume.setParamWithToken" title="Permalink to this definition">¶</a></dt> |
---|
281 | <dd></dd></dl> |
---|
282 | |
---|
283 | </dd></dl> |
---|
284 | |
---|
285 | </div> |
---|
286 | </div> |
---|
287 | |
---|
288 | |
---|
289 | </div> |
---|
290 | </div> |
---|
291 | </div> |
---|
292 | <div class="sphinxsidebar"> |
---|
293 | <div class="sphinxsidebarwrapper"> |
---|
294 | <h3><a href="../index.html">Table Of Contents</a></h3> |
---|
295 | <ul> |
---|
296 | <li><a class="reference internal" href="#">PolymerExclVolume</a><ul> |
---|
297 | <li><a class="reference internal" href="#sans-models-polymerexclvolume"><tt class="docutils literal"><span class="pre">sans.models.PolymerExclVolume</span></tt></a></li> |
---|
298 | </ul> |
---|
299 | </li> |
---|
300 | </ul> |
---|
301 | |
---|
302 | <h4>Previous topic</h4> |
---|
303 | <p class="topless"><a href="pluginmodel.html" |
---|
304 | title="previous chapter">pluginmodel</a></p> |
---|
305 | <h4>Next topic</h4> |
---|
306 | <p class="topless"><a href="Poly_GaussCoil.html" |
---|
307 | title="next chapter">Poly_GaussCoil</a></p> |
---|
308 | <h3>This Page</h3> |
---|
309 | <ul class="this-page-menu"> |
---|
310 | <li><a href="../_sources/api/PolymerExclVolume.txt" |
---|
311 | rel="nofollow">Show Source</a></li> |
---|
312 | </ul> |
---|
313 | <div id="searchbox" style="display: none"> |
---|
314 | <h3>Quick search</h3> |
---|
315 | <form class="search" action="../search.html" method="get"> |
---|
316 | <input type="text" name="q" /> |
---|
317 | <input type="submit" value="Go" /> |
---|
318 | <input type="hidden" name="check_keywords" value="yes" /> |
---|
319 | <input type="hidden" name="area" value="default" /> |
---|
320 | </form> |
---|
321 | <p class="searchtip" style="font-size: 90%"> |
---|
322 | Enter search terms or a module, class or function name. |
---|
323 | </p> |
---|
324 | </div> |
---|
325 | <script type="text/javascript">$('#searchbox').show(0);</script> |
---|
326 | </div> |
---|
327 | </div> |
---|
328 | <div class="clearer"></div> |
---|
329 | </div> |
---|
330 | <div class="related"> |
---|
331 | <h3>Navigation</h3> |
---|
332 | <ul> |
---|
333 | <li class="right" style="margin-right: 10px"> |
---|
334 | <a href="../genindex.html" title="General Index" |
---|
335 | >index</a></li> |
---|
336 | <li class="right" > |
---|
337 | <a href="../py-modindex.html" title="Python Module Index" |
---|
338 | >modules</a> |</li> |
---|
339 | <li class="right" > |
---|
340 | <a href="Poly_GaussCoil.html" title="Poly_GaussCoil" |
---|
341 | >next</a> |</li> |
---|
342 | <li class="right" > |
---|
343 | <a href="pluginmodel.html" title="pluginmodel" |
---|
344 | >previous</a> |</li> |
---|
345 | <li><a href="../index.html">sansmodels 0.1.0 documentation</a> »</li> |
---|
346 | <li><a href="index.html" >Reference</a> »</li> |
---|
347 | </ul> |
---|
348 | </div> |
---|
349 | <div class="footer"> |
---|
350 | © Copyright 2010, sans group. |
---|
351 | Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1. |
---|
352 | </div> |
---|
353 | </body> |
---|
354 | </html> |
---|