Same as add just more pythonic.
(self, elem)
| 26 | self.sum -= self.window.popleft() |
| 27 | |
| 28 | def append(self, elem): |
| 29 | """ Same as add just more pythonic. """ |
| 30 | self.add(elem) |
| 31 | |
| 32 | def reset(self): |
| 33 | """ Resets the MovingAverage to its initial state. """ |
no test coverage detected