Skip to content

Commit 2358e82

Browse files
replace tikz with png
1 parent 4cf22f0 commit 2358e82

File tree

1 file changed

+3
-30
lines changed

1 file changed

+3
-30
lines changed

23_ID_modelling.ipynb

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -238,18 +238,7 @@
238238
"\n",
239239
"The simplest possible assumption about how a disease spreads is that each case of disease leads on to some fixed number of new cases every day. \n",
240240
"\n",
241-
"```{tikz} \n",
242-
" [level distance=20mm,level/.style={sibling distance=40mm/#1}]\n",
243-
" \\node[circle, draw, fill=red!30] {D0}\n",
244-
" child {node[circle, draw, fill=red!30] {D1}\n",
245-
" child {node[circle, draw, fill=red!30] {D2}}\n",
246-
" child {node[circle, draw, fill=red!30] {D2}}\n",
247-
" }\n",
248-
" child {node[circle, draw, fill=red!30] {D1}\n",
249-
" child {node[circle, draw, fill=red!30] {D2}}\n",
250-
" child {node[circle, draw, fill=red!30] {D2}}\n",
251-
" };\n",
252-
"```\n",
241+
"![](assets/idm1.png)\n",
253242
"\n",
254243
"Day 0: 1 \n",
255244
"\n",
@@ -370,14 +359,7 @@
370359
"- $I(t)$ be the number of infected individuals at time $t$.\n",
371360
"- $N$ be the total population size (constant over time).\n",
372361
"\n",
373-
"```{tikz}\n",
374-
"% Nodes\n",
375-
"\\node[draw, circle, fill=blue!30] (S) at (0,0) {S};\n",
376-
"\\node[draw, circle, fill=red!30] (I) at (2,0) {I};\n",
377-
" \n",
378-
"% Arrows\n",
379-
"\\draw[->, thick] (S) to[out=45,in=135] node[midway, above]{$\\beta S I/N$} (I);\n",
380-
"```\n",
362+
"![](assets/idm2.png)\n",
381363
"\n",
382364
"The dynamics of the SI model can be described using a set of ODEs. One of them describes the rate of change in susceptiopal individuals $\\frac{dS}{dt}$ and the other one describes the rate of change in infected individuals $\\frac{dI}{dt}$:\n",
383365
"\n",
@@ -560,16 +542,7 @@
560542
"\n",
561543
"The acronym SIR stands for Susceptible-Infectious-Recovered, representing the three main compartments of individuals within the population. The $R(t)$ described individuals who have recovered from the disease and have developed immunity to it. Recovered individuals are no longer susceptible to the disease and cannot transmit it to others. In some cases, individuals may also acquire immunity through vaccination.\n",
562544
"\n",
563-
"```{tikz}\n",
564-
"% Nodes\n",
565-
"\\node[draw, circle, fill=blue!30] (S) at (0,0) {S};\n",
566-
"\\node[draw, circle, fill=red!30] (I) at (2,0) {I};\n",
567-
"\\node[draw, circle, fill=green!30] (R) at (4,0) {R};\n",
568-
" \n",
569-
"% Arrows\n",
570-
"\\draw[->, thick] (S) to[out=45,in=135] node[midway, above]{$\\beta S I/N$} (I);\n",
571-
"\\draw[->, thick] (I) to[out=45,in=135] node[midway, above]{$\\gamma I$} (R);\n",
572-
"```\n",
545+
"![](assets/idm3.png)\n",
573546
"\n",
574547
"$$\n",
575548
"\\begin{align*}\n",

0 commit comments

Comments
 (0)