From faaa56642c21f3ee946b29b86af39e2d402dacbf Mon Sep 17 00:00:00 2001 From: Tom Schierenbeck Date: Wed, 30 Oct 2024 09:01:51 +0100 Subject: [PATCH] Fixed test case --- test/test_distributions/test_gaussian.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_distributions/test_gaussian.py b/test/test_distributions/test_gaussian.py index 12b7378..783e9bf 100644 --- a/test/test_distributions/test_gaussian.py +++ b/test/test_distributions/test_gaussian.py @@ -288,7 +288,7 @@ def test_sampling_with_infinite_bounds_and_flipping(self): def test_non_standard_sampling(self): model = TruncatedGaussianDistribution(self.x, SimpleInterval(-np.inf, -0.1), 0.5, 2) samples = model.robert_rejection_sample(1000).reshape(-1, 1) - self.assertAlmostEqual(max(samples), -0.1, delta=0.01) + self.assertAlmostEqual(max(samples), -0.1, delta=0.1) likelihoods = model.likelihood(samples) self.assertTrue(all(likelihoods > 0)) self.assertAlmostEqual(model.expectation(model.variables)[model.variable], samples.mean(), delta=0.1)