Giter Site home page Giter Site logo

ca_seir's Introduction

CA_SEIR

元胞自动机模拟病毒传染(SEIR模型)可视化

功能描述

设置一定大小的人数、四种人群(四种状态)、传染概率、潜伏时间、治愈时间、免疫时间,即可对其进行模拟也可以更改规则和人数、人群,实现自己想要的模拟

环境配置&需要的包

  • Python 3.x+Anaconda+Pycharm
  • ramdom、numpy、sys
  • pygame
  • matplotlib

如何更改参数或制定自己想要的规则

  • 1.更改传染病模型人群种类(状态)代码2-6行注释
  • 2.更改规则,对每一个类别的人群,确定相应规则 代码9-12行,98-128行
  • 3.更改人群总数 代码226行(后两个参数的乘积)+246行(退出循环条件)
  • 4.更改概率,代码20-26行

相关示例

fig.1 fig.2 fig.3 fig.4 fig.5

ca_seir's People

Contributors

windxy 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.