simulate_sir_bounded.jl 294 Bytes
Newer Older
Bentriou Mahmoud's avatar
Bentriou Mahmoud committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

using MarkovProcesses

load_model("SIR")
SIR.time_bound = 100.0

σ = simulate(SIR)

d1 = Dict("S" => 1, "I"=> 2, "R" => 3)
d2 = Dict("I" => 1)

bool_test = SIR.g == ["I"] && SIR._g_idx == [2] && 
            SIR.map_var_idx == d1 && 
            SIR._map_obs_var_idx == d2

return bool_test