Given a stream of wireless channel measurements, write an efficient algorithm to find the moving average within a sliding window.