Changeset 446 for trunk/src/random.py
- Timestamp:
- 04/12/10 15:37:12 (2 years ago)
- Files:
-
- 1 modified
-
trunk/src/random.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/random.py
r353 r446 20 20 21 21 have_scipy = check_dependency('scipy') 22 if have_scipy:23 import scipy.stats24 22 25 23 … … 95 93 self.dist_name = 'GammaDist' 96 94 97 if have_scipy: 95 if have_scipy: 96 import scipy.stats 98 97 def next(self,n=1): 99 98 return scipy.stats.gamma.rvs(self.params['a'],size=n)*self.params['b']
