Skip to content

Commit

Permalink
Merge pull request #2 from jasperhepp/master
Browse files Browse the repository at this point in the history
update covid_plot_exp
  • Loading branch information
dkohlweyer authored Jul 8, 2020
2 parents 49031a2 + 46016ce commit 07cbf14
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions covid_plot_exp.jl
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
using Statistics,Serialization,StatsPlots
filename_prefix = "exp//baseline//"
include("$(filename_prefix)covid_par_ini.jl")
worker_results = deserialize(open("$(filename_prefix)batchdata.dat"))
path_to_data = "data//baseline_GER//"
filename_prefix = "figures//"

datapoint = fld(T,data)
include("$(path_to_data)covid_par_ini.jl")
worker_results = deserialize(open("$(path_to_data)batchdata.dat"))

datapoint = fld(T,datat)

gdpmean = mean(hcat((results -> results[:gdppercaptraj]).(worker_results)...), dims=2)
gdpstd = std(hcat((results -> results[:gdppercaptraj]).(worker_results)...), dims=2)
Expand Down Expand Up @@ -32,10 +34,9 @@ savefig(pl3,"$(filename_prefix)RKIR0dyn.pdf")

totinfmean = mean(hcat((results -> results[:totinftraj]).(worker_results)...), dims=2)
totinfstd = std(hcat((results -> results[:totinftraj]).(worker_results)...), dims=2)
include("emp_traj.jl")
fac = nhh/100000
include("$(path_to_data)emp_traj_100k.jl")
nzer= (Int(ceil(virustime/datat))-1)*datat+2*corlatent
emptotinftraj = vcat(zeros(nzer),fac*emptotinf)
emptotinftraj = vcat(zeros(nzer),emptotinf)
nne = size(emptotinf)[1]
pl5 = plot(collect(1:nn1),[totinfmean, totinfmean.-totinfstd,totinfmean.+totinfstd], linestyle= [:solid :dot :dot], linewidth = [2 1 1], linecolor = [:blue :black :black],label = ["totinf" "" ""])
plot!(emptotinftraj, linecolor = [:green], label="GER", linewidth = [2])
Expand Down

0 comments on commit 07cbf14

Please sign in to comment.