A first try at a Java applet, mostly code copied from the Java Tutorial and the Java in a Nutshell.

The applet is running just below. You can click on it to stop the animation. Click again to restart it.

Your browser can't run 1.0 Java applets.

This is a 20 x 20 pixel Ising model at critical temperature with free boundary conditions. The MCMC sampler is random-scan Gibbs.

One of these days I may learn enough OOP so that I won't mind people actually looking at this code. Right now, the part I wrote looks like (yecch!) C. You can look at the source only if you have a strong stomach. Don't say I didn't warn you.

For some statistical Java applets by other people, see http://www.stat.duke.edu/sites/java.html.

Back to my home page.