Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ mean
Function
mean
recipes/Python/578853_KB_Neural_DatMining_/recipe-578853.py:12–15 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
10
import
datetime
11
12
def
mean(x):
# mean
13
n = len(x)
14
mean = sum(x) / n
15
return
mean
16
17
def
sd(x):
# standard deviattion
18
n = len(x)
Callers
2
recipe-578853.py
File · 0.70
doloop
Function · 0.50
Calls
1
sum
Function · 0.50
Tested by
no test coverage detected