source: sasview/sansmodels/docs/sphinx/html/api/UnifiedPowerRgModel.html @ fafdfd3

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since fafdfd3 was 512573a, checked in by Jessica Tumarkin <jtumarki@…>, 13 years ago

HTML folder generated by Sphinx

  • Property mode set to 100644
File size: 13.7 KB
Line 
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<html xmlns="http://www.w3.org/1999/xhtml">
7  <head>
8    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9   
10    <title>UnifiedPowerRgModel &mdash; sansmodels v0.1.0 documentation</title>
11    <link rel="stylesheet" href="../_static/default.css" type="text/css" />
12    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
13    <script type="text/javascript">
14      var DOCUMENTATION_OPTIONS = {
15        URL_ROOT:    '../',
16        VERSION:     '0.1.0',
17        COLLAPSE_INDEX: false,
18        FILE_SUFFIX: '.html',
19        HAS_SOURCE:  true
20      };
21    </script>
22    <script type="text/javascript" src="../_static/jquery.js"></script>
23    <script type="text/javascript" src="../_static/underscore.js"></script>
24    <script type="text/javascript" src="../_static/doctools.js"></script>
25    <link rel="top" title="sansmodels v0.1.0 documentation" href="../index.html" />
26    <link rel="up" title="Reference" href="index.html" />
27    <link rel="next" title="VesicleModel" href="VesicleModel.html" />
28    <link rel="prev" title="TwoPowerLawModel" href="TwoPowerLawModel.html" /> 
29  </head>
30  <body>
31    <div class="related">
32      <h3>Navigation</h3>
33      <ul>
34        <li class="right" style="margin-right: 10px">
35          <a href="../genindex.html" title="General Index"
36             accesskey="I">index</a></li>
37        <li class="right" >
38          <a href="../py-modindex.html" title="Python Module Index"
39             >modules</a> |</li>
40        <li class="right" >
41          <a href="VesicleModel.html" title="VesicleModel"
42             accesskey="N">next</a> |</li>
43        <li class="right" >
44          <a href="TwoPowerLawModel.html" title="TwoPowerLawModel"
45             accesskey="P">previous</a> |</li>
46        <li><a href="../index.html">sansmodels v0.1.0 documentation</a> &raquo;</li>
47          <li><a href="index.html" accesskey="U">Reference</a> &raquo;</li> 
48      </ul>
49    </div> 
50
51    <div class="document">
52      <div class="documentwrapper">
53        <div class="bodywrapper">
54          <div class="body">
55           
56  <div class="section" id="unifiedpowerrgmodel">
57<h1>UnifiedPowerRgModel<a class="headerlink" href="#unifiedpowerrgmodel" title="Permalink to this headline">¶</a></h1>
58<div class="section" id="module-sans.models.UnifiedPowerRgModel">
59<span id="sans-models-unifiedpowerrgmodel"></span><h2><a class="reference internal" href="#module-sans.models.UnifiedPowerRgModel" title="sans.models.UnifiedPowerRgModel"><tt class="xref py py-mod docutils literal"><span class="pre">sans.models.UnifiedPowerRgModel</span></tt></a><a class="headerlink" href="#module-sans.models.UnifiedPowerRgModel" title="Permalink to this headline">¶</a></h2>
60<dl class="class">
61<dt id="sans.models.UnifiedPowerRgModel.UnifiedPowerRgModel">
62<em class="property">class </em><tt class="descclassname">sans.models.UnifiedPowerRgModel.</tt><tt class="descname">UnifiedPowerRgModel</tt><big>(</big><em>multfactor=1</em><big>)</big><a class="headerlink" href="#sans.models.UnifiedPowerRgModel.UnifiedPowerRgModel" title="Permalink to this definition">¶</a></dt>
63<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>
64<p>This model is based on Exponential/Power-law fit method developed
65by G. Beaucage</p>
66<dl class="method">
67<dt id="sans.models.UnifiedPowerRgModel.UnifiedPowerRgModel.calculate_ER">
68<tt class="descname">calculate_ER</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.UnifiedPowerRgModel.UnifiedPowerRgModel.calculate_ER" title="Permalink to this definition">¶</a></dt>
69<dd></dd></dl>
70
71<dl class="method">
72<dt id="sans.models.UnifiedPowerRgModel.UnifiedPowerRgModel.clone">
73<tt class="descname">clone</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.UnifiedPowerRgModel.UnifiedPowerRgModel.clone" title="Permalink to this definition">¶</a></dt>
74<dd><p>Returns a new object identical to the current object</p>
75</dd></dl>
76
77<dl class="method">
78<dt id="sans.models.UnifiedPowerRgModel.UnifiedPowerRgModel.evalDistribution">
79<tt class="descname">evalDistribution</tt><big>(</big><em>qdist</em><big>)</big><a class="headerlink" href="#sans.models.UnifiedPowerRgModel.UnifiedPowerRgModel.evalDistribution" title="Permalink to this definition">¶</a></dt>
80<dd><p>Evaluate a distribution of q-values.</p>
81<ul>
82<li><p class="first">For 1D, a numpy array is expected as input:</p>
83<blockquote>
84<div><p>evalDistribution(q)</p>
85</div></blockquote>
86</li>
87</ul>
88<p>where q is a numpy array.</p>
89<ul class="simple">
90<li>For 2D, a list of numpy arrays are expected: [qx_prime,qy_prime],
91where 1D arrays,</li>
92</ul>
93<p>qx_prime = [ qx[0], qx[1], qx[2], ....]
94and
95qy_prime = [ qy[0], qy[1], qy[2], ....]</p>
96<p>Then get
97q = numpy.sqrt(qx_prime^2+qy_prime^2)</p>
98<p>that is a qr in 1D array;
99q = [q[0], q[1], q[2], ....]</p>
100<table class="docutils field-list" frame="void" rules="none">
101<col class="field-name" />
102<col class="field-body" />
103<tbody valign="top">
104<tr class="field"><th class="field-name">Note :</th><td class="field-body"><p class="first">Due to 2D speed issue, no anisotropic scattering
105is supported for python models, thus C-models should have</p>
106<blockquote class="last">
107<div><p>their own evalDistribution methods.</p>
108</div></blockquote>
109</td>
110</tr>
111</tbody>
112</table>
113<p>The method is then called the following way:</p>
114<p>evalDistribution(q)
115where q is a numpy array.</p>
116<table class="docutils field-list" frame="void" rules="none">
117<col class="field-name" />
118<col class="field-body" />
119<tbody valign="top">
120<tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><strong>qdist</strong> &#8211; ndarray of scalar q-values or list [qx,qy]
121where qx,qy are 1D ndarrays</td>
122</tr>
123</tbody>
124</table>
125</dd></dl>
126
127<dl class="method">
128<dt id="sans.models.UnifiedPowerRgModel.UnifiedPowerRgModel.getDispParamList">
129<tt class="descname">getDispParamList</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.UnifiedPowerRgModel.UnifiedPowerRgModel.getDispParamList" title="Permalink to this definition">¶</a></dt>
130<dd><p>Return a list of all available parameters for the model</p>
131</dd></dl>
132
133<dl class="method">
134<dt id="sans.models.UnifiedPowerRgModel.UnifiedPowerRgModel.getParam">
135<tt class="descname">getParam</tt><big>(</big><em>name</em><big>)</big><a class="headerlink" href="#sans.models.UnifiedPowerRgModel.UnifiedPowerRgModel.getParam" title="Permalink to this definition">¶</a></dt>
136<dd><p>Set the value of a model parameter</p>
137<table class="docutils field-list" frame="void" rules="none">
138<col class="field-name" />
139<col class="field-body" />
140<tbody valign="top">
141<tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><strong>name</strong> &#8211; name of the parameter</td>
142</tr>
143</tbody>
144</table>
145</dd></dl>
146
147<dl class="method">
148<dt id="sans.models.UnifiedPowerRgModel.UnifiedPowerRgModel.getParamList">
149<tt class="descname">getParamList</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.UnifiedPowerRgModel.UnifiedPowerRgModel.getParamList" title="Permalink to this definition">¶</a></dt>
150<dd><p>Return a list of all available parameters for the model</p>
151</dd></dl>
152
153<dl class="method">
154<dt id="sans.models.UnifiedPowerRgModel.UnifiedPowerRgModel.getParamListWithToken">
155<tt class="descname">getParamListWithToken</tt><big>(</big><em>token</em>, <em>member</em><big>)</big><a class="headerlink" href="#sans.models.UnifiedPowerRgModel.UnifiedPowerRgModel.getParamListWithToken" title="Permalink to this definition">¶</a></dt>
156<dd></dd></dl>
157
158<dl class="method">
159<dt id="sans.models.UnifiedPowerRgModel.UnifiedPowerRgModel.getParamWithToken">
160<tt class="descname">getParamWithToken</tt><big>(</big><em>name</em>, <em>token</em>, <em>member</em><big>)</big><a class="headerlink" href="#sans.models.UnifiedPowerRgModel.UnifiedPowerRgModel.getParamWithToken" title="Permalink to this definition">¶</a></dt>
161<dd></dd></dl>
162
163<dl class="method">
164<dt id="sans.models.UnifiedPowerRgModel.UnifiedPowerRgModel.getProfile">
165<tt class="descname">getProfile</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.UnifiedPowerRgModel.UnifiedPowerRgModel.getProfile" title="Permalink to this definition">¶</a></dt>
166<dd><p>Get SLD profile</p>
167<p>: return: None, No SLD profile supporting for this model</p>
168</dd></dl>
169
170<dl class="method">
171<dt id="sans.models.UnifiedPowerRgModel.UnifiedPowerRgModel.is_fittable">
172<tt class="descname">is_fittable</tt><big>(</big><em>par_name</em><big>)</big><a class="headerlink" href="#sans.models.UnifiedPowerRgModel.UnifiedPowerRgModel.is_fittable" title="Permalink to this definition">¶</a></dt>
173<dd><p>Check if a given parameter is fittable or not</p>
174<table class="docutils field-list" frame="void" rules="none">
175<col class="field-name" />
176<col class="field-body" />
177<tbody valign="top">
178<tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><strong>par_name</strong> &#8211; the parameter name to check</td>
179</tr>
180</tbody>
181</table>
182</dd></dl>
183
184<dl class="method">
185<dt id="sans.models.UnifiedPowerRgModel.UnifiedPowerRgModel.run">
186<tt class="descname">run</tt><big>(</big><em>x=0.0</em><big>)</big><a class="headerlink" href="#sans.models.UnifiedPowerRgModel.UnifiedPowerRgModel.run" title="Permalink to this definition">¶</a></dt>
187<dd><p>Evaluate the model</p>
188<p>: param x: input q-value (float or [float, float] as [r, theta])
189: return: (DAB value)</p>
190</dd></dl>
191
192<dl class="method">
193<dt id="sans.models.UnifiedPowerRgModel.UnifiedPowerRgModel.runXY">
194<tt class="descname">runXY</tt><big>(</big><em>x=0.0</em><big>)</big><a class="headerlink" href="#sans.models.UnifiedPowerRgModel.UnifiedPowerRgModel.runXY" title="Permalink to this definition">¶</a></dt>
195<dd><p>Evaluate the model</p>
196<p>: param x: input q-value (float or [float, float] as [qx, qy])
197: return: DAB value</p>
198</dd></dl>
199
200<dl class="method">
201<dt id="sans.models.UnifiedPowerRgModel.UnifiedPowerRgModel.setParam">
202<tt class="descname">setParam</tt><big>(</big><em>name</em>, <em>value</em><big>)</big><a class="headerlink" href="#sans.models.UnifiedPowerRgModel.UnifiedPowerRgModel.setParam" title="Permalink to this definition">¶</a></dt>
203<dd><p>Set the value of a model parameter</p>
204<p>: param name: name of the parameter
205: param value: value of the parameter</p>
206</dd></dl>
207
208<dl class="method">
209<dt id="sans.models.UnifiedPowerRgModel.UnifiedPowerRgModel.setParamWithToken">
210<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.UnifiedPowerRgModel.UnifiedPowerRgModel.setParamWithToken" title="Permalink to this definition">¶</a></dt>
211<dd></dd></dl>
212
213<dl class="method">
214<dt id="sans.models.UnifiedPowerRgModel.UnifiedPowerRgModel.set_dispersion">
215<tt class="descname">set_dispersion</tt><big>(</big><em>parameter</em>, <em>dispersion</em><big>)</big><a class="headerlink" href="#sans.models.UnifiedPowerRgModel.UnifiedPowerRgModel.set_dispersion" title="Permalink to this definition">¶</a></dt>
216<dd><p>Set the dispersion object for a model parameter</p>
217<p>: param parameter: name of the parameter [string]
218:dispersion: dispersion object of type DispersionModel</p>
219</dd></dl>
220
221</dd></dl>
222
223</div>
224</div>
225
226
227          </div>
228        </div>
229      </div>
230      <div class="sphinxsidebar">
231        <div class="sphinxsidebarwrapper">
232  <h3><a href="../index.html">Table Of Contents</a></h3>
233  <ul>
234<li><a class="reference internal" href="#">UnifiedPowerRgModel</a><ul>
235<li><a class="reference internal" href="#module-sans.models.UnifiedPowerRgModel"><tt class="docutils literal"><span class="pre">sans.models.UnifiedPowerRgModel</span></tt></a></li>
236</ul>
237</li>
238</ul>
239
240  <h4>Previous topic</h4>
241  <p class="topless"><a href="TwoPowerLawModel.html"
242                        title="previous chapter">TwoPowerLawModel</a></p>
243  <h4>Next topic</h4>
244  <p class="topless"><a href="VesicleModel.html"
245                        title="next chapter">VesicleModel</a></p>
246  <h3>This Page</h3>
247  <ul class="this-page-menu">
248    <li><a href="../_sources/api/UnifiedPowerRgModel.txt"
249           rel="nofollow">Show Source</a></li>
250  </ul>
251<div id="searchbox" style="display: none">
252  <h3>Quick search</h3>
253    <form class="search" action="../search.html" method="get">
254      <input type="text" name="q" size="18" />
255      <input type="submit" value="Go" />
256      <input type="hidden" name="check_keywords" value="yes" />
257      <input type="hidden" name="area" value="default" />
258    </form>
259    <p class="searchtip" style="font-size: 90%">
260    Enter search terms or a module, class or function name.
261    </p>
262</div>
263<script type="text/javascript">$('#searchbox').show(0);</script>
264        </div>
265      </div>
266      <div class="clearer"></div>
267    </div>
268    <div class="related">
269      <h3>Navigation</h3>
270      <ul>
271        <li class="right" style="margin-right: 10px">
272          <a href="../genindex.html" title="General Index"
273             >index</a></li>
274        <li class="right" >
275          <a href="../py-modindex.html" title="Python Module Index"
276             >modules</a> |</li>
277        <li class="right" >
278          <a href="VesicleModel.html" title="VesicleModel"
279             >next</a> |</li>
280        <li class="right" >
281          <a href="TwoPowerLawModel.html" title="TwoPowerLawModel"
282             >previous</a> |</li>
283        <li><a href="../index.html">sansmodels v0.1.0 documentation</a> &raquo;</li>
284          <li><a href="index.html" >Reference</a> &raquo;</li> 
285      </ul>
286    </div>
287    <div class="footer">
288        &copy; Copyright 2010, sans group.
289      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.7.
290    </div>
291  </body>
292</html>
Note: See TracBrowser for help on using the repository browser.