Skip to content

Commit

Permalink
PT autocorr test
Browse files Browse the repository at this point in the history
  • Loading branch information
dfm committed Jun 15, 2016
1 parent 8a5fe1d commit a8d39a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion emcee/tests.py
Expand Up @@ -149,7 +149,7 @@ def check_pt_sampler(self, cutoff, N=None, p0=None):
+ 0.5 * np.log(np.linalg.det(self.cov))

lnZ, dlnZ = self.sampler.thermodynamic_integration_log_evidence()
print(self.sampler.get_autocorr_time())
print(self.sampler.get_autocorr_time(c=2))

assert np.abs(lnZ - (gaussian_integral - log_volume)) < 3 * dlnZ, \
("evidence incorrect: {0:g} versus correct {1:g} (uncertainty "
Expand Down

0 comments on commit a8d39a3

Please sign in to comment.