MCPcopy Index your code
hub / github.com/python/cpython / pdf

Function pdf

Lib/statistics.py:1054–1055  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

1052 if support is None:
1053
1054 def pdf(x):
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)

Callers

nothing calls this directly

Calls 3

bisect_leftFunction · 0.90
bisect_rightFunction · 0.90
KClass · 0.70

Tested by

no test coverage detected