src/Probability/Distribution/Table/StandardNormal.php
public static function getZScoreForConfidenceInterval(string $cl): float
    {
        if (!array_key_exists($cl, self::Z_SCORES_FOR_CONFIDENCE_INTERVALS)) {
            throw new Exception\BadDataException('Not a valid confidence level');
        }
        return self::Z_SCORES_FOR_CONFIDENCE_INTERVALS[$cl];
    }
public static function getZScoreForConfidenceInterval(string $cl): float
    {
        if (!array_key_exists($cl, self::Z_SCORES_FOR_CONFIDENCE_INTERVALS)) {
            throw new Exception\BadDataException('Not a valid confidence level');
        }
        return self::Z_SCORES_FOR_CONFIDENCE_INTERVALS[$cl];
    }
public static function getZScoreForConfidenceInterval ( string $ cl ) : float { if ( ! array_key_exists ( $ cl , self :: Z_SCORES_FOR_CONFIDENCE_INTERVALS ) ) { throw new Exception \ BadDataException ( 'Not a valid confidence level' ) ; } return self :: Z_SCORES_FOR_CONFIDENCE_INTERVALS [ $ cl ] ; }
Get Z score for confidence interval

@param  string $cl confidence level

@return float Z score

@throws Exception\BadDataException
Get Z score for confidence interval