Skip to content

Commit

Permalink
adapt to new BAT MarginalDist
Browse files Browse the repository at this point in the history
  • Loading branch information
Cornelius-G authored Nov 29, 2022
1 parent 8a3d78f commit 22ea24c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ranking/ranking_criteria.jl
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ end

# total width of 1d marginal smallest intervals
function get_interval(samples, key, p; bins=200)
marg = BAT.get_marginal_dist(samples, key, bins=bins).result
marg = BAT.MarginalDist(samples, key, bins=bins)

marghist = convert(Histogram, marg.dist)
hist_p = BAT.get_smallest_intervals(marghist, [p])[1][1]
Expand Down Expand Up @@ -136,7 +136,7 @@ function get_smallest_interval_edges(
bins=200,
atol=0.0)

marg = BAT.get_marginal_dist(samples, key, bins=bins).result
marg = BAT.MarginalDist(samples, key, bins=bins)

marghist = convert(Histogram, marg.dist)
hist_p = BAT.get_smallest_intervals(marghist, [p])[1][1]
Expand Down

0 comments on commit 22ea24c

Please sign in to comment.