enhance old doubling time plot by averaging over 7 instead of 3 days
This commit is contained in:
@@ -16,7 +16,7 @@ def plot(data, countries, pop):
|
|||||||
time, new_cases, new_deaths, total_cases, total_deaths = data[loc]
|
time, new_cases, new_deaths, total_cases, total_deaths = data[loc]
|
||||||
|
|
||||||
pp.figure(name, figsize=figsize)
|
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)
|
tchar = moving_average(np.array(new_cases),window_size)/moving_average(np.array(total_cases),window_size)
|
||||||
thalf = np.log(2)/tchar
|
thalf = np.log(2)/tchar
|
||||||
day_of_100_cases = np.argwhere(np.array(total_cases) > 99)[0][0]
|
day_of_100_cases = np.argwhere(np.array(total_cases) > 99)[0][0]
|
||||||
|
|||||||
@@ -330,7 +330,7 @@ Aktuelle Daten aus Deutschland mit vielen Hintergründen finden sich im <a href=
|
|||||||
|
|
||||||
<details open>
|
<details open>
|
||||||
<summary>Verdopplungszeit</summary>
|
<summary>Verdopplungszeit</summary>
|
||||||
Verdopplungszeit mit einem gleitenden Mittelwert von 3 Tagen.
|
Verdopplungszeit mit einem gleitenden Mittelwert von 7 Tagen.
|
||||||
<img src=doubling_time.png />
|
<img src=doubling_time.png />
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user