MCPcopy Create free account
hub / github.com/MotrixLab/AiOS / average

Method average

detrsmpl/utils/demo_utils.py:733–735  ·  view source on GitHub ↗

Get the average value of current window.

(self)

Source from the content-addressed store, hash-verified

731 self._data = self._data[-self.window:]
732
733 def average(self):
734 """Get the average value of current window."""
735 return np.mean(self._data)
736
737
738class StopWatch:

Callers 2

reportMethod · 0.45
_draw_sceneMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected