stdNormalCdf function

num stdNormalCdf(
  1. num x
)

Standard normal cumulative probability distribution.

Implementation

num stdNormalCdf(num x) {
  return 0.5 + 0.5 * erf(x * invSqrt2);
}