Skip to content
Snippets Groups Projects
Commit 60fdb808 authored by Peter Jentsch's avatar Peter Jentsch
Browse files

fix typo in graph probs

parent 3f193464
No related branches found
No related tags found
No related merge requests found
......@@ -104,7 +104,7 @@ function time_dep_mixing_graphs(len,base_network,demographics,index_vectors,ws_m
if !(day_of_week == 3 || day_of_week == 4) #simulation begins on thursday I guess
push!(l, ws_static_edges)
end
if rand(Random.default_rng(Threads.threadid()))<5/7
if rand(Random.default_rng(Threads.threadid()))<2/7
push!(l, ws_weekly_edges)
push!(l, rest_weekly_edges)
end
......
......@@ -3,9 +3,9 @@ function get_parameters()#(0.0000,0.00048,0.0005,0.16,-1.30,-1.24,-0.8,0.35,0.35
sim_length = 500,
num_households = 5000,
I_0_fraction = 0.003,
β_y = 0.001095,
β_m = 0.00061,
β_o = 0.04,
β_y = 0.00122,
β_m = 0.00069,
β_o = 0.046,
α_y = 0.4,
α_m = 0.4,
α_o = 0.4,
......
#remove Base.@propagate_inbounds during tests if you get segfaults or change anything,
# as that might mean there is an indexing bug that is not being caught,
#and therefore accessing the wrong memory is causing background errors
function contact_weight(β, contact_time)
return 1 - (1-β)^contact_time
end
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment