Giter Club home page Giter Club logo

cellular-automata's Introduction

Cellular-Automata

How does this works and what is it?

Parallel implementation of 1D Cellular automata in Java 8, and a GUI(done with the Swing library) to observe them.

To compile and then execute: javac Simulatore.java java Simulatore

Once we got the program running, we can adjust some parameters in order to obtain the cellular automata requiered. We have the following parameters:

  • Semilla, SemillaX, SemillaW and SemillaY which are all seeds for the random generator. The random generator is used to initialize randomly the pane. -We also have a list of different random generators such as the methods of Fishman & Moore, the Randu metho and others.
  • fTransicion, is the transition function. To consult some well-knowns transition functions: http://mathworld.wolfram.com/ElementaryCellularAutomaton.html
  • Ncelulas, is the number of cells used in every generation(being 640 the maximum).
  • Nestados, is the number of posible states.
  • condicionFrontera, is the frontier condition. Being 0 a void frontier and any number greater than 0 would set a cylindric frontier.
  • Nvecinos, is the neighborhood.

setting window

Now we can see the output of the first epoch, after pushing the botton "DIBUJAR", everytime we push this botton we create 640 new generations(since every row is a generation).

Display window

We also have a very sample graphical display of the evolution of the Hamming distance(line in red) and the spatial entropy(line in black) of the cellular automata, and also a display of the numeric value of the seventh cell entropy in function of time.

Statics window

Some well-known cellular automatas

Rule 30 with void frontier and Fishman and Moore generator

Rule 30 with void frontier

Rule 30 with cyclic frontier and Fishman and Moore generator

Rule 30 with cylindric frontier

cellular-automata's People

Contributors

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