Changeset 79411b2 in sasview for sansmodels/src/sans/models
- Timestamp:
- Apr 12, 2012 3:22:49 PM (13 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:
- 2e9c3ea
- Parents:
- 7415cbe
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/GaussLorentzGelModel.py
r8f20419d r79411b2 6 6 7 7 from sans.models.BaseComponent import BaseComponent 8 from math import exp 8 import math 9 9 10 10 class GaussLorentzGelModel(BaseComponent): … … 30 30 ## Name of the model 31 31 self.name = "GaussLorentzGel" 32 self.description ="""I(q)=scale_g*exp(-q^2*Z^2/2)+scale_l/(1+q^2*z^2)32 self.description = """I(q)=scale_g*exp(-q^2*Z^2/2)+scale_l/(1+q^2*z^2) 33 33 + background 34 34 List of default parameters: … … 55 55 56 56 #list of parameter that cannot be fitted 57 self.fixed = []57 self.fixed = [] 58 58 def _gausslorentzgel(self, x): 59 59 """ 60 60 Model definition 61 61 """ 62 inten = self.params['scale_g']* exp(-1.0*x*x*self.params['stat_colength']* \62 inten = self.params['scale_g']*math.exp(-1.0*x*x*self.params['stat_colength']* \ 63 63 self.params['stat_colength']/2.0) + self.params['scale_l']/ \ 64 64 (1.0 + (x*self.params['dyn_colength'])* \
Note: See TracChangeset
for help on using the changeset viewer.