Exemple #1
0
    def _test_gm(self, means, variances, props, n):
        samples = gm_sample(means, variances, props, n)
        # assert_allclose(samples.mean(), gm_mean(means, variances, props),
        #                 rtol=1e-2, atol=5e-3)

        assert_almost_equal(samples.mean(), gm_mean(means, variances, props),
                            decimal=2)
Exemple #2
0
 def _test_gm(self, means, variances, props, n):
     samples = gm_sample(means, variances, props, n)
     assert_almost_equal(samples.mean(),
                         gm_mean(means, variances, props),
                         decimal=2)
Exemple #3
0
 def _test_gm(self, means, variances, props, n):
     samples = gm_sample(means, variances, props, n)
     assert_almost_equal(samples.mean(), gm_mean(means, variances, props),
                         decimal=2)