• Home
  • Raw
  • Download

Lines Matching refs:mean

27     accumulator_set<int, stats<droppable<tag::mean> > > acc, test_acc(sample = 0);  in test_stat()
30 BOOST_CHECK_CLOSE(1., mean(acc), 1e-5); in test_stat()
35 BOOST_CHECK_CLOSE(0.5, mean(acc), 1e-5); in test_stat()
39 acc.drop<tag::mean>(); in test_stat()
42 BOOST_CHECK_CLOSE(0.5, mean(acc), 1e-5); in test_stat()
46 assert_is_double(mean(acc)); in test_stat()
49 accumulator_set<int, stats<droppable<tag::mean(immediate)> > > acc2, test_acc2(sample = 0); in test_stat()
52 BOOST_CHECK_CLOSE(1., mean(acc2), 1e-5); in test_stat()
56 BOOST_CHECK_CLOSE(0.5, mean(acc2), 1e-5); in test_stat()
59 acc2.drop<tag::mean>(); in test_stat()
62 BOOST_CHECK_CLOSE(0.5, mean(acc2), 1e-5); in test_stat()
65 assert_is_double(mean(acc2)); in test_stat()
73 …accumulator_set<int, stats<droppable<tag::sum>, droppable<tag::mean> > > acc, test_acc(sample = 0); in test_stat2()
76 BOOST_CHECK_CLOSE(1., mean(acc), 1e-5); in test_stat2()
81 BOOST_CHECK_CLOSE(0.5, mean(acc), 1e-5); in test_stat2()
85 acc.drop<tag::mean>(); in test_stat2()
89 BOOST_CHECK_CLOSE(0.5, mean(acc), 1e-5); in test_stat2()
93 assert_is_double(mean(acc)); in test_stat2()
101 …accumulator_set<int, stats<droppable<tag::sum>, droppable<tag::count>, droppable<tag::mean> > > ac… in test_stat3()
104 BOOST_CHECK_CLOSE(1., mean(acc), 1e-5); in test_stat3()
109 BOOST_CHECK_CLOSE(0.5, mean(acc), 1e-5); in test_stat3()
113 acc.drop<tag::mean>(); in test_stat3()
117 BOOST_CHECK_CLOSE(1./3., mean(acc), 1e-5); in test_stat3()
123 BOOST_CHECK_CLOSE(1./3., mean(acc), 1e-5); in test_stat3()
127 assert_is_double(mean(acc)); in test_stat3()