Changeset eb69cce in sasmodels for sasmodels/models/power_law.py
- Timestamp:
- Nov 30, 2015 9:18:41 PM (8 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:
- d18f8a8
- Parents:
- d138d43
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/power_law.py
r525f3a9 reb69cce 10 10 .. math:: 11 11 12 I(q) = \text{scale} \cdot q^{- power} + \text{background}12 I(q) = \text{scale} \cdot q^{-\text{power}} + \text{background} 13 13 14 14 Note the minus sign in front of the exponent. The exponent *power* … … 19 19 combining this model with other models. 20 20 21 .. image:: img/power_law_1d.jpg21 .. figure:: img/power_law_1d.jpg 22 22 23 *Figure. 1D plot using the default values (w/200 data point).* 23 1D plot using the default values (w/200 data point). 24 24 25 REFERENCE 25 References 26 ---------- 26 27 27 28 None. … … 47 48 inten = (q**-power) 48 49 return inten 49 Iq.vectorized = True # Iq accepts an array of Qvalues50 Iq.vectorized = True # Iq accepts an array of q values 50 51 51 52 def Iqxy(qx, qy, *args): 52 53 return Iq(sqrt(qx ** 2 + qy ** 2), *args) 53 Iqxy.vectorized = True # Iqxy accepts an array of Qx, Qy values54 Iqxy.vectorized = True # Iqxy accepts an array of qx, qy values 54 55 55 56 demo = dict(scale=1.0,
Note: See TracChangeset
for help on using the changeset viewer.