Giter VIP home page Giter VIP logo

ai-generated-diease-simulator's Introduction

SIR Disease Simulator SPA

This is a Single Page Application built with Next.js that simulates the spread of a disease using the SIR model. The application uses Tailwind CSS for the UI and three.js to create the simulation visual.

Implementation Details

The simulation uses the SIR (Susceptible-Infected-Recovered) model to simulate the spread of the disease. The simulation takes place in a closed environment with a set population of agents, each agent can be one of these three states. An S agent can be converted to the I state by coming into contact with another agent with I status. There is a probability each time an S agent is in a certain radius of an I agent if it will get infected. Once an I agent has spent a certain amount of time in this state, it transitions to R state where it cannot be moved to I state again.

The UI is built using Tailwind CSS, and the simulation visual is created using three.js. The application allows you to control parameters such as infectivity radius, speed of agent movement, probability of infection, and size of the population. You can save run configurations and store a history of previous runs of the simulation. Additionally, a graph is displayed showing the relationship between agents in different SIR states.

Acknowledgements

This project was primarily created by GPT-4. In fact, this README is written by GPT-4.

ai-generated-diease-simulator's People

Contributors

sselin-co 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.