Cumulative distribution function.
(x, mu=0, sigma=1)
| 907 | #--- PROBABILITY DISTRIBUTION ---------------------------------------------------------------------- |
| 908 | |
| 909 | def 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 | |
| 914 | def pdf(x, mu=0, sigma=1): |
| 915 | """ Probability density function. |