Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ cdf
Function
cdf
Lib/statistics.py:1057–1058 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
1055
return
sum(K((x - x_i) / h)
for
x_i in data) / (len(data) * h)
1056
1057
def
cdf(x):
1058
return
sum(W((x - x_i) / h)
for
x_i in data) / len(data)
1059
1060
else
:
1061
Callers
2
test_kde
Method · 0.85
test_kde_kernel_specs
Method · 0.85
Calls
3
bisect_left
Function · 0.90
bisect_right
Function · 0.90
W
Class · 0.50
Tested by
2
test_kde
Method · 0.68
test_kde_kernel_specs
Method · 0.68