Skip to content

Commit

Permalink
adding one below is sufficient
Browse files Browse the repository at this point in the history
  • Loading branch information
Levi Wolf committed Mar 6, 2024
1 parent fa2deaa commit 1c59fa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esda/significance.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def calculate_significance(test_stat, reference_distribution, method="two-sided"
]
).T
n_outside = (reference_distribution < lows[:, None]).sum(axis=1)
n_outside += (reference_distribution > highs[:, None]).sum(axis=1) + 1
n_outside += (reference_distribution > highs[:, None]).sum(axis=1)
p_value = (n_outside + 1) / (p_permutations + 1)
elif method == "folded":
means = reference_distribution.mean(axis=1, keepdims=True)
Expand Down

0 comments on commit 1c59fa7

Please sign in to comment.