Giter Club home page Giter Club logo

populations's Introduction

Populations

simple codes of population dynamics

The SIR.py code solves the SIR model with RK4 showing how the maximum number of infected is linked to the number of susceptible to the ratio of the healing and counting coefficients of the model

The code "logistic model.py" shows the growth of a population according to the same model and shows the bifurcation diagram

The Lotka-Volterra.py code solves the equations of the same name in the case of a predatory prey relationship

The Game_of_life.py code returns an animation of the game by putting together various plots of each generation, starting from a generation zero extracted at random or starting from an existing one that can be created using the Gol_gen_0.py code

At each step in time, the following transitions occur:

Any live cell with fewer than two live neighbours dies, as if by underpopulation;

Any live cell with two or three live neighbours lives on to the next generation;

Any live cell with more than three live neighbours dies, as if by overpopulation;

Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction.

The virus.py code simulates the spread of a virus. The population is represented by balls that bounce inside a box, colliding elastically and depending on certain parameters, they become infected and heal. The population is divided into three categories as in the SIR model. The animation can be shown directly at the end of execution (but has problems in saving), or built as for Game_of_life, that is, by combining various graphics


populations's People

Contributors

francesco-zeno-costanzo avatar

Watchers

 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.