Skip to content

Commit

Permalink
Minor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
gevtushenko committed May 4, 2023
1 parent 23ea5b9 commit 75b626c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmarks/scripts/analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def qrde_hd(samples, precision=0.01):
quantiles = np.linspace(precision, 1 - precision, num_quantiles - 1)
hd_quantiles = [min_sample] + list(hdquantiles(samples, quantiles)) + [max_sample]
width = [hd_quantiles[idx + 1] - hd_quantiles[idx] for idx in range(num_quantiles)]
p = 1.0 / num_quantiles
p = 1.0 / precision
height = [1.0 / (p * w) for w in width]
return width, height

Expand Down

0 comments on commit 75b626c

Please sign in to comment.