MathPHP\Probability\Distribution\Table\TDistribution::getOneSidedTValueFromAlpha PHP Method

getOneSidedTValueFromAlpha() public static method

Get one-sided t value using alpha
public static getOneSidedTValueFromAlpha ( string , string ) : float
string degrees of freedom
string alpha
return float t value
    public static function getOneSidedTValueFromAlpha(string $ν, string $α) : float
    {
        if (!isset(self::ONE_SIDED_ALPHA[$ν])) {
            throw new Exception\BadDataException("Degrees of freedom {$ν} is not in the t table.");
        }
        if (!isset(self::ONE_SIDED_ALPHA[$ν][$α])) {
            throw new Exception\BadDataException("Alpha {$α} is not in the t table.");
        }
        return self::ONE_SIDED_ALPHA[$ν][$α];
    }