Skip to content

Commit 1e0c6aa

Browse files
committed
minor
1 parent 8016105 commit 1e0c6aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pymc3/tests/test_distributions_random.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,13 +480,13 @@ def ref_rand(size, mu, sigma, lower, upper):
480480

481481
def test_truncated_normal_lower(self):
482482
def ref_rand(size, mu, sigma, lower, upper):
483-
return st.truncnorm.rvs((lower-mu)/sd, np.inf, size=size, loc=mu, scale=sd)
483+
return st.truncnorm.rvs((lower-mu)/sigma, np.inf, size=size, loc=mu, scale=sigma)
484484
pymc3_random(pm.TruncatedNormal, {'mu': R, 'sigma': Rplusbig, 'lower':-Rplusbig, 'upper':Rplusbig},
485485
ref_rand=ref_rand)
486486

487487
def test_truncated_normal_upper(self):
488488
def ref_rand(size, mu, sigma, lower, upper):
489-
return st.truncnorm.rvs(-np.inf, (upper-mu)/sd, size=size, loc=mu, scale=sd)
489+
return st.truncnorm.rvs(-np.inf, (upper-mu)/sigma, size=size, loc=mu, scale=sigma)
490490
pymc3_random(pm.TruncatedNormal, {'mu': R, 'sigma': Rplusbig, 'lower':-Rplusbig, 'upper':Rplusbig},
491491
ref_rand=ref_rand)
492492

0 commit comments

Comments
 (0)