Skip to content

Commit 1bcb937

Browse files
authored
fix corner case weibull pdf (#583)
1 parent ad36ac2 commit 1bcb937

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

preliz/internal/special.py

+2
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,8 @@ def expit(x):
462462
def xlogy(x, y):
463463
if x == 0:
464464
return 0.0
465+
if y == 0:
466+
return -np.inf
465467
else:
466468
return x * np.log(y)
467469

0 commit comments

Comments
 (0)