Home
last modified time | relevance | path

Searched refs:dist_r (Results 1 – 7 of 7) sorted by relevance

/third_party/boost/libs/random/test/
Dtest_discrete_distribution.cpp58 boost::random::discrete_distribution<> dist_r(probs); in BOOST_AUTO_TEST_CASE() local
59 CHECK_PROBABILITIES(dist_r.probabilities(), list_of(.125)(.25)(.125)(.5)); in BOOST_AUTO_TEST_CASE()
69 boost::random::discrete_distribution<> copy_r(dist_r); in BOOST_AUTO_TEST_CASE()
70 BOOST_CHECK_EQUAL(dist_r, copy_r); in BOOST_AUTO_TEST_CASE()
124 boost::random::discrete_distribution<> dist_r(probs); in BOOST_AUTO_TEST_CASE() local
125 BOOST_CHECK_EQUAL((dist_r.min)(), 0); in BOOST_AUTO_TEST_CASE()
126 BOOST_CHECK_EQUAL((dist_r.max)(), 2); in BOOST_AUTO_TEST_CASE()
133 boost::random::discrete_distribution<> dist_r(probs); in BOOST_AUTO_TEST_CASE() local
134 boost::random::discrete_distribution<> dist_r_copy(dist_r); in BOOST_AUTO_TEST_CASE()
137 BOOST_CHECK(dist_r == dist_r_copy); in BOOST_AUTO_TEST_CASE()
[all …]
Dtest_piecewise_constant_distribution.cpp73 boost::random::piecewise_constant_distribution<> dist_r(intervals, weights); in BOOST_AUTO_TEST_CASE() local
74 CHECK_SEQUENCE(dist_r.intervals(), list_of(0)(1)(2)(3)(5)); in BOOST_AUTO_TEST_CASE()
75 CHECK_SEQUENCE(dist_r.densities(), list_of(.125)(.25)(.125)(.25)); in BOOST_AUTO_TEST_CASE()
103 boost::random::piecewise_constant_distribution<> copy_r(dist_r); in BOOST_AUTO_TEST_CASE()
104 BOOST_CHECK_EQUAL(dist_r, copy_r); in BOOST_AUTO_TEST_CASE()
195 boost::random::piecewise_constant_distribution<> dist_r(intervals, weights); in BOOST_AUTO_TEST_CASE() local
196 BOOST_CHECK_EQUAL((dist_r.min)(), 0.0); in BOOST_AUTO_TEST_CASE()
197 BOOST_CHECK_EQUAL((dist_r.max)(), 5.0); in BOOST_AUTO_TEST_CASE()
205 boost::random::piecewise_constant_distribution<> dist_r(intervals, weights); in BOOST_AUTO_TEST_CASE() local
206 boost::random::piecewise_constant_distribution<> dist_r_copy(dist_r); in BOOST_AUTO_TEST_CASE()
[all …]
Dtest_piecewise_linear_distribution.cpp75 boost::random::piecewise_linear_distribution<> dist_r(intervals, weights); in BOOST_AUTO_TEST_CASE() local
76 CHECK_SEQUENCE(dist_r.intervals(), list_of(0)(1)(2)(3)(5)); in BOOST_AUTO_TEST_CASE()
77 CHECK_SEQUENCE(dist_r.densities(), list_of(.375)(.125)(.25)(.125)(.25)); in BOOST_AUTO_TEST_CASE()
106 boost::random::piecewise_linear_distribution<> copy_r(dist_r); in BOOST_AUTO_TEST_CASE()
107 BOOST_CHECK_EQUAL(dist_r, copy_r); in BOOST_AUTO_TEST_CASE()
201 boost::random::piecewise_linear_distribution<> dist_r(intervals, weights); in BOOST_AUTO_TEST_CASE() local
202 BOOST_CHECK_EQUAL((dist_r.min)(), 0.0); in BOOST_AUTO_TEST_CASE()
203 BOOST_CHECK_EQUAL((dist_r.max)(), 5.0); in BOOST_AUTO_TEST_CASE()
211 boost::random::piecewise_linear_distribution<> dist_r(intervals, weights); in BOOST_AUTO_TEST_CASE() local
212 boost::random::piecewise_linear_distribution<> dist_r_copy(dist_r); in BOOST_AUTO_TEST_CASE()
[all …]
Dtest_hyperexponential_distribution.cpp82 boost::random::hyperexponential_distribution<> dist_r(probs, rates); in BOOST_AUTO_TEST_CASE() local
83 BOOST_CHECK_EQUAL(dist_r.num_phases(), 4u); in BOOST_AUTO_TEST_CASE()
84 BOOST_RANDOM_HYPEREXP_CHECK_CLOSE_COLLECTIONS(double, dist_r.probabilities(), probs, tol); in BOOST_AUTO_TEST_CASE()
85 BOOST_RANDOM_HYPEREXP_CHECK_CLOSE_COLLECTIONS(double, dist_r.rates(), rates, tol); in BOOST_AUTO_TEST_CASE()
117 boost::random::hyperexponential_distribution<> cp_r(dist_r); in BOOST_AUTO_TEST_CASE()
118 BOOST_CHECK_EQUAL(cp_r, dist_r); in BOOST_AUTO_TEST_CASE()
178 boost::random::hyperexponential_distribution<> dist_r(probs, rates); in BOOST_AUTO_TEST_CASE() local
179 BOOST_CHECK_EQUAL((dist_r.min)(), 0); in BOOST_AUTO_TEST_CASE()
180 BOOST_CHECK_EQUAL((dist_r.max)(), (std::numeric_limits<double>::infinity)()); in BOOST_AUTO_TEST_CASE()
193 boost::random::hyperexponential_distribution<> dist_r(probs, rates); in BOOST_AUTO_TEST_CASE() local
[all …]
/third_party/boost/tools/boost_install/test/iostreams/zlib-1.2.11/contrib/inflate86/
Dinffast.S563 #define dist_r %edx macro
565 movl %eax, dist_r /* dist = this */
566 shrl $16, dist_r /* dist = this.val */
607 addl %eax, dist_r /* dist += hold & ((1 << op) - 1) */
627 cmpl dist_r, %eax
632 subl dist_r, from_r /* from = out - dist */
650 cmpl $1, dist_r
724 cmpl dist_r, %eax
727 addl dist_r, nbytes_r /* nbytes = dist - nbytes */
754 subl dist_r, from_r /* from = out - dist */
[all …]
/third_party/boost/libs/beast/test/extern/zlib-1.2.11/contrib/inflate86/
Dinffast.S563 #define dist_r %edx macro
565 movl %eax, dist_r /* dist = this */
566 shrl $16, dist_r /* dist = this.val */
607 addl %eax, dist_r /* dist += hold & ((1 << op) - 1) */
627 cmpl dist_r, %eax
632 subl dist_r, from_r /* from = out - dist */
650 cmpl $1, dist_r
724 cmpl dist_r, %eax
727 addl dist_r, nbytes_r /* nbytes = dist - nbytes */
754 subl dist_r, from_r /* from = out - dist */
[all …]
/third_party/boost/libs/math/test/
Dtest_hyperexponential_dist.cpp67 boost::math::hyperexponential_distribution<RealT> dist_r(probs, rates); in BOOST_AUTO_TEST_CASE_TEMPLATE() local
68 BOOST_CHECK_EQUAL(dist_r.num_phases(), n); in BOOST_AUTO_TEST_CASE_TEMPLATE()
69 …BOOST_MATH_HYPEREXP_CHECK_CLOSE_COLLECTIONS(RealT, dist_r.probabilities(), std::vector<RealT>(prob… in BOOST_AUTO_TEST_CASE_TEMPLATE()
70 …BOOST_MATH_HYPEREXP_CHECK_CLOSE_COLLECTIONS(RealT, dist_r.rates(), std::vector<RealT>(rates, rates… in BOOST_AUTO_TEST_CASE_TEMPLATE()