Changeset 79ac6f8 in sasview for sansmodels/src/sans/models/FractalAbsModel.py
- Timestamp:
- Jun 4, 2010 3:04:49 PM (14 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 5062bbf
- Parents:
- 7116b6e0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/FractalAbsModel.py
r9ce41c6 r79ac6f8 1 1 #!/usr/bin/env python 2 2 """ 3 4 Provide F(x)= P(|x|)*S(|x|) + bkd 5 Fractal as a BaseComponent model 3 Provide F(x)= P(|x|)*S(|x|) + bkd 4 Fractal as a BaseComponent model 6 5 """ 7 6 … … 11 10 class FractalAbsModel(FractalModel): 12 11 """ 13 14 15 16 17 18 19 20 21 22 23 24 12 Class that evaluates a Fractal function. 13 14 F(|x|)= P(|x|)*S(|x|) + bkd 15 The model has Seven parameters: 16 scale = Volume fraction 17 radius = Block radius 18 fractal_dim = Fractal dimension 19 corr_length = correlation Length 20 block_sld = SDL block 21 solvent_sld = SDL solvent 22 background = background 23 25 24 """ 26 25 def __init__(self): 27 """ 26 """Initialization """ 28 27 # Initialize FractalModel 29 28 … … 47 46 """ 48 47 def _Fractal(self, x): 48 """ 49 """ 49 50 return FractalModel._Fractal(self, math.fabs(x)) 51 52
Note: See TracChangeset
for help on using the changeset viewer.