MathPHP\Probability\Distribution\Table\TDistribution::getOneSidedTValueFromConfidenceLevel PHP Метод

getOneSidedTValueFromConfidenceLevel() публичный статический Метод

Get one-sided t value using confidence level percentage
public static getOneSidedTValueFromConfidenceLevel ( string , string $cl ) : float
string degrees of freedom
$cl string confidence level percentage
Результат float t value
    public static function getOneSidedTValueFromConfidenceLevel(string $ν, string $cl) : float
    {
        if (!isset(self::ONE_SIDED_CONFIDENCE_LEVEL[$ν])) {
            throw new Exception\BadDataException("Degrees of freedom {$ν} is not in the t table.");
        }
        if (!isset(self::ONE_SIDED_CONFIDENCE_LEVEL[$ν][$cl])) {
            throw new Exception\BadDataException("Confidence level percentage {$cl} is not in the t table.");
        }
        return self::ONE_SIDED_CONFIDENCE_LEVEL[$ν][$cl];
    }