def test_cov_cau(self): self.assertTrue(np.allclose(ipol.cov_cau([0., 5., 10.]), np.array([1., 0.16666667, 0.09090909]))) self.assertTrue(np.allclose(ipol.cov_cau([0., 5., 10.], sill=2., rng=10., ), np.array([2., 1.33333333, 1.]))) self.assertTrue(np.allclose(ipol.cov_cau([0., 5., 10.], sill=2., rng=10., alpha=0.5), np.array([2., 0.6862915, 0.5]))) self.assertTrue(np.allclose(ipol.cov_cau([0., 5., 10.], sill=2., rng=10., alpha=0.5, beta=1.5), np.array([2., 0.40202025, 0.25])))
def test_cov_cau(self): assert np.allclose( ipol.cov_cau([0.0, 5.0, 10.0]), np.array([1.0, 0.16666667, 0.09090909]) ) assert np.allclose( ipol.cov_cau([0.0, 5.0, 10.0], sill=2.0, rng=10.0,), np.array([2.0, 1.33333333, 1.0]), ) assert np.allclose( ipol.cov_cau([0.0, 5.0, 10.0], sill=2.0, rng=10.0, alpha=0.5), np.array([2.0, 0.6862915, 0.5]), ) assert np.allclose( ipol.cov_cau([0.0, 5.0, 10.0], sill=2.0, rng=10.0, alpha=0.5, beta=1.5), np.array([2.0, 0.40202025, 0.25]), )