The master equation for transition between states
in the simulation is

We want the algorithm to establish the canonical distribution

this can be acomplished for many different functional forms for the transition probability w.
In the Metropolis algorithm for (NTV) ensemble:

In the Glauber algorithm for (NTV) ensemble:

In the Metropolis algorithm for (NTp) ensemble:

Author Per Stoltze stoltze@fysik.dtu.dk