Skip to content

Commit

Permalink
correct variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanAellen committed Jun 3, 2024
1 parent 433b099 commit a35041f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions enflows/distributions/uniform.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,8 @@ def __compute_log_surface(self):
# side_length = np.sqrt(2.)
# log_num = self.cart_dim * np.log(side_length) + 0.5 * np.log(self.cart_dim)
# log_den = 2 * sp.special.gammaln(self.cart_dim)
log_const = - sp.special.loggamma(self.cart_dim)
all_quadrants = np.log(2) * d if self.extend_star_like else 0.0
log_const = - sp.special.loggamma(self.cart_dim)
all_quadrants = np.log(2) * self.cart_dim if self.extend_star_like else 0.0

return log_const + all_quadrants

Expand Down

0 comments on commit a35041f

Please sign in to comment.