Resets the MovingAverage to its initial state.
(self)
| 33 | self.add(elem) |
| 34 | |
| 35 | def reset(self): |
| 36 | """ Resets the MovingAverage to its initial state. """ |
| 37 | self.window = deque() |
| 38 | self.sum = 0 |
| 39 | |
| 40 | def get_avg(self): |
| 41 | """ Returns the average of the elements in the window. """ |
no outgoing calls
no test coverage detected