/third_party/boost/libs/random/test/ |
D | test_discrete_distribution.cpp | 23 using boost::random::discrete_distribution; 24 BOOST_CONCEPT_ASSERT((RandomNumberDistribution< discrete_distribution<> >)); 49 boost::random::discrete_distribution<> dist; in BOOST_AUTO_TEST_CASE() 53 boost::random::discrete_distribution<> dist_il = { 1, 2, 1, 4 }; in BOOST_AUTO_TEST_CASE() 58 boost::random::discrete_distribution<> dist_r(probs); in BOOST_AUTO_TEST_CASE() 61 boost::random::discrete_distribution<> dist_it(probs.begin(), probs.end()); in BOOST_AUTO_TEST_CASE() 64 boost::random::discrete_distribution<> dist_fun(4, 99, 115, gen()); in BOOST_AUTO_TEST_CASE() 67 boost::random::discrete_distribution<> copy(dist); in BOOST_AUTO_TEST_CASE() 69 boost::random::discrete_distribution<> copy_r(dist_r); in BOOST_AUTO_TEST_CASE() 72 boost::random::discrete_distribution<> notpow2(3, 99, 111, gen()); in BOOST_AUTO_TEST_CASE() [all …]
|
D | multiprecision_int_test.cpp | 192 boost::random::discrete_distribution < boost::multiprecision::cpp_int, double>, 193 boost::random::discrete_distribution <unsigned int, boost::multiprecision::cpp_bin_float_100>
|
D | test_discrete.cpp | 38 boost::random::discrete_distribution<> dist(expected); in do_test()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/random/ |
D | discrete_distribution.h | 52 class discrete_distribution { 58 using distribution_type = discrete_distribution; 99 friend class discrete_distribution; 111 discrete_distribution() : param_() {} in discrete_distribution() function 113 explicit discrete_distribution(const param_type& p) : param_(p) {} in discrete_distribution() function 116 explicit discrete_distribution(InputIterator begin, InputIterator end) in discrete_distribution() function 119 explicit discrete_distribution(std::initializer_list<double> weights) in discrete_distribution() function 123 explicit discrete_distribution(size_t nw, double xmin, double xmax, in discrete_distribution() function 153 friend bool operator==(const discrete_distribution& a, 154 const discrete_distribution& b) { [all …]
|
D | discrete_distribution_test.cc | 49 typename absl::discrete_distribution<TypeParam>::param_type; in TYPED_TEST() 51 absl::discrete_distribution<TypeParam> empty; in TYPED_TEST() 54 absl::discrete_distribution<TypeParam> before({1.0, 2.0, 1.0}); in TYPED_TEST() 69 absl::discrete_distribution<TypeParam> via_param{ in TYPED_TEST() 77 absl::discrete_distribution<TypeParam> after; in TYPED_TEST() 89 absl::discrete_distribution<int> unary(0, 1.0, 9.0, fn); in TYPED_TEST() 94 absl::discrete_distribution<int> unary(2, 1.0, 9.0, fn); in TYPED_TEST() 159 absl::discrete_distribution<int> dist(std::begin(weights), std::end(weights)); in TEST() 214 absl::discrete_distribution<int32_t> dist({1.0, 2.0, 3.0, 5.0, 2.0}); in TEST() 240 absl::discrete_distribution<int64_t> dist({1.0, 2.0, 3.0, 5.0, 2.0}); in TEST()
|
D | BUILD.gn | 23 "discrete_distribution.h", 34 "discrete_distribution.cc",
|
/third_party/abseil-cpp/absl/random/ |
D | discrete_distribution.h | 52 class discrete_distribution { 58 using distribution_type = discrete_distribution; 99 friend class discrete_distribution; 111 discrete_distribution() : param_() {} in discrete_distribution() function 113 explicit discrete_distribution(const param_type& p) : param_(p) {} in discrete_distribution() function 116 explicit discrete_distribution(InputIterator begin, InputIterator end) in discrete_distribution() function 119 explicit discrete_distribution(std::initializer_list<double> weights) in discrete_distribution() function 123 explicit discrete_distribution(size_t nw, double xmin, double xmax, in discrete_distribution() function 153 friend bool operator==(const discrete_distribution& a, 154 const discrete_distribution& b) { [all …]
|
D | discrete_distribution_test.cc | 49 typename absl::discrete_distribution<TypeParam>::param_type; in TYPED_TEST() 51 absl::discrete_distribution<TypeParam> empty; in TYPED_TEST() 54 absl::discrete_distribution<TypeParam> before({1.0, 2.0, 1.0}); in TYPED_TEST() 69 absl::discrete_distribution<TypeParam> via_param{ in TYPED_TEST() 77 absl::discrete_distribution<TypeParam> after; in TYPED_TEST() 89 absl::discrete_distribution<int> unary(0, 1.0, 9.0, fn); in TYPED_TEST() 94 absl::discrete_distribution<int> unary(2, 1.0, 9.0, fn); in TYPED_TEST() 158 absl::discrete_distribution<int> dist(std::begin(weights), std::end(weights)); in TEST() 213 absl::discrete_distribution<int32_t> dist({1.0, 2.0, 3.0, 5.0, 2.0}); in TEST() 239 absl::discrete_distribution<int64_t> dist({1.0, 2.0, 3.0, 5.0, 2.0}); in TEST()
|
/third_party/boost/boost/random/ |
D | discrete_distribution.hpp | 227 class discrete_distribution { class 235 typedef discrete_distribution distribution_type; 332 friend class discrete_distribution; 333 explicit param_type(const discrete_distribution& dist) in param_type() 348 discrete_distribution() in discrete_distribution() function in boost::random::discrete_distribution 359 discrete_distribution(Iter first, Iter last) in discrete_distribution() function in boost::random::discrete_distribution 378 discrete_distribution(std::initializer_list<WeightType> wl) in discrete_distribution() function in boost::random::discrete_distribution 390 explicit discrete_distribution(const Range& range) in discrete_distribution() function in boost::random::discrete_distribution 404 discrete_distribution(std::size_t nw, double xmin, double xmax, Func fw) in discrete_distribution() function in boost::random::discrete_distribution 418 explicit discrete_distribution(const param_type& parm) in discrete_distribution() function in boost::random::discrete_distribution [all …]
|
D | piecewise_constant_distribution.hpp | 269 typedef discrete_distribution<std::size_t, WeightType> bins_type; in piecewise_constant_distribution() 302 typedef discrete_distribution<std::size_t, WeightType> bins_type; in piecewise_constant_distribution() 412 typedef discrete_distribution<std::size_t, WeightType> bins_type; in param() 459 discrete_distribution<std::size_t, WeightType> _bins;
|
D | piecewise_linear_distribution.hpp | 500 typedef discrete_distribution<std::size_t, RealType> bins_type; in init() 521 discrete_distribution<std::size_t, RealType> _bins;
|
D | hyperexponential_distribution.hpp | 817 …dd_.param(typename boost::random::discrete_distribution<int,RealT>::param_type(param.probabilities… in param() 865 …private: boost::random::discrete_distribution<int,RealT> dd_; ///< The \c discrete_distribution us…
|
/third_party/boost/libs/compute/test/ |
D | test_discrete_distribution.cpp | 42 boost::compute::discrete_distribution<uint_> distribution(weights, weights+2); in BOOST_AUTO_TEST_CASE() 56 BOOST_AUTO_TEST_CASE(discrete_distribution) in BOOST_AUTO_TEST_CASE() argument 71 boost::compute::discrete_distribution<uint_> distribution( in BOOST_AUTO_TEST_CASE() 107 boost::compute::discrete_distribution<uint_> distribution; in BOOST_AUTO_TEST_CASE() 136 boost::compute::discrete_distribution<uint_> distribution( in BOOST_AUTO_TEST_CASE() 170 boost::compute::discrete_distribution<uint_> distribution( in BOOST_AUTO_TEST_CASE() 209 boost::compute::discrete_distribution<uchar_> distribution( in BOOST_AUTO_TEST_CASE()
|
/third_party/boost/boost/compute/random/ |
D | discrete_distribution.hpp | 42 class discrete_distribution class 49 discrete_distribution() in discrete_distribution() function in boost::compute::discrete_distribution 59 discrete_distribution(InputIterator first, InputIterator last) in discrete_distribution() function in boost::compute::discrete_distribution 87 ~discrete_distribution() in ~discrete_distribution()
|
/third_party/boost/libs/compute/include/boost/compute/random/ |
D | discrete_distribution.hpp | 42 class discrete_distribution class 49 discrete_distribution() in discrete_distribution() function in boost::compute::discrete_distribution 59 discrete_distribution(InputIterator first, InputIterator last) in discrete_distribution() function in boost::compute::discrete_distribution 87 ~discrete_distribution() in ~discrete_distribution()
|
/third_party/boost/libs/test/test/test-organization-ts/datasets-test/ |
D | random-test.cpp | 80 auto ds2 = data::random(data::distribution = std::discrete_distribution<>()); in BOOST_AUTO_TEST_CASE() 84 std::discrete_distribution<>>::value )); in BOOST_AUTO_TEST_CASE()
|
/third_party/boost/libs/random/example/ |
D | weighted_die.cpp | 35 boost::random::discrete_distribution<> dist(probabilities);
|
/third_party/boost/libs/poly_collection/example/ |
D | basic_base.cpp | 25 std::discrete_distribution<> rnd{{1,1,1}}; in main()
|
D | exceptions.cpp | 24 std::discrete_distribution<> rnd{{1,1,1}}; in main()
|
D | basic_any.cpp | 46 std::discrete_distribution<> rnd{{1,1,1}}; in main()
|
D | basic_function.cpp | 28 std::discrete_distribution<> rnd{{1,1,1}}; in main()
|
D | insertion_emplacement.cpp | 24 std::discrete_distribution<> rnd{{1,1,1}}; in main()
|
D | segmented_structure.cpp | 42 static std::discrete_distribution<> rnd{{1,1,1}}; in main()
|
/third_party/boost/libs/compute/perf/ |
D | perf_discrete_distribution.cpp | 38 compute::discrete_distribution<compute::uint_> dist(weights, weights+2); in main()
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/datasetops/source/sampler/ |
D | weighted_random_sampler.h | 80 std::unique_ptr<std::discrete_distribution<int64_t>> discrete_dist_;
|