Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/nodejs/node
/ variance
Method
variance
deps/v8/tools/avg.py:148–151 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
146
return
self.unit
147
148
def
variance(self):
149
if
self.count < 2:
150
return
float(
'NaN'
)
151
return
self.M2 / (self.count - 1)
152
153
def
stddev(self):
154
return
math.sqrt(self.variance())
Callers
1
stddev
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected