Bases: object
Class for doing a Monte Carlo chain walk
Parameters : | potential :
x : array
takestep : callable takestep object
accept_test : list of callables
events : list fo callables
|
---|
See also
Notes
defines parameters for a monte carlo chain from an initial configuration x with niter iterations. The step will be accepted subject only to a maximum energy criterion and geometric constraints on the configuration.
Attributes
nsteps | (integer) tot. number of steps |
naccepts | (integer) tot. number of accepted configurations |
xnew | (array) new proposed configuration |
accept | (boolean) true or false if energy constraint is satisfied |
Methods
__call__(x0, stepsize, Emax, energy[, seed]) | |
run(x0, stepsize, Emax, energy[, seed]) |