MCPcopy Create free account
hub / github.com/FreeformRobotics/OTS / add

Method add

utils.py:55–59  ·  view source on GitHub ↗
(self, val, weight)

Source from the content-addressed store, hash-verified

53 self.add(val, weight)
54
55 def add(self, val, weight):
56 self.val = val
57 self.sum += val * weight
58 self.count += weight
59 self.avg = self.sum / self.count
60
61 def value(self):
62 return self.val

Callers 1

updateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected