Skip to content

Commit 3c4a369

Browse files
committed
fixed negbinom boundaries for consistency plot
1 parent fe2abf8 commit 3c4a369

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

floatcsep/extras.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -879,9 +879,9 @@ def plot_negbinom_consistency_test(eval_results, normalize=False, axes=None,
879879
mean = res.test_distribution[1]
880880
upsilon = 1.0 - ((var - mean) / var)
881881
tau = (mean ** 2 / (var - mean))
882-
phigh = scipy.stats.nbinom.ppf((1 - percentile / 100.) / 2., tau,
882+
plow = scipy.stats.nbinom.ppf((1 - percentile / 100.) / 2., tau,
883883
upsilon)
884-
plow = scipy.stats.nbinom.ppf(1 - (1 - percentile / 100.) / 2.,
884+
phigh = scipy.stats.nbinom.ppf(1 - (1 - percentile / 100.) / 2.,
885885
tau, upsilon)
886886

887887
if not numpy.isinf(

0 commit comments

Comments
 (0)