MCPcopy Index your code
hub / github.com/LabPy/lantz / add

Method add

lantz/stats.py:55–65  ·  view source on GitHub ↗

Add to the accumulator. :param value: value to be added.

(self, value)

Source from the content-addressed store, hash-verified

53 raise AttributeError('{} is not a valid attribute of RunningState'.format(key))
54
55 def add(self, value):
56 """Add to the accumulator.
57
58 :param value: value to be added.
59 """
60 self.last = value
61 self.count += 1
62 self.sum += value
63 self.sum2 += value * value
64 self.min = min(self.min, value)
65 self.max = max(self.max, value)
66
67
68class RunningStats(dict):

Callers 5

__init__Method · 0.95
getMethod · 0.45
setMethod · 0.45
callMethod · 0.45
addMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected