Question: Ising model for binary images. Given a 2D rectangular lattice of nodes, for instance, a 10 10 square lattice of 100 nodes, we number the
Ising model for binary images. Given a 2D rectangular lattice of nodes, for instance, a 10 10 square lattice of 100 nodes, we number the nodes (i.e., pixels) from 1 to N = 100, and each pixel can either be 0 (white) or 1 (blue). Let xi be a random variable with the value of pixel i, and let x = (x1, . . . , xN ). Use the Markov Chain Monte Carlo method to sample the following probability distribution ?(x) = 1 Z exp{?? X i6=j I(xi 6= xj )}. Fix ? = 0.5, then run the simulations with 10,000 iterations. Code in Matlab.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
