GithubHelp home page GithubHelp logo

interesting-codes / mcmc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bit-player/mcmc

0.0 0.0 0.0 214 KB

JS programs for Monte Carlo simulations of the Ising model of ferromagnetism

License: MIT License

CSS 0.11% Julia 89.96% HTML 1.30% JavaScript 8.62%

mcmc's Introduction

MCMC

Five variants of Monte Carlo simulations of the Ising model of ferromagnetism, all written in JavaScript and meant to run in a browser window.

This code is associated with the article "Three Months in Monte Carlo" at http://bit-player.org/2021/three-months-in-monte-carlo.

  • Program 1: Metro vs. Glauber. Comparison of the Metropolis algorithm and Glauber dynamics.

  • Program 2: Mix and Match. The Metropolis and Glauber algorithms differ in two main ways: the order in which sites are visited in the lattice, and the rule applied to decide whether or not a selected spin will be flipped. Program 2 allows those components to be recombined in the four possible ways.

  • Program 3: Visitation Variations. Explore the effects of eight choices for the visitation sequence in the Metropolis algorithm.

  • Program 4: Boundaries. In a computer model we can create only a finite chunk of what might be an infinite plane. Here are eight ideas for what the model might do when you come to the edge of the world.

  • Program 5: The MCMC Microscope. A slow-motiom, close-up view of how individual lattice sites evolve under various rules and protocols.

Also included here is a Julia file (meant to be opened and run in the Pluto.jl notebook server) with data and programs for reproducing the graphs in the bit-player.org article.

mcmc's People

Contributors

bit-player avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.