From 77705ee2e646781f6caaf020b5057d8b4148cd85 Mon Sep 17 00:00:00 2001 From: aloctavodia Date: Wed, 6 Nov 2024 11:17:22 -0300 Subject: [PATCH] fix corner case weibull pdf --- preliz/internal/special.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/preliz/internal/special.py b/preliz/internal/special.py index 70eb2c2e..0b3387fd 100644 --- a/preliz/internal/special.py +++ b/preliz/internal/special.py @@ -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)