Skip to content

Commit 8cbd0e1

Browse files
committed
Fix test_point
1 parent 541afd8 commit 8cbd0e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymc3/distributions/discrete.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ def __init__(self, lower, upper, *args, **kwargs):
440440
self.lower = tt.floor(lower).astype('int32')
441441
self.upper = tt.floor(upper).astype('int32')
442442
self.mode = tt.maximum(
443-
tt.floor((upper - lower) / 2.).astype('int32'), self.lower)
443+
tt.floor((upper + lower) / 2.).astype('int32'), self.lower)
444444

445445
def _random(self, lower, upper, size=None):
446446
# This way seems to be the only to deal with lower and upper

0 commit comments

Comments
 (0)