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

Method initialize

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

Source from the content-addressed store, hash-verified

40 self.count = None
41
42 def initialize(self, val, weight):
43 self.val = val
44 self.avg = val
45 self.sum = val * weight
46 self.count = weight
47 self.initialized = True
48
49 def update(self, val, weight=1):
50 if not self.initialized:

Callers 1

updateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected