Exemplo n.º 1
0
 def test_cov_exists_precision(self):
     """
     Check that the _cov_exists function returns True for a Gaussian that has a covariance that is well defined
     through the precision.
     """
     gaussian = Gaussian(prec=1.0, h_vec=0.0, g_val=0.0, var_names=["a"])
     self.assertTrue(gaussian._cov_exists())
Exemplo n.º 2
0
 def test_cov_exists(self):
     """
     Check that the _cov_exists function returns True for a Gaussian that has a well defined covariance.
     """
     gaussian = Gaussian(cov=1.0, mean=0.0, log_weight=0.0, var_names=["a"])
     self.assertTrue(gaussian._cov_exists())
Exemplo n.º 3
0
 def test_cov_not_exists(self):
     """
     Check that the _cov_exists function returns False for a Gaussian that has an undefined covariance.
     """
     gaussian = Gaussian(prec=0.0, h_vec=0.0, g_val=0.0, var_names=["a"])
     self.assertFalse(gaussian._cov_exists())