Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/peak_lorentz.py

    r14ba6f6 r04b0b30  
    1111    I(q) = \frac{scale}{\bigl(1+\bigl(\frac{q-q_0}{B}\bigr)^2\bigr)} + background 
    1212 
    13 with the peak having height of $I_0$ centered at $q_0$ and having a HWHM (half-width half-maximum) of B. 
     13with the peak having height of $I_0$ centered at $q_0$ and having 
     14a HWHM (half-width half-maximum) of B. 
    1415 
    1516For 2D data the scattering intensity is calculated in the same way as 1D, 
     
    5556 
    5657def Iq(q, peak_pos, peak_hwhm): 
     58    """ 
     59        Return I(q) 
     60    """ 
    5761    inten = (1/(1+((q-peak_pos)/peak_hwhm)**2)) 
    5862    return inten 
     
    6064 
    6165def Iqxy(qx, qy, *args): 
     66    """ 
     67        Return I(qx, qy) 
     68    """ 
    6269    return Iq(sqrt(qx ** 2 + qy ** 2), *args) 
    6370Iqxy.vectorized = True # Iqxy accepts an array of qx, qy values 
Note: See TracChangeset for help on using the changeset viewer.