• Home
  • Raw
  • Download

Lines Matching refs:acc

33 …accumulator_set<int, stats<tag::rolling_moment<2> > > acc(tag::rolling_moment<2>::window_size = 3);  in test_rolling_second_moment()  local
35 acc(2); in test_rolling_second_moment()
37 BOOST_CHECK_CLOSE(rolling_moment<2>(acc), 4.0/1 ,1e-5); in test_rolling_second_moment()
39 acc(4); in test_rolling_second_moment()
41 BOOST_CHECK_CLOSE(rolling_moment<2>(acc), (4.0 + 16.0)/2, 1e-5); in test_rolling_second_moment()
43 acc(5); in test_rolling_second_moment()
45 BOOST_CHECK_CLOSE(rolling_moment<2>(acc), (4.0 + 16.0 + 25.0)/3, 1e-5); in test_rolling_second_moment()
47 acc(6); in test_rolling_second_moment()
49 BOOST_CHECK_CLOSE(rolling_moment<2>(acc), (16.0 + 25.0 + 36.0)/3, 1e-5); in test_rolling_second_moment()
51 assert_is_double(rolling_moment<2>(acc)); in test_rolling_second_moment()
56 …accumulator_set<int, stats<tag::rolling_moment<5> > > acc(tag::rolling_moment<2>::window_size = 3); in test_rolling_fifth_moment() local
58 acc(2); in test_rolling_fifth_moment()
60 BOOST_CHECK_CLOSE(rolling_moment<5>(acc), 32.0/1, 1e-5); in test_rolling_fifth_moment()
62 acc(3); in test_rolling_fifth_moment()
64 BOOST_CHECK_CLOSE(rolling_moment<5>(acc), (32.0 + 243.0)/2, 1e-5); in test_rolling_fifth_moment()
66 acc(4); in test_rolling_fifth_moment()
68 BOOST_CHECK_CLOSE(rolling_moment<5>(acc), (32.0 + 243.0 + 1024.0)/3, 1e-5); in test_rolling_fifth_moment()
70 acc(5); in test_rolling_fifth_moment()
72 BOOST_CHECK_CLOSE(rolling_moment<5>(acc), (243.0 + 1024.0 + 3125.0)/3, 1e-5); in test_rolling_fifth_moment()
74 assert_is_double(rolling_moment<5>(acc)); in test_rolling_fifth_moment()