Changeset 9bd69098 in sasview for sansmodels/src/sans/models/Gaussian.py
- Timestamp:
- Aug 7, 2009 9:10:34 AM (15 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:
- 58c6ba6
- Parents:
- 83a25da
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/Gaussian.py
r988130c6 r9bd69098 17 17 18 18 WARNING: THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY 19 DO NOT MODIFY THIS FILE, MODIFY .. /c_extensions/gaussian.h19 DO NOT MODIFY THIS FILE, MODIFY ..\c_extensions\gaussian.h 20 20 AND RE-RUN THE GENERATOR SCRIPT 21 21 … … 28 28 class Gaussian(CGaussian, BaseComponent): 29 29 """ Class that evaluates a Gaussian model. 30 This file was auto-generated from .. /c_extensions/gaussian.h.30 This file was auto-generated from ..\c_extensions\gaussian.h. 31 31 Refer to that file and the structure it contains 32 32 for details of the model. … … 47 47 ## Name of the model 48 48 self.name = "Gaussian" 49 ## Model description 49 50 self.description ="""f(x)=scale * 1/(sigma^2*2pi)e^(-(x-mu)^2/2sigma^2)""" 51 50 52 ## Parameter details [units, min, max] 51 53 self.details = {} … … 53 55 self.details['sigma'] = ['', None, None] 54 56 self.details['center'] = ['', None, None] 55 #list of parameter that cannot be fitted 56 self.fixed= [] 57 58 ## fittable parameters 59 self.fixed=[] 60 61 ## parameters with orientation 62 self.orientation_params =[] 57 63 58 64 def clone(self): … … 76 82 return CGaussian.runXY(self, x) 77 83 84 def evalDistribition(self, x = []): 85 """ Evaluate the model in cartesian coordinates 86 @param x: input q[], or [qx[], qy[]] 87 @return: scattering function P(q[]) 88 """ 89 return CGaussian.evalDistribition(self, x) 90 78 91 def set_dispersion(self, parameter, dispersion): 79 92 """
Note: See TracChangeset
for help on using the changeset viewer.