pottshm: Metropolis-Hastings sampler for a Potts model with ncol classes
Description
This function returns a simulation of a n by m grid
from a Potts distribution with ncol colours and a four neighbour
structure, using a Metropolis-Hastings step that avoids proposing
a value identical to the current state of the Markov chain.