public static function CDF($x, $μ, $σ) : float { Support::checkLimits(self::LIMITS, ['x' => $x, 'μ' => $μ, 'σ' => $σ]); return 1 / 2 * (1 + Special::erf(($x - $μ) / ($σ * sqrt(2)))); }
/** * Cumulative distribution function * P value for a z score. * * @param number $z random variable * * @return float f(z|μ,σ) */ public static function CDF($z) { Support::checkLimits(self::LIMITS, ['z' => $z]); return Normal::CDF($z, self::μ, self::σ); }