sim_sir_bounded.jl 240 Bytes
Newer Older
Bentriou Mahmoud's avatar
Bentriou Mahmoud committed
1
2
3
4
5
6
7
8
9
10
11
12
13

using MarkovProcesses 
using PyPlot

load_model("SIR")
SIR.time_bound = 100.0

σ = simulate(SIR)
plt.figure()
plt.step(σ["times"], σ["I"], "ro--", marker="x", where="post", linewidth=1.0)
plt.savefig("sim_sir_bounded.png")
plt.close()