Skip to content

Commit ecbb89a

Browse files
adjusting uniform icdf to fit the changes introduced in pymc-devs#6583
1 parent e00fe78 commit ecbb89a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pymc/distributions/continuous.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,9 @@ def logcdf(value, lower, upper):
346346
)
347347

348348
def icdf(value, lower, upper):
349-
return lower + (upper - lower) * value
349+
res = lower + (upper - lower) * value
350+
res = check_icdf_value(res, value)
351+
return check_icdf_parameters(res, lower < upper)
350352

351353

352354
@_default_transform.register(Uniform)

0 commit comments

Comments
 (0)