Changeset a807206 in sasmodels for sasmodels/models/gaussian_peak.py
- Timestamp:
- Oct 1, 2016 12:42:06 AM (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:
- caddb14, 5031ca3
- Parents:
- 2222134
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/gaussian_peak.py
r7f1ee79 ra807206 34 34 description = """ 35 35 Model describes a Gaussian shaped peak including a flat background 36 Provide F(q) = scale*exp( -1/2 *[(q- q0)/sigma]^2 )+ background36 Provide F(q) = scale*exp( -1/2 *[(q-peak_pos)/sigma]^2 )+ background 37 37 """ 38 38 category = "shape-independent" 39 39 40 40 # ["name", "units", default, [lower, upper], "type","description"], 41 parameters = [[" q0", "1/Ang", 0.05, [-inf, inf], "", "Peak position"],41 parameters = [["peak_pos", "1/Ang", 0.05, [-inf, inf], "", "Peak position"], 42 42 ["sigma", "1/Ang", 0.005, [0, inf], "", 43 43 "Peak width (standard deviation)"], … … 45 45 46 46 Iq = """ 47 double scaled_dq = (q - q0)/sigma;47 double scaled_dq = (q - peak_pos)/sigma; 48 48 return exp(-0.5*scaled_dq*scaled_dq); //sqrt(2*M_PI*sigma*sigma); 49 49 """ … … 51 51 # VR defaults to 1.0 52 52 53 demo = dict(scale=1, background=0, q0=0.05, sigma=0.005)53 demo = dict(scale=1, background=0, peak_pos=0.05, sigma=0.005)
Note: See TracChangeset
for help on using the changeset viewer.