Update rv_transformation_tests.py

This commit is contained in:
Max Zwiessele 2015-09-12 18:25:53 +01:00
parent 5290b0ec31
commit bbb31f6770

View file

@ -33,7 +33,7 @@ class RVTransformationTestCase(unittest.TestCase):
# The PDF of the transformed variables # The PDF of the transformed variables
p_phi = lambda phi : np.exp(-m._objective_grads(phi)[0]) p_phi = lambda phi : np.exp(-m._objective_grads(phi)[0])
# To the empirical PDF of: # To the empirical PDF of:
np.random.seed(12345) np.random.seed(0)
theta_s = prior.rvs(5e5) theta_s = prior.rvs(5e5)
phi_s = trans.finv(theta_s) phi_s = trans.finv(theta_s)
# which is essentially a kernel density estimation # which is essentially a kernel density estimation