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];
}