Skip to content

Commit

Permalink
fix beta-binomial
Browse files Browse the repository at this point in the history
  • Loading branch information
edknock committed Oct 29, 2024
1 parent 070b112 commit a8bb5d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inst/include/monty/random/density.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ __host__ __device__ T beta_binomial_prob(int x, int size, T prob, T rho,
bool log) {
const T a = prob * (1 / rho - 1);
const T b = (1 - prob) * (1 / rho - 1);
return beta_binomial_ab(size, a, b, log);
return beta_binomial_ab(x, size, a, b, log);
}

template <typename T>
Expand Down

0 comments on commit a8bb5d8

Please sign in to comment.