Skip to content

Instantly share code, notes, and snippets.

@gerritgr
Last active June 17, 2021 08:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gerritgr/19d4fa914e4f7fb0c6f7c473854e3bd6 to your computer and use it in GitHub Desktop.
Save gerritgr/19d4fa914e4f7fb0c6f7c473854e3bd6 to your computer and use it in GitHub Desktop.
SIS model spec
Model:
- States: ["S", "I"]
- Rules:
# rules haben immer die Form "X->Z: rate" oder "X+Y->X+Z: rate" und eine reaction rate constant >=0
- Recovery: "I" -> "S": 1.0
- Infection: "I"+"S" -> "I"+"I": 0.3
Network:
# reicht wenn wir uns zuerst auf statische, undir. graphen ohne self-loops konzentrieren
- Edges: [(0,1),(1,2),(2,0),(0,3)]
Simulation:
- Simulation_number: 10 # koennen auch erstmal immer nur eine machen
- Horizon: 4.0 # wie lange wird simuliert
- Sampling_rate: 0.01 # gibt ca 400 datenpunkte
- Initial_distribution: {'S': 0.9, 'I': 0.1} # sollte automatisch normalisiert werden, ggf. auch pro node angeben
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment