Home
last modified time | relevance | path

Searched refs:discrete_distribution (Results 1 – 25 of 42) sorted by relevance

12

/third_party/boost/libs/random/test/
Dtest_discrete_distribution.cpp23 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 …]
Dmultiprecision_int_test.cpp192 boost::random::discrete_distribution < boost::multiprecision::cpp_int, double>,
193 boost::random::discrete_distribution <unsigned int, boost::multiprecision::cpp_bin_float_100>
Dtest_discrete.cpp38 boost::random::discrete_distribution<> dist(expected); in do_test()
/third_party/skia/third_party/externals/abseil-cpp/absl/random/
Ddiscrete_distribution.h52 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 …]
Ddiscrete_distribution_test.cc49 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()
DBUILD.gn23 "discrete_distribution.h",
34 "discrete_distribution.cc",
/third_party/abseil-cpp/absl/random/
Ddiscrete_distribution.h52 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 …]
Ddiscrete_distribution_test.cc49 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/
Ddiscrete_distribution.hpp227 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 …]
Dpiecewise_constant_distribution.hpp269 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;
Dpiecewise_linear_distribution.hpp500 typedef discrete_distribution<std::size_t, RealType> bins_type; in init()
521 discrete_distribution<std::size_t, RealType> _bins;
Dhyperexponential_distribution.hpp817 …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/
Dtest_discrete_distribution.cpp42 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/
Ddiscrete_distribution.hpp42 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/
Ddiscrete_distribution.hpp42 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/
Drandom-test.cpp80 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/
Dweighted_die.cpp35 boost::random::discrete_distribution<> dist(probabilities);
/third_party/boost/libs/poly_collection/example/
Dbasic_base.cpp25 std::discrete_distribution<> rnd{{1,1,1}}; in main()
Dexceptions.cpp24 std::discrete_distribution<> rnd{{1,1,1}}; in main()
Dbasic_any.cpp46 std::discrete_distribution<> rnd{{1,1,1}}; in main()
Dbasic_function.cpp28 std::discrete_distribution<> rnd{{1,1,1}}; in main()
Dinsertion_emplacement.cpp24 std::discrete_distribution<> rnd{{1,1,1}}; in main()
Dsegmented_structure.cpp42 static std::discrete_distribution<> rnd{{1,1,1}}; in main()
/third_party/boost/libs/compute/perf/
Dperf_discrete_distribution.cpp38 compute::discrete_distribution<compute::uint_> dist(weights, weights+2); in main()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/datasetops/source/sampler/
Dweighted_random_sampler.h80 std::unique_ptr<std::discrete_distribution<int64_t>> discrete_dist_;

12