Changeset 18695bf in sasview for sansmodels/src/sans/models/BroadPeakModel.py
- Timestamp:
- Jan 18, 2011 8:38:36 AM (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:
- 18b89c4
- Parents:
- 1b02da1d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/BroadPeakModel.py
r8f20419d r18695bf 5 5 6 6 from sans.models.BaseComponent import BaseComponent 7 from math import pow, fabs 7 from math import fabs 8 from numpy import power 8 9 9 10 class BroadPeakModel(BaseComponent): … … 19 20 # Initialize BaseComponent first, then sphere 20 21 BaseComponent.__init__(self) 21 22 self.counter = 0 22 23 ## Name of the model 23 24 self.name = "BroadPeak" … … 60 61 inten = self.params['scale_p']/pow(x,self.params['exponent_p']) 61 62 inten += self.params['scale_l']/(1.0 + \ 62 pow((fabs(x-self.params['q_peak'])*self.params['length_l']),self.params['exponent_l'])) 63 power((fabs(x-self.params['q_peak'])*self.params['length_l']),\ 64 self.params['exponent_l'])) 65 63 66 inten += self.params['background'] 64 67 65 68 return inten 66 69
Note: See TracChangeset
for help on using the changeset viewer.