Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Peter Jentsch
CovidAlertABM
Commits
b1acc8c5
Commit
b1acc8c5
authored
Jul 23, 2021
by
Peter Jentsch
Browse files
changes to reduce noise implemented
parent
7a0347d8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
CovidAlertVaccinationModel/src/ABM/mixing_graphs.jl
CovidAlertVaccinationModel/src/ABM/mixing_graphs.jl
+3
-3
CovidAlertVaccinationModel/src/ABM/model_setup.jl
CovidAlertVaccinationModel/src/ABM/model_setup.jl
+1
-1
No files found.
CovidAlertVaccinationModel/src/ABM/mixing_graphs.jl
View file @
b1acc8c5
...
...
@@ -82,9 +82,9 @@ Assumes the simulation begins on Thursday arbitrarily.
function
time_dep_mixing_graphs
(
len
,
base_network
,
demographics
,
index_vectors
,
ws_matrix_tuple
,
rest_matrix_tuple
)
#weekly multiply durations by 1/5
daily_shift
(
dur_dists
)
=
dur_dists
#
shift_contact_distributions(dur_dists,1/5)
daily_shift
(
dur_dists
)
=
shift_contact_distributions
(
dur_dists
,
1
/
5
)
#daily multiply by 1/2
weekly_shift
(
dur_dists
)
=
dur_dists
#
shift_contact_distributions(dur_dists,1/2)
weekly_shift
(
dur_dists
)
=
shift_contact_distributions
(
dur_dists
,
1
/
2
)
home_static_edges
=
WeightedGraph
(
base_network
,
demographics
,
contact_time_distributions
.
hh
)
#network with households and LTC homes
...
...
@@ -202,7 +202,7 @@ function remake!(wg::WeightedGraph,index_vectors)
empty!
.
(
wg
.
g
.
fadjlist
)
#empty all the vector edgelists
wg
.
g
.
ne
=
0
empty!
(
wg
.
weights_dict
)
assemble_graph!
(
wg
.
g
,
wg
.
weights_dict
,
index_vectors
,
wg
.
mixing_matrix
,
wg
.
sampler_matrix
,
wg
.
degrees_matrix
;
resample_degrees
=
tru
e
)
assemble_graph!
(
wg
.
g
,
wg
.
weights_dict
,
index_vectors
,
wg
.
mixing_matrix
,
wg
.
sampler_matrix
,
wg
.
degrees_matrix
;
resample_degrees
=
fals
e
)
end
...
...
CovidAlertVaccinationModel/src/ABM/model_setup.jl
View file @
b1acc8c5
...
...
@@ -21,7 +21,7 @@
κ
=
0.0
,
ω
=
0.0061
,
ω_en
=
0.05
,
Γ
=
1
/
7
,
#
0.906,
Γ
=
0.906
,
ξ
=
5.0
,
notification_parameter
=
0.0005
,
vaccinator_prob
=
0.6
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment