Skip to content

Commit 3af585b

Browse files
vbsinhajunpenglao
authored andcommitted
Fix DiscreteUniform Graph (#3436)
1 parent b1c84b3 commit 3af585b

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
@@ -608,7 +608,7 @@ class DiscreteUniform(Discrete):
608608
us = [6, 2]
609609
for l, u in zip(ls, us):
610610
x = np.arange(l, u+1)
611-
pmf = [1 / (u - l + 1)] * len(x)
611+
pmf = [1.0 / (u - l + 1)] * len(x)
612612
plt.plot(x, pmf, '-o', label='lower = {}, upper = {}'.format(l, u))
613613
plt.xlabel('x', fontsize=12)
614614
plt.ylabel('f(x)', fontsize=12)

0 commit comments

Comments
 (0)