Changeset eb69cce in sasmodels for sasmodels/models/power_law.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/power_law.py

    r525f3a9 reb69cce  
    1010.. math:: 
    1111 
    12     I(q) = \text{scale} \cdot q^{-power} + \text{background} 
     12    I(q) = \text{scale} \cdot q^{-\text{power}} + \text{background} 
    1313 
    1414Note the minus sign in front of the exponent. The exponent *power*  
     
    1919combining this model with other models. 
    2020 
    21 .. image:: img/power_law_1d.jpg 
     21.. figure:: img/power_law_1d.jpg 
    2222 
    23 *Figure. 1D plot using the default values (w/200 data point).* 
     23    1D plot using the default values (w/200 data point). 
    2424 
    25 REFERENCE 
     25References 
     26---------- 
    2627 
    2728None. 
     
    4748    inten = (q**-power) 
    4849    return inten 
    49 Iq.vectorized = True  # Iq accepts an array of Q values 
     50Iq.vectorized = True  # Iq accepts an array of q values 
    5051 
    5152def Iqxy(qx, qy, *args): 
    5253    return Iq(sqrt(qx ** 2 + qy ** 2), *args) 
    53 Iqxy.vectorized = True # Iqxy accepts an array of Qx, Qy values 
     54Iqxy.vectorized = True # Iqxy accepts an array of qx, qy values 
    5455 
    5556demo = dict(scale=1.0, 
Note: See TracChangeset for help on using the changeset viewer.