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

Function sigmoid_kernel

Lib/statistics.py:840–849  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

838
839@register('sigmoid')
840def sigmoid_kernel():
841 # (2/pi) / (exp(t) + exp(-t))
842 c1 = 1 / pi
843 c2 = 2 / pi
844 c3 = pi / 2
845 pdf = lambda t: c1 / cosh(t)
846 cdf = lambda t: c2 * atan(exp(t))
847 invcdf = lambda p: log(tan(p * c3))
848 support = None
849 return pdf, cdf, invcdf, support
850
851@register('rectangular', 'uniform')
852def rectangular_kernel():

Callers

nothing calls this directly

Calls 1

logFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…