• Home
  • Raw
  • Download

Lines Matching refs:acc

25 …t<int, stats<tag::sum, tag::sum_of_weights, tag::sum_of_variates<int, tag::covariate1> >, int> acc;  in test_stat()  local
27 acc(1, weight = 2, covariate1 = 3); in test_stat()
28 BOOST_CHECK_EQUAL(2, sum(acc)); in test_stat()
29 BOOST_CHECK_EQUAL(2, sum_of_weights(acc)); in test_stat()
30 BOOST_CHECK_EQUAL(3, sum_of_variates(acc)); in test_stat()
32 acc(2, weight = 4, covariate1 = 6); in test_stat()
33 BOOST_CHECK_EQUAL(10, sum(acc)); in test_stat()
34 BOOST_CHECK_EQUAL(6, sum_of_weights(acc)); in test_stat()
35 BOOST_CHECK_EQUAL(9, sum_of_variates(acc)); in test_stat()
37 acc(3, weight = 6, covariate1 = 9); in test_stat()
38 BOOST_CHECK_EQUAL(28, sum(acc)); in test_stat()
39 BOOST_CHECK_EQUAL(12, sum_of_weights(acc)); in test_stat()
40 BOOST_CHECK_EQUAL(18, sum_of_variates(acc)); in test_stat()
50 …t<int, stats<tag::sum, tag::sum_of_weights, tag::sum_of_variates<int, tag::covariate1> >, int> acc; in test_persistency() local
51 acc(1, weight = 2, covariate1 = 3); in test_persistency()
52 acc(2, weight = 4, covariate1 = 6); in test_persistency()
53 acc(3, weight = 6, covariate1 = 9); in test_persistency()
54 BOOST_CHECK_EQUAL(28, sum(acc)); in test_persistency()
55 BOOST_CHECK_EQUAL(12, sum_of_weights(acc)); in test_persistency()
56 BOOST_CHECK_EQUAL(18, sum_of_variates(acc)); in test_persistency()
59 acc.serialize(oa, 0); in test_persistency()
61 …t<int, stats<tag::sum, tag::sum_of_weights, tag::sum_of_variates<int, tag::covariate1> >, int> acc; in test_persistency() local
63 acc.serialize(ia, 0); in test_persistency()
64 BOOST_CHECK_EQUAL(28, sum(acc)); in test_persistency()
65 BOOST_CHECK_EQUAL(12, sum_of_weights(acc)); in test_persistency()
66 BOOST_CHECK_EQUAL(18, sum_of_variates(acc)); in test_persistency()