lucadiba / epidemic-simulator Goto Github PK
View Code? Open in Web Editor NEWA HTML/JavaScript simulator for an epidemc on a population
Home Page: https://epidemic.lucadibattista.it/
License: GNU General Public License v3.0
A HTML/JavaScript simulator for an epidemc on a population
Home Page: https://epidemic.lucadibattista.it/
License: GNU General Public License v3.0
Add dark mode for:
Split people in different squares and let them move from one to another with a certain probability.
Reference: https://youtu.be/gxAaO2rsdIs?t=345 (time 5:45).
Add a button for pausing the simulation.
Add names of the most known viruses.
When a virus is selected, the parameters will be replaced with the ones of the virus.
Create JSON files with values for:
Then:
Before starting the simulation, decide how the parameters will change day by day.
Add unit testing for:
Add a location where people meet each other more often than other places (e.g. supermarket).
Reference: https://youtu.be/gxAaO2rsdIs?t=315 (time 5:15).
To contribuite, please see the file src/plugins/translator/translator.js
.
There already is the legend of the chart.
See if it's better to add another legend for dots.
Add a check for the input control_initial_population
.
When the number is too high, the tab will crash.
Possible solution: if 6.000.000 is set, the simulation will run with 1.000 people but the numbers will be scaled to 6.000.000.
Summary:
The page loads but the simulation won't start because an error is raised on page load.
Steps to reproduce:
Just load the page.
Error:
SCRIPT1005: SCRIPT1005: Expected '('
Where:
index.js (29,11)
Code raising the error:
getId = function () {
More informations
Microsoft Edge 44.18362.449.0
Microsoft EdgeHTML 18.18362
Actually, the default initial population is the same both if the Web-page is opened from desktop and from mobile (smaller canvas), resulting in different densities.
Reference: Basic reproduction number.
A percentage of the infected will need intensive care.
If the number of people in the intensive care has reached a maximum value, everyone else will die due to a lack of care.
Steps:
Send people in quarantine after x days, with a probability p.
Real world:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.