Acceptance Tests¶
-
class
mcpele.monte_carlo.MetropolisTest¶ Bases:
mcpele.monte_carlo._accept_test_cpp._Cdef_MetropolisMetropolis acceptance criterion
This class is the Python interface for the c++ mcpele::MetropolisTest acceptance test class implementation. The Metropolis acceptance criterion accepts each move with probability
\[P( x_{old} \Rightarrow x_{new}) = min \{ 1, \exp [- \beta (E_{new} - E_{old})] \}\]where \(\beta\) is the reciprocal of the temperature.
-
get_seed()¶ return random number generator seed
Returns: int
random number generator seed
-
set_generator_seed()¶ sets the random number generator seed
Parameters: input : pos int
random number generator seed
-