Lines Matching refs:distribution
42 boost::compute::discrete_distribution<uint_> distribution(weights, weights+2); in BOOST_AUTO_TEST_CASE() local
45 distribution.generate(vec.begin(), vec.end(), engine, queue); in BOOST_AUTO_TEST_CASE()
71 boost::compute::discrete_distribution<uint_> distribution( in BOOST_AUTO_TEST_CASE() local
75 std::vector<double> p = distribution.probabilities(); in BOOST_AUTO_TEST_CASE()
81 BOOST_CHECK_EQUAL((distribution.min)(), uint_(0)); in BOOST_AUTO_TEST_CASE()
82 BOOST_CHECK_EQUAL((distribution.max)(), uint_(3)); in BOOST_AUTO_TEST_CASE()
85 distribution.generate(vec.begin(), vec.end(), engine, queue); in BOOST_AUTO_TEST_CASE()
107 boost::compute::discrete_distribution<uint_> distribution; in BOOST_AUTO_TEST_CASE() local
109 std::vector<double> p = distribution.probabilities(); in BOOST_AUTO_TEST_CASE()
113 distribution.generate(vec.begin(), vec.end(), engine, queue); in BOOST_AUTO_TEST_CASE()
136 boost::compute::discrete_distribution<uint_> distribution( in BOOST_AUTO_TEST_CASE() local
140 std::vector<double> p = distribution.probabilities(); in BOOST_AUTO_TEST_CASE()
143 BOOST_CHECK_EQUAL((distribution.min)(), uint_(0)); in BOOST_AUTO_TEST_CASE()
144 BOOST_CHECK_EQUAL((distribution.max)(), uint_(0)); in BOOST_AUTO_TEST_CASE()
147 distribution.generate(vec.begin(), vec.end(), engine, queue); in BOOST_AUTO_TEST_CASE()
170 boost::compute::discrete_distribution<uint_> distribution( in BOOST_AUTO_TEST_CASE() local
174 std::vector<double> p = distribution.probabilities(); in BOOST_AUTO_TEST_CASE()
177 BOOST_CHECK_EQUAL((distribution.min)(), uint_(0)); in BOOST_AUTO_TEST_CASE()
178 BOOST_CHECK_EQUAL((distribution.max)(), uint_(0)); in BOOST_AUTO_TEST_CASE()
181 distribution.generate(vec.begin(), vec.end(), engine, queue); in BOOST_AUTO_TEST_CASE()
209 boost::compute::discrete_distribution<uchar_> distribution( in BOOST_AUTO_TEST_CASE() local
213 BOOST_CHECK_EQUAL((distribution.min)(), uchar_(0)); in BOOST_AUTO_TEST_CASE()
214 BOOST_CHECK_EQUAL((distribution.max)(), uchar_(255)); in BOOST_AUTO_TEST_CASE()
217 distribution.generate(uchar_vec.begin(), uchar_vec.end(), engine, queue); in BOOST_AUTO_TEST_CASE()
227 distribution.generate(uint_vec.begin(), uint_vec.end(), engine, queue); in BOOST_AUTO_TEST_CASE()