Changeset 9d76d29 in sasmodels


Ignore:
Timestamp:
Nov 9, 2015 1:43:00 PM (8 years ago)
Author:
Paul Kienzle <pkienzle@…>
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
Message:

fix up docs to use latex

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/gaussian_peak.py

    r3e428ec r9d76d29  
    11r""" 
     2 
     3Definition 
     4---------- 
     5 
    26This model describes a Gaussian shaped peak on a flat background 
    37 
    4 .. image:: img/image198.PNG 
     8.. math:: 
    59 
    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} 
    812 
    9 For 2D data: The 2D scattering intensity is calculated in the same way as 1D, where the *q* vector is defined as 
     13with the peak having height of *scale* centered at $q_0$ and having a standard 
     14deviation of $\sigma$. The FWHM (full-width half-maximum) is $2.354 \sigma$. 
    1015 
    11 .. image:: img/image040.gif 
     16For 2D data, scattering intensity is calculated in the same way as 1D, 
     17where the $q$ vector is defined as 
    1218 
    13 .. image:: img/image199.jpg 
     19.. math:: 
    1420 
    15 *Figure. 1D plot using the default values (w/500 data points).* 
     21    q = \sqrt{q_x^2 + q_y^2} 
    1622 
    17 REFERENCE 
     23 
     24.. image:: img/gaussian_peak_1d.jpg 
     25 
     26    1D plot using the default values (w/500 data points). 
     27 
     28Reference 
    1829--------- 
    1930 
     
    2738description = """ 
    2839    Model describes a Gaussian shaped peak including a flat background 
    29     Provide F(q) = scale*exp( -1/2 *[(q-q0)/B]^2 )+ background 
     40    Provide F(q) = scale*exp( -1/2 *[(q-q0)/sigma]^2 )+ background 
    3041""" 
    3142category = "shape-independent" 
     
    3344#             ["name", "units", default, [lower, upper], "type","description"], 
    3445parameters = [["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], "", 
    3647               "Peak width (standard deviation)"], 
    3748             ] 
Note: See TracChangeset for help on using the changeset viewer.