Lines Matching refs:acc2
48 accumulator_set<int, stats<tag::variance> > acc2; in test_stat() local
50 acc2(1); in test_stat()
51 acc2(2); in test_stat()
52 acc2(3); in test_stat()
53 acc2(4); in test_stat()
54 acc2(5); in test_stat()
56 BOOST_CHECK_EQUAL(5u, count(acc2)); in test_stat()
57 BOOST_CHECK_CLOSE(3., mean(acc2), 1e-5); in test_stat()
58 BOOST_CHECK_CLOSE(2., variance(acc2), 1e-5); in test_stat()
70 accumulator_set<int, stats<tag::variance> > acc2; in test_persistency() local
76 acc2(1); in test_persistency()
77 acc2(2); in test_persistency()
78 acc2(3); in test_persistency()
79 acc2(4); in test_persistency()
80 acc2(5); in test_persistency()
81 BOOST_CHECK_CLOSE(2., variance(acc2), epsilon); in test_persistency()
85 acc2.serialize(oa, 0); in test_persistency()
88 accumulator_set<int, stats<tag::variance> > acc2; in test_persistency() local
91 acc2.serialize(ia, 0); in test_persistency()
92 BOOST_CHECK_CLOSE(2., variance(acc2), epsilon); in test_persistency()