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]
|
||||
|
||||
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]
|
||||
|
||||
Reference in New Issue
Block a user