Changeset 736
- Timestamp:
- 07/30/14 15:59:17 (22 months ago)
- Location:
- mystic
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
mystic/examples/mpl_corana.py
r713 r736 29 29 pylab.plot(xx,yy,'r-',xx,yy,'ko',linewidth=2) 30 30 31 pylab.title("Solution trajectories for scipy's fmin at different ICs")31 pylab.title("Solution trajectories for fmin at different initial conditions") 32 32 pylab.show() 33 33 -
mystic/examples/test_twistedgaussian.py
r726 r736 25 25 26 26 from mystic.scemtools import * 27 27 from numpy import zeros, identity, array 28 from numpy import random 28 29 29 30 # dimension of density function … … 51 52 52 53 def proposal(X): 53 return multivariate_normal(X, 10. * identity(n))54 return random.multivariate_normal(X, 10. * identity(n)) 54 55 55 56 def initpop(npts, ndim): 56 from numpy import random57 57 return random.rand(npts, ndim) * 200. -1 58 58
Note: See TracChangeset
for help on using the changeset viewer.