def test_chi2(self):
     N = 4
     df = 8
     momt = [_chi2_moment(j+1, df) for j in range(N)]
     for n in range(1, N+1):
         kappa = cumulant_from_moments(momt, n)
         assert_allclose(kappa, _chi2_cumulant(n, df))
 def test_chi2(self):
     N = 4
     df = 8
     momt = [_chi2_moment(j + 1, df) for j in range(N)]
     for n in range(1, N + 1):
         kappa = cumulant_from_moments(momt, n)
         assert_allclose(kappa, _chi2_cumulant(n, df))
 def test_norm(self):
     N = 4
     momt = [_norm_moment(j+1) for j in range(N)]
     for n in range(1, N+1):
         kappa = cumulant_from_moments(momt, n)
         assert_allclose(kappa, _norm_cumulant(n),
                 atol=1e-12)
 def test_norm(self):
     N = 4
     momt = [_norm_moment(j+1) for j in range(N)]
     for n in range(1, N+1):
         kappa = cumulant_from_moments(momt, n)
         assert_allclose(kappa, _norm_cumulant(n),
                 atol=1e-12)