Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 1.19 KB

README.md

File metadata and controls

20 lines (15 loc) · 1.19 KB

Gibbs-Ising

This is simple python code for generating samples from Ising model using Gibbs sampling.

Useage

Call get_sample(W, u, n) to get n samples from Ising:



For thining and applying burn-in you can change gibbs_sampling function in sample_ising.py.

Example

For W as below, and n=10,000, energy of samples plotted:



energy-samples