コード例 #1
0
 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))
コード例 #3
0
 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)
コード例 #4
0
 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)