Applies temporal smoothing to reproduction number estimates using a centered moving average window. Handles missing and infinite values appropriately.
smooth_estimates(r_estimate, window)numeric vector; smoothed reproduction number estimates of the same length as input. Returns NA for points with insufficient valid neighboring values
numeric vector; reproduction number estimates to smooth. Can contain NA or infinite values
integer; size of the smoothing window in time units. Window is centered around each point