/third_party/boost/libs/math/test/ |
D | test_bernoulli.cpp | 28 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() 84 …bernoulli_distribution<RealType>(static_cast<RealType>(0.25L)), static_cast<RealType>(-1)), std::d… in test_spots() 88 …bernoulli_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/ |
D | bernoulli_distribution.h | 35 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 …]
|
D | bernoulli_distribution_test.cc | 35 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/ |
D | bernoulli_distribution.h | 35 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 …]
|
D | bernoulli_distribution_test.cc | 35 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 …]
|
D | mock_distributions.h | 110 random_internal::MockOverloadSet<absl::bernoulli_distribution,
|
/third_party/boost/boost/math/distributions/ |
D | bernoulli.hpp | 102 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 …]
|
D | fwd.hpp | 22 class bernoulli_distribution; 121 typedef boost::math::bernoulli_distribution<Type, Policy> bernoulli;\
|
/third_party/boost/boost/random/ |
D | bernoulli_distribution.hpp | 35 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/ |
D | dist_bernoulli_incl_test.cpp | 21 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/ |
D | bernoulli_distribution.hpp | 38 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/ |
D | bernoulli_distribution.hpp | 38 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/ |
D | bernoulli.qbk | 8 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/ |
D | dist_graphs.cpp | 42 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/ |
D | Jamfile.v2 | 21 bernoulli_distribution 120 …bernoulli_distribution=\"@xmlonly <classname alt=\\\"boost::random::bernoulli_distribution\\\">ber…
|
/third_party/boost/libs/random/test/ |
D | test_bernoulli_distribution.cpp | 14 #define BOOST_RANDOM_DISTRIBUTION boost::random::bernoulli_distribution<>
|
D | test_bernoulli.cpp | 30 boost::random::bernoulli_distribution<> dist(p); in do_test()
|
/third_party/boost/libs/compute/test/ |
D | test_bernoulli_distribution.cpp | 32 boost::compute::bernoulli_distribution<float> distribution(0.25f); in BOOST_AUTO_TEST_CASE()
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/image/ |
D | random_vertical_flip_with_bbox_op.h | 48 std::bernoulli_distribution distribution_;
|
D | random_vertical_flip_op.h | 52 std::bernoulli_distribution distribution_;
|
D | random_horizontal_flip_with_bbox_op.h | 55 std::bernoulli_distribution distribution_;
|
D | random_horizontal_flip_op.h | 58 std::bernoulli_distribution distribution_;
|
/third_party/boost/libs/compute/perf/ |
D | perf_bernoulli_distribution.cpp | 36 compute::bernoulli_distribution<float> dist(0.5); in main()
|
/third_party/skia/third_party/externals/angle2/util/ |
D | random_utils.cpp | 38 std::bernoulli_distribution dist(probTrue); in randomBool()
|
/third_party/flutter/skia/third_party/externals/angle2/util/ |
D | random_utils.cpp | 38 std::bernoulli_distribution dist(probTrue); in randomBool()
|