Skip to content

Commit

Permalink
fixed negbinom boundaries for consistency plot
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloitu committed Jul 24, 2023
1 parent fe2abf8 commit 3c4a369
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions floatcsep/extras.py
Original file line number Diff line number Diff line change
Expand Up @@ -879,9 +879,9 @@ def plot_negbinom_consistency_test(eval_results, normalize=False, axes=None,
mean = res.test_distribution[1]
upsilon = 1.0 - ((var - mean) / var)
tau = (mean ** 2 / (var - mean))
phigh = scipy.stats.nbinom.ppf((1 - percentile / 100.) / 2., tau,
plow = scipy.stats.nbinom.ppf((1 - percentile / 100.) / 2., tau,
upsilon)
plow = scipy.stats.nbinom.ppf(1 - (1 - percentile / 100.) / 2.,
phigh = scipy.stats.nbinom.ppf(1 - (1 - percentile / 100.) / 2.,
tau, upsilon)

if not numpy.isinf(
Expand Down

0 comments on commit 3c4a369

Please sign in to comment.