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

getTwoSidedTValueFromAlpha() public static method

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