MCPcopy Index your code
hub / github.com/clips/pattern / cdf

Function cdf

pattern/metrics.py:909–912  ·  view source on GitHub ↗

Cumulative distribution function.

(x, mu=0, sigma=1)

Source from the content-addressed store, hash-verified

907#--- PROBABILITY DISTRIBUTION ----------------------------------------------------------------------
908
909def cdf(x, mu=0, sigma=1):
910 """ Cumulative distribution function.
911 """
912 return min(1.0, 0.5 * erfc((-x + mu) / (sigma * 2**0.5)))
913
914def pdf(x, mu=0, sigma=1):
915 """ Probability density function.

Callers

nothing calls this directly

Calls 1

erfcFunction · 0.85

Tested by

no test coverage detected