Home
last modified time | relevance | path

Searched refs:bernoulli_distribution (Results 1 – 25 of 59) sorted by relevance

123

/third_party/boost/libs/math/test/
Dtest_bernoulli.cpp28 using boost::math::bernoulli_distribution;
69 using boost::math::bernoulli_distribution; // of type RealType. in test_spots()
73 …BOOST_CHECK_EQUAL(bernoulli_distribution<RealType>(static_cast<RealType>(0.5)).success_fraction(),… in test_spots()
74 …BOOST_CHECK_EQUAL(bernoulli_distribution<RealType>(static_cast<RealType>(0.1L)).success_fraction()… in test_spots()
75 …BOOST_CHECK_EQUAL(bernoulli_distribution<RealType>(static_cast<RealType>(0.9L)).success_fraction()… in test_spots()
78 bernoulli_distribution<RealType>(static_cast<RealType>(2)), std::domain_error); in test_spots()
80 bernoulli_distribution<RealType>(static_cast<RealType>(-2)), std::domain_error); in test_spots()
84bernoulli_distribution<RealType>(static_cast<RealType>(0.25L)), static_cast<RealType>(-1)), std::d… in test_spots()
88bernoulli_distribution<RealType>(static_cast<RealType>(0.25L)), static_cast<RealType>(2)), std::do… in test_spots()
92 bernoulli_distribution<RealType>(static_cast<RealType>(0.5L)), static_cast<RealType>(0)), in test_spots()
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/random/
Dbernoulli_distribution.h35 class bernoulli_distribution {
41 using distribution_type = bernoulli_distribution;
60 bernoulli_distribution() : bernoulli_distribution(0.5) {} in bernoulli_distribution() function
62 explicit bernoulli_distribution(double p) : param_(p) {} in bernoulli_distribution() function
64 explicit bernoulli_distribution(param_type p) : param_(p) {} in bernoulli_distribution() function
88 friend bool operator==(const bernoulli_distribution& d1,
89 const bernoulli_distribution& d2) {
93 friend bool operator!=(const bernoulli_distribution& d1,
94 const bernoulli_distribution& d2) {
110 const bernoulli_distribution& x) {
[all …]
Dbernoulli_distribution_test.cc35 absl::bernoulli_distribution before(d); in TEST_P()
38 absl::bernoulli_distribution via_param{ in TEST_P()
39 absl::bernoulli_distribution::param_type(d)}; in TEST_P()
45 absl::bernoulli_distribution after(0.6789); in TEST_P()
73 absl::bernoulli_distribution dist(p); in TEST_P()
139 auto generate = [&urbg](absl::bernoulli_distribution& dist) { in TEST()
151 absl::bernoulli_distribution dist(kP); in TEST()
157 absl::bernoulli_distribution dist(kP * 10.0); in TEST()
163 absl::bernoulli_distribution dist(kP * 20.0); in TEST()
169 absl::bernoulli_distribution dist(1.0 - kP); in TEST()
[all …]
/third_party/abseil-cpp/absl/random/
Dbernoulli_distribution.h35 class bernoulli_distribution {
41 using distribution_type = bernoulli_distribution;
60 bernoulli_distribution() : bernoulli_distribution(0.5) {} in bernoulli_distribution() function
62 explicit bernoulli_distribution(double p) : param_(p) {} in bernoulli_distribution() function
64 explicit bernoulli_distribution(param_type p) : param_(p) {} in bernoulli_distribution() function
88 friend bool operator==(const bernoulli_distribution& d1,
89 const bernoulli_distribution& d2) {
93 friend bool operator!=(const bernoulli_distribution& d1,
94 const bernoulli_distribution& d2) {
110 const bernoulli_distribution& x) {
[all …]
Dbernoulli_distribution_test.cc35 absl::bernoulli_distribution before(d); in TEST_P()
38 absl::bernoulli_distribution via_param{ in TEST_P()
39 absl::bernoulli_distribution::param_type(d)}; in TEST_P()
45 absl::bernoulli_distribution after(0.6789); in TEST_P()
73 absl::bernoulli_distribution dist(p); in TEST_P()
139 auto generate = [&urbg](absl::bernoulli_distribution& dist) { in TEST()
151 absl::bernoulli_distribution dist(kP); in TEST()
157 absl::bernoulli_distribution dist(kP * 10.0); in TEST()
163 absl::bernoulli_distribution dist(kP * 20.0); in TEST()
169 absl::bernoulli_distribution dist(1.0 - kP); in TEST()
[all …]
Dmock_distributions.h110 random_internal::MockOverloadSet<absl::bernoulli_distribution,
/third_party/boost/boost/math/distributions/
Dbernoulli.hpp102 class bernoulli_distribution class
108 bernoulli_distribution(RealType p = 0.5) : m_p(p) in bernoulli_distribution() function in boost::math::bernoulli_distribution
127 typedef bernoulli_distribution<double> bernoulli;
130 …inline const std::pair<RealType, RealType> range(const bernoulli_distribution<RealType, Policy>& /… in range()
137 …inline const std::pair<RealType, RealType> support(const bernoulli_distribution<RealType, Policy>&… in support()
144 inline RealType mean(const bernoulli_distribution<RealType, Policy>& dist) in mean()
157 inline RealType variance(const bernoulli_distribution<RealType, Policy>& dist) in variance()
163 RealType pdf(const bernoulli_distribution<RealType, Policy>& dist, const RealType& k) in pdf()
188 inline RealType cdf(const bernoulli_distribution<RealType, Policy>& dist, const RealType& k) in cdf()
212 …inline RealType cdf(const complemented2_type<bernoulli_distribution<RealType, Policy>, RealType>& … in cdf()
[all …]
Dfwd.hpp22 class bernoulli_distribution;
121 typedef boost::math::bernoulli_distribution<Type, Policy> bernoulli;\
/third_party/boost/boost/random/
Dbernoulli_distribution.hpp35 class bernoulli_distribution class
48 typedef bernoulli_distribution distribution_type;
96 explicit bernoulli_distribution(const RealType& p_arg = RealType(0.5)) in bernoulli_distribution() function in boost::random::bernoulli_distribution
105 explicit bernoulli_distribution(const param_type& parm) in bernoulli_distribution() function in boost::random::bernoulli_distribution
153 return bernoulli_distribution(parm)(eng); in operator ()()
159 BOOST_RANDOM_DETAIL_OSTREAM_OPERATOR(os, bernoulli_distribution, bd) in BOOST_RANDOM_DETAIL_OSTREAM_OPERATOR() argument
168 BOOST_RANDOM_DETAIL_ISTREAM_OPERATOR(is, bernoulli_distribution, bd) in BOOST_RANDOM_DETAIL_ISTREAM_OPERATOR() argument
178 BOOST_RANDOM_DETAIL_EQUALITY_OPERATOR(bernoulli_distribution, lhs, rhs) in BOOST_RANDOM_DETAIL_EQUALITY_OPERATOR() argument
185 BOOST_RANDOM_DETAIL_INEQUALITY_OPERATOR(bernoulli_distribution)
193 using random::bernoulli_distribution;
/third_party/boost/libs/math/test/compile_test/
Ddist_bernoulli_incl_test.cpp21 template class boost::math::bernoulli_distribution<float, boost::math::policies::policy<> >;
22 template class boost::math::bernoulli_distribution<double, boost::math::policies::policy<> >;
24 template class boost::math::bernoulli_distribution<long double, boost::math::policies::policy<> >;
/third_party/boost/libs/compute/include/boost/compute/random/
Dbernoulli_distribution.hpp38 class bernoulli_distribution class
43 bernoulli_distribution(RealType p = 0.5f) in bernoulli_distribution() function in boost::compute::bernoulli_distribution
49 ~bernoulli_distribution() in ~bernoulli_distribution()
/third_party/boost/boost/compute/random/
Dbernoulli_distribution.hpp38 class bernoulli_distribution class
43 bernoulli_distribution(RealType p = 0.5f) in bernoulli_distribution() function in boost::compute::bernoulli_distribution
49 ~bernoulli_distribution() in ~bernoulli_distribution()
/third_party/boost/libs/math/doc/distributions/
Dbernoulli.qbk8 class bernoulli_distribution;
10 typedef bernoulli_distribution<> bernoulli;
13 class bernoulli_distribution
19 bernoulli_distribution(RealType p); // Constructor.
54 bernoulli_distribution(RealType p);
56 Constructs a [@http://en.wikipedia.org/wiki/bernoulli_distribution
/third_party/boost/libs/math/doc/graphs/
Ddist_graphs.cpp42 struct is_discrete_distribution<boost::math::bernoulli_distribution<T,P> >
594 distribution_plotter<boost::math::bernoulli_distribution<> > in main()
596 bernoulli_plotter.add(boost::math::bernoulli_distribution<>(0.25), "p=0.25"); in main()
597 bernoulli_plotter.add(boost::math::bernoulli_distribution<>(0.5), "p=0.5"); in main()
598 bernoulli_plotter.add(boost::math::bernoulli_distribution<>(0.75), "p=0.75"); in main()
601 distribution_plotter<boost::math::bernoulli_distribution<> > in main()
603 bernoulli_cdf_plotter.add(boost::math::bernoulli_distribution<>(0.25), "p=0.25"); in main()
604 bernoulli_cdf_plotter.add(boost::math::bernoulli_distribution<>(0.5), "p=0.5"); in main()
605 bernoulli_cdf_plotter.add(boost::math::bernoulli_distribution<>(0.75), "p=0.75"); in main()
/third_party/boost/libs/random/doc/
DJamfile.v221 bernoulli_distribution
120bernoulli_distribution=\"@xmlonly <classname alt=\\\"boost::random::bernoulli_distribution\\\">ber…
/third_party/boost/libs/random/test/
Dtest_bernoulli_distribution.cpp14 #define BOOST_RANDOM_DISTRIBUTION boost::random::bernoulli_distribution<>
Dtest_bernoulli.cpp30 boost::random::bernoulli_distribution<> dist(p); in do_test()
/third_party/boost/libs/compute/test/
Dtest_bernoulli_distribution.cpp32 boost::compute::bernoulli_distribution<float> distribution(0.25f); in BOOST_AUTO_TEST_CASE()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/image/
Drandom_vertical_flip_with_bbox_op.h48 std::bernoulli_distribution distribution_;
Drandom_vertical_flip_op.h52 std::bernoulli_distribution distribution_;
Drandom_horizontal_flip_with_bbox_op.h55 std::bernoulli_distribution distribution_;
Drandom_horizontal_flip_op.h58 std::bernoulli_distribution distribution_;
/third_party/boost/libs/compute/perf/
Dperf_bernoulli_distribution.cpp36 compute::bernoulli_distribution<float> dist(0.5); in main()
/third_party/skia/third_party/externals/angle2/util/
Drandom_utils.cpp38 std::bernoulli_distribution dist(probTrue); in randomBool()
/third_party/flutter/skia/third_party/externals/angle2/util/
Drandom_utils.cpp38 std::bernoulli_distribution dist(probTrue); in randomBool()

123