(self, val, count, weight)
| 121 | self.count = None |
| 122 | |
| 123 | def initialize(self, val, count, weight): |
| 124 | self.val = val |
| 125 | self.avg = val |
| 126 | self.count = count |
| 127 | self.sum = val * weight |
| 128 | self.initialized = True |
| 129 | |
| 130 | def update(self, val, count=1, weight=1): |
| 131 | if not self.initialized: |