chimera simulates the diffusion of innovations in a society
Project description
Chimera
Chimera simulates the spread of ideas within a population.
Installation
pip install zf-chimera
Usage
$ chimera --help
usage: chimera [-h] [--population POPULATION] [--start START] [--infected INFECTED] [--radius RADIUS] [--spread SPREAD] [--steps STEPS]
Simulate the diffusion of innovations
options:
-h, --help show this help message and exit
--population POPULATION
The population size of the society
--model MODEL The model to use (e.g. v1, v2)
--start START The style of the simulation (e.g. middle, random)
--infected INFECTED The number of initially infected (e.g. 1, 10)
--radius RADIUS The geographic radius of each agent (e.g. 5, 10)
--spread SPREAD The number of agents each agent will infect (e.g. 2, 7)
--steps STEPS The number of steps to simulate (e.g. 50, 100)
$ chimera
Running simulation for 50 steps with 3481 agents
Parameters
You can control the simulation by changing parameter which will affect the spread of the idea.
Transmission Rate
The transmission rate is the probability that an agent will be infected by another agent.
The argument name is --rate
and its default value is set to 0.5.
For the following tables, the initial infected is set to 1 while varying the transmission rate.
Rate = 0.3 |
Rate = 0.5 |
Rate = 1.0 |
Initial Infected
The initial infected is the number of agents that will be infected at the start of the simulation.
The argument name is --infected
and its default value is set to 1.
For the following examples, the transmission rate is set to 0.5 while varying the initial infected.
Infected = 1 |
Infected = 3 |
Infected = 5 |
Geographic Radius
The geographic radius is the distance that an agent can transmit the idea to another agent.
For the following examples, both the transmission rate and initial infected are set to 1 while varying the geographic radius.
Radius = 1 |
Radius = 3 |
Radius = 5 |
Questions
- How many friends does a person have?
- How many people does a person talk to?
- When do people act upon some information?
- How to model hierarchies and groups?
- How to model lateral communication?
References
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file zf-chimera-0.0.2.tar.gz
.
File metadata
- Download URL: zf-chimera-0.0.2.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5e54cfb7f148de9c73c3d2cd71f733496f5f1f33dbf5657a70d91e093c0bd88 |
|
MD5 | 0f21a1b453bade9fe182f235741127c7 |
|
BLAKE2b-256 | c1ab974a80ed42e06a7aa6cb08b61d5fdfb5c90a3d266d7a8a0929eab7be4a7d |
File details
Details for the file zf_chimera-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: zf_chimera-0.0.2-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f20c1c0c623ee87651117d70c91effdb2f79c068412a1200d64a6991f90feac |
|
MD5 | 1d749cb207a6e845f963a810bef1c589 |
|
BLAKE2b-256 | 2b217876bd12ab5cfb83b8c1c5ac121014cbac347ecd310217da9495020617c2 |