Changeset 9d76d29 in sasmodels
- Timestamp:
- Nov 9, 2015 3:43:00 PM (9 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- ade352a
- Parents:
- 93bffd4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/gaussian_peak.py
r3e428ec r9d76d29 1 1 r""" 2 3 Definition 4 ---------- 5 2 6 This model describes a Gaussian shaped peak on a flat background 3 7 4 .. image:: img/image198.PNG8 .. math:: 5 9 6 with the peak having height of *I0* centered at *q0* and having a standard deviation of *B*. The FWHM (full-width 7 half-maximum) is 2.354 B. 10 I(q) = (\text{scale}) \exp\left[ -\tfrac12 (q-q_0)^2 / \sigma^2 \right] 11 + \text{background} 8 12 9 For 2D data: The 2D scattering intensity is calculated in the same way as 1D, where the *q* vector is defined as 13 with the peak having height of *scale* centered at $q_0$ and having a standard 14 deviation of $\sigma$. The FWHM (full-width half-maximum) is $2.354 \sigma$. 10 15 11 .. image:: img/image040.gif 16 For 2D data, scattering intensity is calculated in the same way as 1D, 17 where the $q$ vector is defined as 12 18 13 .. image:: img/image199.jpg19 .. math:: 14 20 15 *Figure. 1D plot using the default values (w/500 data points).* 21 q = \sqrt{q_x^2 + q_y^2} 16 22 17 REFERENCE 23 24 .. image:: img/gaussian_peak_1d.jpg 25 26 1D plot using the default values (w/500 data points). 27 28 Reference 18 29 --------- 19 30 … … 27 38 description = """ 28 39 Model describes a Gaussian shaped peak including a flat background 29 Provide F(q) = scale*exp( -1/2 *[(q-q0)/ B]^2 )+ background40 Provide F(q) = scale*exp( -1/2 *[(q-q0)/sigma]^2 )+ background 30 41 """ 31 42 category = "shape-independent" … … 33 44 # ["name", "units", default, [lower, upper], "type","description"], 34 45 parameters = [["q0", "1/Ang", 0.05, [-inf, inf], "", "Peak position"], 35 ["sigma", "1/Ang", 0.005, [ -inf, inf], "",46 ["sigma", "1/Ang", 0.005, [0, inf], "", 36 47 "Peak width (standard deviation)"], 37 48 ]
Note: See TracChangeset
for help on using the changeset viewer.