Skip to content

Function: computeBonferroniThreshold() ​

ts
function computeBonferroniThreshold(pValues, alpha): BonferroniResult;

Defined in: utils/statistics.ts:137

Computes Bonferroni-corrected threshold.

Simple multiple testing correction: threshold = alpha / V A vertex survives if its p-value <= threshold

Time complexity: O(V) Space complexity: O(V) for the mask

Parameters ​

pValues ​

Float32Array

Array of p-values (one per vertex)

alpha ​

number

Family-wise error rate (typically 0.05)

Returns ​

BonferroniResult

Bonferroni result with threshold, mask, and surviving count

Throws ​

If alpha is not in (0, 1]

Released under the MIT License.