MCPcopy Create free account
hub / github.com/M2219/ESMStereo / update

Method update

utils/experiment.py:133–136  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

131 self.count = 0
132
133 def update(self, x):
134 check_allfloat(x)
135 self.sum_value += x
136 self.count += 1
137
138 def mean(self):
139 return self.sum_value / self.count

Callers

nothing calls this directly

Calls 1

check_allfloatFunction · 0.85

Tested by

no test coverage detected