Lines Matching refs:hs
42 Real hs = boost::math::statistics::hoyer_sparsity(v.begin(), v.end()); in test_hoyer_sparsity() local
43 BOOST_TEST(abs(hs - 1) < tol); in test_hoyer_sparsity()
45 hs = boost::math::statistics::hoyer_sparsity(v); in test_hoyer_sparsity()
46 BOOST_TEST(abs(hs - 1) < tol); in test_hoyer_sparsity()
49 hs = boost::math::statistics::hoyer_sparsity(v.cbegin(), v.cend()); in test_hoyer_sparsity()
50 BOOST_TEST(abs(hs - 1) < tol); in test_hoyer_sparsity()
55 hs = boost::math::statistics::hoyer_sparsity(v.cbegin(), v.cend()); in test_hoyer_sparsity()
56 BOOST_TEST(abs(hs) < tol); in test_hoyer_sparsity()
59 hs = boost::math::statistics::hoyer_sparsity(w); in test_hoyer_sparsity()
60 BOOST_TEST(abs(hs) < tol); in test_hoyer_sparsity()
72 hs = boost::math::statistics::hoyer_sparsity(v); in test_hoyer_sparsity()
74 BOOST_TEST(abs(expected - hs) < 0.01); in test_hoyer_sparsity()
78 hs = boost::math::statistics::hoyer_sparsity(u1); in test_hoyer_sparsity()
79 BOOST_TEST(abs(hs) < tol); in test_hoyer_sparsity()
86 hs = boost::math::statistics::hoyer_sparsity(u2); in test_hoyer_sparsity()
87 BOOST_TEST(abs(hs) < tol); in test_hoyer_sparsity()
97 double hs = boost::math::statistics::hoyer_sparsity(v); in test_integer_hoyer_sparsity() local
98 BOOST_TEST(abs(hs - 1) < tol); in test_integer_hoyer_sparsity()
103 hs = boost::math::statistics::hoyer_sparsity(v); in test_integer_hoyer_sparsity()
104 BOOST_TEST(abs(hs) < tol); in test_integer_hoyer_sparsity()
115 Real hs = boost::math::statistics::hoyer_sparsity(v.begin(), v.end()); in test_complex_hoyer_sparsity() local
116 BOOST_TEST(abs(hs - 1) < tol); in test_complex_hoyer_sparsity()
118 hs = boost::math::statistics::hoyer_sparsity(v); in test_complex_hoyer_sparsity()
119 BOOST_TEST(abs(hs - 1) < tol); in test_complex_hoyer_sparsity()
122 hs = boost::math::statistics::hoyer_sparsity(v.cbegin(), v.cend()); in test_complex_hoyer_sparsity()
123 BOOST_TEST(abs(hs - 1) < tol); in test_complex_hoyer_sparsity()
129 hs = boost::math::statistics::hoyer_sparsity(v.cbegin(), v.cend()); in test_complex_hoyer_sparsity()
130 BOOST_TEST(abs(hs) < tol); in test_complex_hoyer_sparsity()