Coder Social home page Coder Social logo

uofuepibio / epiworld Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 0.0 123.27 MB

A general framework for quick epidemiological ABM models

License: MIT License

C++ 99.73% Makefile 0.14% R 0.10% Dockerfile 0.02%
abm agent-based-modeling contagion simulation

epiworld's People

Contributors

derekmeyer37 avatar gvegayon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

epiworld's Issues

Global action changing status

A contradiction can occur when a global action changes an agent to a status that depends on a virus, e.g.:

  1. Update status moves agent to recovered, and the virus is to be removed.
  2. The global action sees the agent still in the model, and moves the agent to infectious.
  3. The virus will be removed, but the status is set as the last one, infectious.
  4. The agent will then be incorporated into the model as infectious, but with no virus, causing an error.

Recompute connected model transmission

The rationale to compute transmission should be different.

  1. Using contact_rate, sample neighbors from the population.
  2. Follow the same steps as in the ModelSIR class, i.e., regular transmission prob.

This alternative should be used whenever any of the follow conditions is true:

  • Transmission probability in the virus is a function.
  • There are tools involved.

Pair status update with status

The Person::update_status function uses the IN template function which right now is causing a bit of a bottleneck. Instead of checking set inclusion, we could leverage that statuses are unsigned ints, and thus an updating function could be reached by simply accessing by index, i.e., update_status_funs[p->status_current]();.

Always reset the state of the agents

Currently, when reset()=true and there's a backup population, the agents' states are not reset. This should not be the case, as the backup should only preserve network structure (and data), not states, tools, and viruses.

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.