octopicorn / covid19-charts

Make your own chart of the covid-19 pandemic, comparing timeseries for any countries, states, and US counties.
https://valis.pub
35 stars 6 forks source link

add moving average transform #44

Closed CarloLucibello closed 4 years ago

CarloLucibello commented 4 years ago

In order to smooth out daily increase series, it would be convenient to add a moving average transform on a window of a few days. I suggest using a 3 or 5 days window as default and possibly allow user to modify the value

octopicorn commented 4 years ago

Sure. Is the moving average to be overlapping?

That is, if i picked 3 days, would we show:

  1. Avg(day1, day2, day3), Avg(day 2, day3, day4), ...

Or

  1. Avg(day1, day2, day3), Avg(day4, day5, day6)?

Im guessing 1. ?

On Apr 2, 2020, at 04:38, Carlo Lucibello notifications@github.com wrote:

 In order to smooth out daily increase series, it would be convenient to add a moving average transform on a window of a few days. I suggest using a 3 or 5 days window as default and possibly allow user to modify the value

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

CarloLucibello commented 4 years ago

yep, option 1 is what I would be expecting. Thanks!