source: sasview/sansmodels/docs/sphinx/html/api/GaussLorentzGelModel.html @ 67cd7c0

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 67cd7c0 was 512573a, checked in by Jessica Tumarkin <jtumarki@…>, 13 years ago

HTML folder generated by Sphinx

  • Property mode set to 100644
File size: 13.5 KB
RevLine 
[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
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>GaussLorentzGelModel &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="GuinierModel" href="GuinierModel.html" />
28    <link rel="prev" title="Gaussian" href="Gaussian.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="GuinierModel.html" title="GuinierModel"
42             accesskey="N">next</a> |</li>
43        <li class="right" >
44          <a href="Gaussian.html" title="Gaussian"
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="gausslorentzgelmodel">
57<h1>GaussLorentzGelModel<a class="headerlink" href="#gausslorentzgelmodel" title="Permalink to this headline">¶</a></h1>
58<div class="section" id="module-sans.models.GaussLorentzGelModel">
59<span id="sans-models-gausslorentzgelmodel"></span><h2><a class="reference internal" href="#module-sans.models.GaussLorentzGelModel" title="sans.models.GaussLorentzGelModel"><tt class="xref py py-mod docutils literal"><span class="pre">sans.models.GaussLorentzGelModel</span></tt></a><a class="headerlink" href="#module-sans.models.GaussLorentzGelModel" title="Permalink to this headline">¶</a></h2>
60<p>Provide I(q) = I_0 exp ( - R_g^2 q^2 / 3.0)
61GaussLorentzGel function as a BaseComponent model</p>
62<dl class="class">
63<dt id="sans.models.GaussLorentzGelModel.GaussLorentzGelModel">
64<em class="property">class </em><tt class="descclassname">sans.models.GaussLorentzGelModel.</tt><tt class="descname">GaussLorentzGelModel</tt><a class="headerlink" href="#sans.models.GaussLorentzGelModel.GaussLorentzGelModel" title="Permalink to this definition">¶</a></dt>
65<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>
66<p>Class that evaluates a GaussLorentzGel model.</p>
67<dl class="docutils">
68<dt>I(q) = scale_g*exp(- q^2*Z^2 / 2)+scale_l/(1+q^2*z^2)</dt>
69<dd><ul class="first last simple">
70<li>background</li>
71</ul>
72</dd>
73<dt>List of default parameters:</dt>
74<dd>scale_g = Gauss scale factor
75Z = Static correlation length
76scale_l = Lorentzian scale factor
77z = Dynamic correlation length
78background = Incoherent background</dd>
79</dl>
80<dl class="method">
81<dt id="sans.models.GaussLorentzGelModel.GaussLorentzGelModel.calculate_ER">
82<tt class="descname">calculate_ER</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.GaussLorentzGelModel.GaussLorentzGelModel.calculate_ER" title="Permalink to this definition">¶</a></dt>
83<dd></dd></dl>
84
85<dl class="method">
86<dt id="sans.models.GaussLorentzGelModel.GaussLorentzGelModel.clone">
87<tt class="descname">clone</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.GaussLorentzGelModel.GaussLorentzGelModel.clone" title="Permalink to this definition">¶</a></dt>
88<dd><p>Returns a new object identical to the current object</p>
89</dd></dl>
90
91<dl class="method">
92<dt id="sans.models.GaussLorentzGelModel.GaussLorentzGelModel.evalDistribution">
93<tt class="descname">evalDistribution</tt><big>(</big><em>qdist</em><big>)</big><a class="headerlink" href="#sans.models.GaussLorentzGelModel.GaussLorentzGelModel.evalDistribution" title="Permalink to this definition">¶</a></dt>
94<dd><p>Evaluate a distribution of q-values.</p>
95<ul>
96<li><p class="first">For 1D, a numpy array is expected as input:</p>
97<blockquote>
98<div><p>evalDistribution(q)</p>
99</div></blockquote>
100</li>
101</ul>
102<p>where q is a numpy array.</p>
103<ul class="simple">
104<li>For 2D, a list of numpy arrays are expected: [qx_prime,qy_prime],
105where 1D arrays,</li>
106</ul>
107<p>qx_prime = [ qx[0], qx[1], qx[2], ....]
108and
109qy_prime = [ qy[0], qy[1], qy[2], ....]</p>
110<p>Then get
111q = numpy.sqrt(qx_prime^2+qy_prime^2)</p>
112<p>that is a qr in 1D array;
113q = [q[0], q[1], q[2], ....]</p>
114<table class="docutils field-list" frame="void" rules="none">
115<col class="field-name" />
116<col class="field-body" />
117<tbody valign="top">
118<tr class="field"><th class="field-name">Note :</th><td class="field-body"><p class="first">Due to 2D speed issue, no anisotropic scattering
119is supported for python models, thus C-models should have</p>
120<blockquote class="last">
121<div><p>their own evalDistribution methods.</p>
122</div></blockquote>
123</td>
124</tr>
125</tbody>
126</table>
127<p>The method is then called the following way:</p>
128<p>evalDistribution(q)
129where q is a numpy array.</p>
130<table class="docutils field-list" frame="void" rules="none">
131<col class="field-name" />
132<col class="field-body" />
133<tbody valign="top">
134<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]
135where qx,qy are 1D ndarrays</td>
136</tr>
137</tbody>
138</table>
139</dd></dl>
140
141<dl class="method">
142<dt id="sans.models.GaussLorentzGelModel.GaussLorentzGelModel.getDispParamList">
143<tt class="descname">getDispParamList</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.GaussLorentzGelModel.GaussLorentzGelModel.getDispParamList" title="Permalink to this definition">¶</a></dt>
144<dd><p>Return a list of all available parameters for the model</p>
145</dd></dl>
146
147<dl class="method">
148<dt id="sans.models.GaussLorentzGelModel.GaussLorentzGelModel.getParam">
149<tt class="descname">getParam</tt><big>(</big><em>name</em><big>)</big><a class="headerlink" href="#sans.models.GaussLorentzGelModel.GaussLorentzGelModel.getParam" title="Permalink to this definition">¶</a></dt>
150<dd><p>Set the value of a model parameter</p>
151<table class="docutils field-list" frame="void" rules="none">
152<col class="field-name" />
153<col class="field-body" />
154<tbody valign="top">
155<tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><strong>name</strong> &#8211; name of the parameter</td>
156</tr>
157</tbody>
158</table>
159</dd></dl>
160
161<dl class="method">
162<dt id="sans.models.GaussLorentzGelModel.GaussLorentzGelModel.getParamList">
163<tt class="descname">getParamList</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.GaussLorentzGelModel.GaussLorentzGelModel.getParamList" title="Permalink to this definition">¶</a></dt>
164<dd><p>Return a list of all available parameters for the model</p>
165</dd></dl>
166
167<dl class="method">
168<dt id="sans.models.GaussLorentzGelModel.GaussLorentzGelModel.getParamListWithToken">
169<tt class="descname">getParamListWithToken</tt><big>(</big><em>token</em>, <em>member</em><big>)</big><a class="headerlink" href="#sans.models.GaussLorentzGelModel.GaussLorentzGelModel.getParamListWithToken" title="Permalink to this definition">¶</a></dt>
170<dd></dd></dl>
171
172<dl class="method">
173<dt id="sans.models.GaussLorentzGelModel.GaussLorentzGelModel.getParamWithToken">
174<tt class="descname">getParamWithToken</tt><big>(</big><em>name</em>, <em>token</em>, <em>member</em><big>)</big><a class="headerlink" href="#sans.models.GaussLorentzGelModel.GaussLorentzGelModel.getParamWithToken" title="Permalink to this definition">¶</a></dt>
175<dd></dd></dl>
176
177<dl class="method">
178<dt id="sans.models.GaussLorentzGelModel.GaussLorentzGelModel.is_fittable">
179<tt class="descname">is_fittable</tt><big>(</big><em>par_name</em><big>)</big><a class="headerlink" href="#sans.models.GaussLorentzGelModel.GaussLorentzGelModel.is_fittable" title="Permalink to this definition">¶</a></dt>
180<dd><p>Check if a given parameter is fittable or not</p>
181<table class="docutils field-list" frame="void" rules="none">
182<col class="field-name" />
183<col class="field-body" />
184<tbody valign="top">
185<tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><strong>par_name</strong> &#8211; the parameter name to check</td>
186</tr>
187</tbody>
188</table>
189</dd></dl>
190
191<dl class="method">
192<dt id="sans.models.GaussLorentzGelModel.GaussLorentzGelModel.run">
193<tt class="descname">run</tt><big>(</big><em>x=0.0</em><big>)</big><a class="headerlink" href="#sans.models.GaussLorentzGelModel.GaussLorentzGelModel.run" title="Permalink to this definition">¶</a></dt>
194<dd><p>Evaluate the model
195&#64;param x: input q-value (float or [float, float] as [r, theta])
196&#64;return: (guinier value)</p>
197</dd></dl>
198
199<dl class="method">
200<dt id="sans.models.GaussLorentzGelModel.GaussLorentzGelModel.runXY">
201<tt class="descname">runXY</tt><big>(</big><em>x=0.0</em><big>)</big><a class="headerlink" href="#sans.models.GaussLorentzGelModel.GaussLorentzGelModel.runXY" title="Permalink to this definition">¶</a></dt>
202<dd><p>Evaluate the model
203&#64;param x: input q-value (float or [float, float] as [qx, qy])
204&#64;return: guinier value</p>
205</dd></dl>
206
207<dl class="method">
208<dt id="sans.models.GaussLorentzGelModel.GaussLorentzGelModel.setParam">
209<tt class="descname">setParam</tt><big>(</big><em>name</em>, <em>value</em><big>)</big><a class="headerlink" href="#sans.models.GaussLorentzGelModel.GaussLorentzGelModel.setParam" title="Permalink to this definition">¶</a></dt>
210<dd><p>Set the value of a model parameter</p>
211<table class="docutils field-list" frame="void" rules="none">
212<col class="field-name" />
213<col class="field-body" />
214<tbody valign="top">
215<tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
216<li><strong>name</strong> &#8211; name of the parameter</li>
217<li><strong>value</strong> &#8211; value of the parameter</li>
218</ul>
219</td>
220</tr>
221</tbody>
222</table>
223</dd></dl>
224
225<dl class="method">
226<dt id="sans.models.GaussLorentzGelModel.GaussLorentzGelModel.setParamWithToken">
227<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.GaussLorentzGelModel.GaussLorentzGelModel.setParamWithToken" title="Permalink to this definition">¶</a></dt>
228<dd></dd></dl>
229
230</dd></dl>
231
232</div>
233</div>
234
235
236          </div>
237        </div>
238      </div>
239      <div class="sphinxsidebar">
240        <div class="sphinxsidebarwrapper">
241  <h3><a href="../index.html">Table Of Contents</a></h3>
242  <ul>
243<li><a class="reference internal" href="#">GaussLorentzGelModel</a><ul>
244<li><a class="reference internal" href="#module-sans.models.GaussLorentzGelModel"><tt class="docutils literal"><span class="pre">sans.models.GaussLorentzGelModel</span></tt></a></li>
245</ul>
246</li>
247</ul>
248
249  <h4>Previous topic</h4>
250  <p class="topless"><a href="Gaussian.html"
251                        title="previous chapter">Gaussian</a></p>
252  <h4>Next topic</h4>
253  <p class="topless"><a href="GuinierModel.html"
254                        title="next chapter">GuinierModel</a></p>
255  <h3>This Page</h3>
256  <ul class="this-page-menu">
257    <li><a href="../_sources/api/GaussLorentzGelModel.txt"
258           rel="nofollow">Show Source</a></li>
259  </ul>
260<div id="searchbox" style="display: none">
261  <h3>Quick search</h3>
262    <form class="search" action="../search.html" method="get">
263      <input type="text" name="q" size="18" />
264      <input type="submit" value="Go" />
265      <input type="hidden" name="check_keywords" value="yes" />
266      <input type="hidden" name="area" value="default" />
267    </form>
268    <p class="searchtip" style="font-size: 90%">
269    Enter search terms or a module, class or function name.
270    </p>
271</div>
272<script type="text/javascript">$('#searchbox').show(0);</script>
273        </div>
274      </div>
275      <div class="clearer"></div>
276    </div>
277    <div class="related">
278      <h3>Navigation</h3>
279      <ul>
280        <li class="right" style="margin-right: 10px">
281          <a href="../genindex.html" title="General Index"
282             >index</a></li>
283        <li class="right" >
284          <a href="../py-modindex.html" title="Python Module Index"
285             >modules</a> |</li>
286        <li class="right" >
287          <a href="GuinierModel.html" title="GuinierModel"
288             >next</a> |</li>
289        <li class="right" >
290          <a href="Gaussian.html" title="Gaussian"
291             >previous</a> |</li>
292        <li><a href="../index.html">sansmodels v0.1.0 documentation</a> &raquo;</li>
293          <li><a href="index.html" >Reference</a> &raquo;</li> 
294      </ul>
295    </div>
296    <div class="footer">
297        &copy; Copyright 2010, sans group.
298      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.7.
299    </div>
300  </body>
301</html>
Note: See TracBrowser for help on using the repository browser.