Giter Site home page Giter Site logo

randomwalk's Introduction

RandomWalk

An implementation of a random walk on a regular 1D lattice can be found in the RandomWalker.py program.

At each step in time (amount_time_stamps) the location of n particles (n_particles) jumps to another site according to some probability distribution (probability_threshold). The output of this process creates the following figure:

alt tag

Furthermore, the program also shows the behaviour of the variance which is computed as follows: The output of this computation can be seen in the following figure:

alt tag

The program 2D_RandomWalker pushes the simulation one step further by computing the random walk phenomenon in a 2 dimensional space. In this case the amount of walkers can decide at each time step to walk either left/right or up/down. The output of the simulation has very interesting geometric properties. In fact, it corresponds to a discrete fractal which is plotted by the program and looks like the following figure:

alt tag

randomwalk's People

Contributors

paintception avatar

Stargazers

 avatar

Watchers

 avatar  avatar

randomwalk's Issues

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.