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
74af5547
Commit
74af5547
authored
Jul 16, 2021
by
Peter Jentsch
Browse files
notes from meeting
parent
db80d49b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
7 deletions
+6
-7
CovidAlertVaccinationModel/src/ABM/contact_vectors.jl
CovidAlertVaccinationModel/src/ABM/contact_vectors.jl
+1
-5
CovidAlertVaccinationModel/src/ABM/mixing_graphs.jl
CovidAlertVaccinationModel/src/ABM/mixing_graphs.jl
+3
-0
CovidAlertVaccinationModel/src/ABM/model_setup.jl
CovidAlertVaccinationModel/src/ABM/model_setup.jl
+1
-1
CovidAlertVaccinationModel/src/ABM/plotting.jl
CovidAlertVaccinationModel/src/ABM/plotting.jl
+1
-1
No files found.
CovidAlertVaccinationModel/src/ABM/contact_vectors.jl
View file @
74af5547
#here are the functions for
#do this only at the start
"""
Called in the inner loop of `generate_contact_vectors!`, this function removes the degree corresponding to kth entry of index_lists, replaces it with another randomly sampled degree, and returns `csum` adjusted to the new samples.
...
...
CovidAlertVaccinationModel/src/ABM/mixing_graphs.jl
View file @
74af5547
...
...
@@ -91,6 +91,9 @@ function time_dep_mixing_graphs(len,base_network,demographics,index_vectors,ws_m
rest_weekly_edges
=
WeightedGraph
(
demographics
,
index_vectors
,
rest_matrix_tuple
.
twice_a_week
,
contact_time_distributions
.
rest
)
rest_justonce_edges
=
WeightedGraph
(
demographics
,
index_vectors
,
rest_matrix_tuple
.
otherwise
,
contact_time_distributions
.
rest
)
#weekly multiply durations by 1/5
#daily multiply by 1/2
inf_network_list
=
[
home_static_edges
,
rest_static_edges
,
ws_justonce_edges
,
rest_justonce_edges
]
soc_network_list
=
[
home_static_edges
,
rest_static_edges
,
ws_static_edges
]
...
...
CovidAlertVaccinationModel/src/ABM/model_setup.jl
View file @
74af5547
...
...
@@ -21,7 +21,7 @@
κ
=
0.0
,
ω
=
0.0061
,
ω_en
=
0.05
,
Γ
=
1
/
7
,
Γ
=
1
/
7
,
#make this .906
ξ
=
5.0
,
notification_parameter
=
0.0005
,
vaccinator_prob
=
0.6
,
...
...
CovidAlertVaccinationModel/src/ABM/plotting.jl
View file @
74af5547
...
...
@@ -4,7 +4,7 @@
using
Printf
const
ts_colors
=
cgrad
(
:
PuBu_9
)
#plot for each day some metric of repeated notifications
function
plot_model
(
varname
,
univariate_series
,
output_list
::
Vector
{
T
},
p
)
where
T
@unpack
sim_length
,
immunization_intervals
,
infection_introduction_day
=
p
immunization_begin
=
first
(
minimum
(
immunization_intervals
))
...
...
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