simulate_er.jl 276 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

using MarkovProcesses

load_model("ER")

σ = simulate(ER)

d1 = Dict("E" => 1, "S"=> 2, "ES" => 3, "P" => 4)
d2 = Dict("P" => 1)

bool_test = ER.g == ["P"] && ER._g_idx == [4] && 
            ER.map_var_idx == d1 && 
            ER._map_obs_var_idx == d2

return bool_test