Changeset eb69cce in sasmodels for sasmodels/models/broad_peak.py


Ignore:
Timestamp:
Nov 30, 2015 9:18:41 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:
d18f8a8
Parents:
d138d43
Message:

make model docs more consistent; build pdf docs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/broad_peak.py

    rd138d43 reb69cce  
    1010spherical morphologies, or for bicontinuous structures). 
    1111 
    12 The returned value is scaled to units of |cm^-1|, absolute scale. 
    13  
    1412Definition 
    1513---------- 
    1614 
    17 The scattering intensity *I(q)* is calculated as 
     15The scattering intensity $I(q)$ is calculated as 
    1816 
    19 .. math: 
     17.. math:: 
    2018 
    21     I(q) = \frac{A}{Q^n} + \frac{C}{1 + (Q\xi}^m} + B 
     19    I(q) = \frac{A}{q^n} + \frac{C}{1 + (q\xi)^m} + B 
    2220 
    23 Here the peak position is related to the d-spacing as *Q0* = 2|pi| / *d0*. 
     21Here the peak position is related to the d-spacing as $q_o = 2\pi / d_o$. 
    2422 
    25 For 2D data: The 2D scattering intensity is calculated in the same way as 1D, 
    26 where the *q* vector is defined as 
     23For 2D data the scattering intensity is calculated in the same way as 1D, 
     24where the $q$ vector is defined as 
    2725 
    28 .. math: 
     26.. math:: 
    2927 
    3028    q = \sqrt{q_x^2 + q_y^2} 
     
    3533    1D plot using the default values (w/200 data point). 
    3634 
    37 REFERENCE 
    38 --------- 
     35References 
     36---------- 
    3937 
    4038None. 
     
    7573             / (1.0 + (abs(q - peak_pos) * lorentz_length) ** lorentz_exp)) 
    7674    return inten 
    77 Iq.vectorized = True  # Iq accepts an array of Q values 
     75Iq.vectorized = True  # Iq accepts an array of q values 
    7876 
    7977def Iqxy(qx, qy, *args): 
    8078    return Iq(sqrt(qx ** 2 + qy ** 2), *args) 
    81 Iqxy.vectorized = True # Iqxy accepts an array of Qx, Qy values 
     79Iqxy.vectorized = True # Iqxy accepts an array of qx, qy values 
    8280 
    8381 
Note: See TracChangeset for help on using the changeset viewer.