Skip to content

Commit

Permalink
fix corner case weibull pdf (#583)
Browse files Browse the repository at this point in the history
  • Loading branch information
aloctavodia authored Nov 6, 2024
1 parent ad36ac2 commit 1bcb937
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions preliz/internal/special.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,8 @@ def expit(x):
def xlogy(x, y):
if x == 0:
return 0.0
if y == 0:
return -np.inf
else:
return x * np.log(y)

Expand Down

0 comments on commit 1bcb937

Please sign in to comment.