def test_cov_mat(self): self.assertTrue(np.allclose(ipol.cov_mat([0., 5., 10.]), np.array([1.00000000e+00, 8.49325705e-04, 7.21354153e-07]))) self.assertTrue(np.allclose(ipol.cov_mat([0., 5., 10.], sill=2., rng=10.), np.array([2., 0.98613738, 0.48623347]))) self.assertTrue(np.allclose(ipol.cov_mat([0., 5., 10.], sill=2., rng=10., shp=0.25), np.array([2., 0.74916629, 0.39961004])))
def test_cov_mat(self): assert np.allclose( ipol.cov_mat([0.0, 5.0, 10.0]), np.array([1.00000000e00, 8.49325705e-04, 7.21354153e-07]), ) assert np.allclose( ipol.cov_mat([0.0, 5.0, 10.0], sill=2.0, rng=10.0), np.array([2.0, 0.98613738, 0.48623347]), ) assert np.allclose( ipol.cov_mat([0.0, 5.0, 10.0], sill=2.0, rng=10.0, shp=0.25), np.array([2.0, 0.74916629, 0.39961004]), )