in resources/perf.webkit.org/public/shared/statistics.js [112:128]
this._determinetwoSidedProbabilityBoundaryForWelchsT = function(t, degreesOfFreedom) {
if (isNaN(t) || isNaN(degreesOfFreedom))
return {t: NaN, degreesOfFreedom:NaN, range: [null, null]};
let lowerBound = null;
let upperBound = null;
for (const probability in tDistributionByOneSidedProbability) {
const twoSidedProbability = oneSidedToTwoSidedProbability(probability);
if (t > this.minimumTForOneSidedProbability(probability, Math.round(degreesOfFreedom)))
lowerBound = twoSidedProbability;
else if (lowerBound) {
upperBound = twoSidedProbability;
break;
}
}
return {t, degreesOfFreedom, range: [lowerBound, upperBound]};
};