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

Function normal_kernel

Lib/statistics.py:821–828  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

819
820@register('normal', 'gauss')
821def normal_kernel():
822 sqrt2pi = sqrt(2 * pi)
823 neg_sqrt2 = -sqrt(2)
824 pdf = lambda t: exp(-1/2 * t * t) / sqrt2pi
825 cdf = lambda t: 1/2 * erfc(t / neg_sqrt2)
826 invcdf = lambda t: _normal_dist_inv_cdf(t, 0.0, 1.0)
827 support = None
828 return pdf, cdf, invcdf, support
829
830@register('logistic')
831def logistic_kernel():

Callers

nothing calls this directly

Calls 1

_normal_dist_inv_cdfFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…