enhance old doubling time plot by averaging over 7 instead of 3 days

This commit is contained in:
fordprefect
2020-09-02 10:11:12 +02:00
parent 57516b13be
commit 5ed47288bb
2 changed files with 2 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ def plot(data, countries, pop):
time, new_cases, new_deaths, total_cases, total_deaths = data[loc]
pp.figure(name, figsize=figsize)
window_size = 3
window_size = 7
tchar = moving_average(np.array(new_cases),window_size)/moving_average(np.array(total_cases),window_size)
thalf = np.log(2)/tchar
day_of_100_cases = np.argwhere(np.array(total_cases) > 99)[0][0]

View File

@@ -330,7 +330,7 @@ Aktuelle Daten aus Deutschland mit vielen Hintergründen finden sich im <a href=
<details open>
<summary>Verdopplungszeit</summary>
Verdopplungszeit mit einem gleitenden Mittelwert von 3 Tagen.
Verdopplungszeit mit einem gleitenden Mittelwert von 7 Tagen.
<img src=doubling_time.png />
</details>