Coder Social home page Coder Social logo

y-taka-23 / elm-forestfire Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 0.0 250 KB

A forest-fire model as a probabilistic cellular automaton.

Home Page: https://y-taka-23.github.io/elm-forestfire/

License: BSD 3-Clause "New" or "Revised" License

HTML 2.49% JavaScript 14.82% CSS 13.42% Elm 69.26%

elm-forestfire's Introduction

Forest-Fire Model in Elm (Try It)

A forest-fire model as a probabilistic cellular automaton.

forest-fire model

Transition Rules

  1. A burning tree becomes a empty site
  2. A green tree becomes a burning tree if at least one of its nearest neighbors is burning.
  3. At an empty site a tree grows with probability p.
  4. A tree without a burning nearest neighbor becomes a burning tree with probability f.

Run Things Locally

git clone https://github.com/y-taka-23/elm-forestfire.git
cd elm-forestfire
npm install
elm-package install
npm run start

References

  • Bak, P., Chen, K. and Tang, C. (1990), "A forest-fire model and some thoughts on turbulence." Phys. Lett. A 147, pp.297โ€“300.
  • Drossel, B. and Schwabl, F. (1992), "Self-organized critical forest-fire model." Phys. Rev. Lett. 69, pp.1629โ€“1632.

elm-forestfire's People

Contributors

y-taka-23 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.