nessai.utils.indices#
Utilities related to insertion indices.
Functions#
|
Compute the two-sided KS test for discrete insertion indices for a given |
|
Apply the Bonferroni correction for multiple tests. |
Module Contents#
- nessai.utils.indices.compute_indices_ks_test(indices, nlive, mode='D+')#
Compute the two-sided KS test for discrete insertion indices for a given number of live points
- Parameters:
- indicesarray_like
Indices of newly inserted live points
- nliveint
Number of live points
- modestr
Method for computing the KS statistic. If D+, the statistic is the maximum positive difference between the empirical and assumed CDF. If D-, the statistic is the maximum negative difference.
- Returns:
- Dfloat
Two-sided KS statistic
- pfloat
p-value
- nessai.utils.indices.bonferroni_correction(p_values, alpha=0.05)#
Apply the Bonferroni correction for multiple tests.
Based on the implementation in
statmodels.stats.multitest- Parameters:
- p_valuesarray_like
Uncorrelated p-values.
- alphafloat, optional
Family wise error rate.