Lines Matching refs:acc2
49 accumulator_set<int, stats<droppable<tag::mean(immediate)> > > acc2, test_acc2(sample = 0); in test_stat() local
51 acc2(1); in test_stat()
52 BOOST_CHECK_CLOSE(1., mean(acc2), 1e-5); in test_stat()
53 BOOST_CHECK_EQUAL(1u, count(acc2)); in test_stat()
55 acc2(0); in test_stat()
56 BOOST_CHECK_CLOSE(0.5, mean(acc2), 1e-5); in test_stat()
57 BOOST_CHECK_EQUAL(2u, count(acc2)); in test_stat()
59 acc2.drop<tag::mean>(); in test_stat()
61 acc2(2); in test_stat()
62 BOOST_CHECK_CLOSE(0.5, mean(acc2), 1e-5); in test_stat()
63 BOOST_CHECK_EQUAL(2u, count(acc2)); in test_stat()
65 assert_is_double(mean(acc2)); in test_stat()