MCPcopy 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_kdeMethod · 0.85
test_kde_kernel_specsMethod · 0.85

Calls 3

bisect_leftFunction · 0.90
bisect_rightFunction · 0.90
WClass · 0.50

Tested by 2

test_kdeMethod · 0.68
test_kde_kernel_specsMethod · 0.68