Home
last modified time | relevance | path

Searched refs:complement (Results 1 – 25 of 442) sorted by relevance

12345678910>>...18

/third_party/boost/libs/math/test/
Dtest_fisher_f.cpp71 cdf(complement(dist, cs)), Q, tol); in test_spot()
75 quantile(complement(dist, Q)), cs, tol); in test_spot()
245 cdf(complement(fisher_f_distribution<RealType>( in test_spots()
253 cdf(complement(fisher_f_distribution<RealType>( in test_spots()
261 cdf(complement(fisher_f_distribution<RealType>( in test_spots()
269 cdf(complement(fisher_f_distribution<RealType>( in test_spots()
277 cdf(complement(fisher_f_distribution<RealType>( in test_spots()
285 cdf(complement(fisher_f_distribution<RealType>( in test_spots()
293 cdf(complement(fisher_f_distribution<RealType>( in test_spots()
301 cdf(complement(fisher_f_distribution<RealType>( in test_spots()
[all …]
Dtest_triangular.cpp54 complement( in check_triangular()
67 complement( in check_triangular()
295 cdf(complement(triangular_distribution<RealType>(0, 0, 1), static_cast<RealType>(-1))), in test_spots()
298 cdf(complement(triangular_distribution<RealType>(0, 0, 1), static_cast<RealType>(0))), in test_spots()
302 cdf(complement(triangular_distribution<RealType>(-1, 0, 1), static_cast<RealType>(0))), in test_spots()
306 cdf(complement(triangular_distribution<RealType>(0, 0, 1), static_cast<RealType>(0))), in test_spots()
309 cdf(complement(triangular_distribution<RealType>(0, 1, 1), static_cast<RealType>(1))), in test_spots()
313 cdf(complement(triangular_distribution<RealType>(0, 0, 1), static_cast<RealType>(2))), in test_spots()
316 cdf(complement(triangular_distribution<RealType>(0, 0, 1), static_cast<RealType>(1))), in test_spots()
320 cdf(complement(triangular_distribution<RealType>(-1, 0, 1), static_cast<RealType>(-0.5))), in test_spots()
[all …]
Dtest_cauchy.cpp134 complement(cauchy_distribution<RealType>(), in test_spots()
140 complement(cauchy_distribution<RealType>(), in test_spots()
146 complement(cauchy_distribution<RealType>(), in test_spots()
152 complement(cauchy_distribution<RealType>(), in test_spots()
158 complement(cauchy_distribution<RealType>(), in test_spots()
164 complement(cauchy_distribution<RealType>(), in test_spots()
170 complement(cauchy_distribution<RealType>(), in test_spots()
176 complement(cauchy_distribution<RealType>(), in test_spots()
182 complement(cauchy_distribution<RealType>(), in test_spots()
188 complement(cauchy_distribution<RealType>(), in test_spots()
[all …]
Dtest_find_scale.cpp29 using boost::math::complement;// will be needed by users who want complement,
83 …BOOST_MATH_CHECK_THROW(find_scale<normal>(complement(0., -1., 0.)), std::domain_error); // p below… in test_spots()
84 …BOOST_MATH_CHECK_THROW(find_scale<normal>(complement(0., 2., 0.)), std::domain_error); // p above … in test_spots()
85 …BOOST_MATH_CHECK_THROW(find_scale<normal>(complement(numeric_limits<double>::infinity(), 0.5, 0.)), in test_spots()
87 …BOOST_MATH_CHECK_THROW(find_scale<normal>(complement(numeric_limits<double>::quiet_NaN(), -1., 0.)… in test_spots()
89 …BOOST_MATH_CHECK_THROW(find_scale<normal>(complement(0., -1., numeric_limits<double>::quiet_NaN())… in test_spots()
92 …BOOST_MATH_CHECK_THROW(find_scale<normal>(complement(0., -1., 0.)), std::domain_error); // p below… in test_spots()
115 …BOOST_CHECK_NO_THROW(find_scale<normal>(complement(0, -1, 1, ignore_domain_policy()))); // probabi… in test_spots()
116 BOOST_CHECK_NO_THROW(find_scale<normal>(complement(numeric_limits<double>::infinity(), -1, 1, in test_spots()
159 s = find_scale<normal_distribution<RealType> >(complement(z, q, l)); // Implicit default policy. in test_spots()
[all …]
Dtest_logistic_dist.cpp45 complement(logistic_distribution<RealType>(location,scale), in test_spot()
62 complement(logistic_distribution<RealType>(location,scale), in test_spot()
210 …BOOST_CHECK_EQUAL(cdf(complement(logistic_distribution<RealType>(), +std::numeric_limits<RealType>… in test_spots()
211 …BOOST_CHECK_EQUAL(cdf(complement(logistic_distribution<RealType>(), -std::numeric_limits<RealType>… in test_spots()
215 …BOOST_MATH_CHECK_THROW(quantile(complement(logistic_distribution<RealType>(), static_cast<RealType… in test_spots()
216 …BOOST_MATH_CHECK_THROW(quantile(complement(logistic_distribution<RealType>(), static_cast<RealType… in test_spots()
219 …BOOST_CHECK_EQUAL(cdf(complement(logistic_distribution<RealType>(), +boost::math::tools::max_value… in test_spots()
220 …BOOST_CHECK_EQUAL(cdf(complement(logistic_distribution<RealType>(), -boost::math::tools::max_value… in test_spots()
237 BOOST_CHECK_EQUAL(cdf(complement(logistic_distribution<RealType>(0, 1), inf)), 0); in test_spots()
238 BOOST_CHECK_EQUAL(cdf(complement(logistic_distribution<RealType>(0, 1), -inf)), 1); in test_spots()
[all …]
Dtest_uniform.cpp47 complement( in check_uniform()
60 complement( in check_uniform()
155 cdf(complement(uniform_distribution<RealType>(0, 1), static_cast<RealType>(0))), in test_spots()
158 cdf(complement(uniform_distribution<RealType>(0, 1), static_cast<RealType>(0))), in test_spots()
161 cdf(complement(uniform_distribution<RealType>(0, 1), static_cast<RealType>(0.1))), in test_spots()
165 cdf(complement(uniform_distribution<RealType>(0, 1), static_cast<RealType>(0.5))), in test_spots()
169 cdf(complement(uniform_distribution<RealType>(0, 1), static_cast<RealType>(1))), in test_spots()
172 cdf(complement(uniform_distribution<RealType>(0, 1), static_cast<RealType>(2))), in test_spots()
201 quantile(complement(uniform_distribution<RealType>(0, 1), static_cast<RealType>(0.1))), in test_spots()
205 quantile(complement(uniform_distribution<RealType>(0, 1), static_cast<RealType>(0.9))), in test_spots()
[all …]
Dtest_chi_squared.cpp69 cdf(complement(dist, cs)), Q, tol); in test_spot()
73 quantile(complement(dist, Q)), cs, tol); in test_spot()
88 cdf(complement(dist2, cs)), Q, tol); in test_spot()
92 quantile(complement(dist2, Q)), cs, tol); in test_spot()
415 , pdf(dist, x) / cdf(complement(dist, x)), tol2); in test_spots()
419 , -log(cdf(complement(dist, x))), tol2); in test_spots()
468 cdf(complement(chi_squared_distribution<RealType>(1), static_cast<RealType>(0))) in test_spots()
471 cdf(complement(chi_squared_distribution<RealType>(2), static_cast<RealType>(0))) in test_spots()
474 cdf(complement(chi_squared_distribution<RealType>(3), static_cast<RealType>(0))) in test_spots()
498 cdf(complement( in test_spots()
[all …]
Dtest_find_location.cpp29 using boost::math::complement;// will be needed by users who want complement,
82 …BOOST_MATH_CHECK_THROW(find_location<normal>(complement(0., -1., 0.)), std::domain_error); // p be… in test_spots()
83 …BOOST_MATH_CHECK_THROW(find_location<normal>(complement(0., 2., 0.)), std::domain_error); // p abo… in test_spots()
84 …BOOST_MATH_CHECK_THROW(find_location<normal>(complement(numeric_limits<double>::infinity(), 0.5, 0… in test_spots()
86 …BOOST_MATH_CHECK_THROW(find_location<normal>(complement(numeric_limits<double>::quiet_NaN(), -1., … in test_spots()
88 …BOOST_MATH_CHECK_THROW(find_location<normal>(complement(0., -1., numeric_limits<double>::quiet_NaN… in test_spots()
108 BOOST_CHECK_NO_THROW(find_location<normal>(complement(0, -1, 1, in test_spots()
110 BOOST_CHECK_NO_THROW(find_location<normal>(complement(numeric_limits<double>::infinity(), -1, 1, in test_spots()
134 l = find_location<normal_distribution<RealType> >(complement(z, q, sd)); in test_spots()
Dtest_hypergeometric_dist.cpp138 return cdf(complement(d, x)); in ccdf_tester()
246 BOOST_CHECK_EX(quantile(complement(du, ccp)) >= x); in do_test_hypergeometric_quantile()
258 BOOST_CHECK_EX(quantile(complement(dl, ccp)) <= x); in do_test_hypergeometric_quantile()
271 BOOST_CHECK_EX(quantile(complement(dn, ccp)) == x); in do_test_hypergeometric_quantile()
293 BOOST_CHECK_EX(quantile(complement(dou, ccp)) >= x); in do_test_hypergeometric_quantile()
297 BOOST_CHECK_EX(quantile(complement(dou, ccp)) <= x); in do_test_hypergeometric_quantile()
320 BOOST_CHECK_EX(quantile(complement(di, ccp)) <= x); in do_test_hypergeometric_quantile()
324 BOOST_CHECK_EX(quantile(complement(di, ccp)) >= x); in do_test_hypergeometric_quantile()
355 BOOST_CHECK_CLOSE(cdf(complement(d, x)), ccp, tol); in test_spot()
359 BOOST_CHECK_CLOSE(cdf(complement(d, static_cast<RealType>(x))), ccp, tol); in test_spot()
[all …]
Dtest_arcsine.cpp192 BOOST_CHECK_CLOSE_FRACTION(cdf(complement(anarcsine, x)), Q, tol); in test_spot()
211 BOOST_CHECK_CLOSE_FRACTION(quantile(complement(anarcsine, Q)), x, tol * 10); in test_spot()
218 … BOOST_CHECK(quantile(complement(anarcsine, Q)) < boost::math::tools::epsilon<RealType>() * 10); in test_spot()
242 using ::boost::math::complement; in test_spots()
306 …BOOST_CHECK_CLOSE_FRACTION(cdf(complement(arcsine_01, 0.000001)), static_cast<RealType>(1 - 0.0006… in test_spots()
307 …BOOST_CHECK_CLOSE_FRACTION(cdf(complement(arcsine_01, 0.000001)), static_cast<RealType>(0.99936338… in test_spots()
308 …BOOST_CHECK_CLOSE_FRACTION(cdf(complement(arcsine_01, 0.05)), static_cast<RealType>(0.856433706871… in test_spots()
309 …BOOST_CHECK_CLOSE_FRACTION(cdf(complement(arcsine_01, 0.5)), static_cast<RealType>(0.5L), toleranc… in test_spots()
311 …BOOST_CHECK_CLOSE_FRACTION(cdf(complement(arcsine_01, 0.95)), static_cast<RealType>(0.143566293128… in test_spots()
312 …BOOST_CHECK_CLOSE_FRACTION(cdf(complement(arcsine_01, 0.999999)), static_cast<RealType>(1 - 0.9993… in test_spots()
[all …]
Dtest_bernoulli.cpp175 cdf(complement( in test_spots()
183 cdf(complement( in test_spots()
205 quantile(complement( in test_spots()
212 quantile(complement( in test_spots()
227 BOOST_MATH_CHECK_THROW(cdf(complement(dist, -1)), std::domain_error); in test_spots()
229 BOOST_MATH_CHECK_THROW(quantile(complement(dist, -1)), std::domain_error); in test_spots()
231 BOOST_MATH_CHECK_THROW(quantile(complement(dist, -1)), std::domain_error); in test_spots()
247 BOOST_MATH_CHECK_THROW(cdf(complement(b, +nan)), std::domain_error); // x = + nan in test_spots()
249 BOOST_MATH_CHECK_THROW(quantile(complement(b, +nan)), std::domain_error); // p = + nan in test_spots()
268 BOOST_MATH_CHECK_THROW(cdf(complement(w, +inf)), std::domain_error); // x = + inf in test_spots()
[all …]
Dtest_inverse_gamma_distribution.cpp82 cdf(complement(dist, x)), Q, tol); in test_spot()
86 quantile(complement(dist, Q)), x, tol); in test_spot()
161 …BOOST_MATH_CHECK_THROW(cdf(complement(ig21, +std::numeric_limits<RealType>::infinity())), std::dom… in test_spots()
162 …BOOST_MATH_CHECK_THROW(cdf(complement(ig21, -std::numeric_limits<RealType>::infinity())), std::dom… in test_spots()
179 …BOOST_MATH_CHECK_THROW(cdf(complement(ig21, +std::numeric_limits<RealType>::quiet_NaN())), std::do… in test_spots()
181 …BOOST_MATH_CHECK_THROW(quantile(complement(ig21, +std::numeric_limits<RealType>::quiet_NaN())), st… in test_spots()
216 …BOOST_CHECK_CLOSE_FRACTION(hazard(dist51, x), pdf(dist51, x) / cdf(complement(dist51, x)), tol_few… in test_spots()
218 BOOST_CHECK_CLOSE_FRACTION(chf(dist51, x), -log(cdf(complement(dist51, x))), tol_few_eps); in test_spots()
272 cdf(complement(inverse_gamma_distribution<RealType>(1), static_cast<RealType>(0))) in test_spots()
275 cdf(complement(inverse_gamma_distribution<RealType>(2), static_cast<RealType>(0))) in test_spots()
[all …]
Dtest_out_of_range.hpp53 BOOST_MATH_CHECK_THROW(cdf(complement(d, m)), std::domain_error); in check_support()
62 BOOST_MATH_CHECK_THROW(cdf(complement(d, m)), std::domain_error); in check_support()
71 …BOOST_MATH_CHECK_THROW(cdf(complement(d, std::numeric_limits<value_type>::infinity())), std::domai… in check_support()
78 …BOOST_MATH_CHECK_THROW(cdf(complement(d, -std::numeric_limits<value_type>::infinity())), std::doma… in check_support()
83 …BOOST_MATH_CHECK_THROW(quantile(complement(d, std::numeric_limits<value_type>::infinity())), std::… in check_support()
84 …BOOST_MATH_CHECK_THROW(quantile(complement(d, -std::numeric_limits<value_type>::infinity())), std:… in check_support()
91 …BOOST_MATH_CHECK_THROW(cdf(complement(d, std::numeric_limits<value_type>::quiet_NaN())), std::doma… in check_support()
94 …BOOST_MATH_CHECK_THROW(cdf(complement(d, -std::numeric_limits<value_type>::quiet_NaN())), std::dom… in check_support()
97 …BOOST_MATH_CHECK_THROW(quantile(complement(d, std::numeric_limits<value_type>::quiet_NaN())), std:… in check_support()
98 …BOOST_MATH_CHECK_THROW(quantile(complement(d, -std::numeric_limits<value_type>::quiet_NaN())), std… in check_support()
[all …]
Dtest_inverse_chi_squared_distribution.cpp91 cdf(complement(dist, x)), Q, tol); // 1 - cdf in test_spot()
95 quantile(complement(dist, Q)), x, tol); // quantile(complement(1 - cdf)) = x in test_spot()
164 …BOOST_MATH_CHECK_THROW(cdf(complement(ichsq, +std::numeric_limits<RealType>::infinity())), std::do… in test_spots()
165 …BOOST_MATH_CHECK_THROW(cdf(complement(ichsq, -std::numeric_limits<RealType>::infinity())), std::do… in test_spots()
181 …BOOST_MATH_CHECK_THROW(cdf(complement(ichsq, +std::numeric_limits<RealType>::quiet_NaN())), std::d… in test_spots()
183 …BOOST_MATH_CHECK_THROW(quantile(complement(ichsq, std::numeric_limits<RealType>::quiet_NaN())), st… in test_spots()
249 cdf(complement(inverse_chi_squared_distribution<RealType>(1), static_cast<RealType>(0))) in test_spots()
252 cdf(complement(inverse_chi_squared_distribution<RealType>(2), static_cast<RealType>(0))) in test_spots()
255 cdf(complement(inverse_chi_squared_distribution<RealType>(3), static_cast<RealType>(0))) in test_spots()
279 cdf(complement( in test_spots()
[all …]
/third_party/boost/libs/math/example/
Dbinomial_quiz_example.cpp153 cout << "Probability of getting > 10 right (to pass) is " << cdf(complement(quiz, 10)) << endl; in main()
160 BOOST_ASSERT((cdf(quiz, 10) + cdf(complement(quiz, 10))) == 1.); in main()
179 << cdf(complement(quiz, pass_score-1)) in main()
180 << ", only 1 in " << 1/cdf(complement(quiz, pass_score-1)) << endl; in main()
182 BOOST_ASSERT((cdf(quiz, pass_score -1) + cdf(complement(quiz, pass_score-1))) == 1); in main()
224 << cdf(complement(quiz, score)) << endl; in main()
317 << quantile(complement(quiz, 0.25)) << endl; // Quartiles in main()
321 << quantile(complement(quiz, 0.1))<< endl; // Deciles in main()
323 << quantile(complement(quiz, 0.05))<< endl; // 5 to 95% in main()
325 << quantile(complement(quiz, 0.025)) << endl; // 2.5 to 97.5% in main()
[all …]
Dfind_mean_and_sd_normal.cpp30 using boost::math::complement;
74 << cdf(complement(packs, max_weight)) * 100. << endl; // P(X > 3.1) in main()
85 << " is " << cdf(complement(packs, minimum_weight)) << endl; in main()
101 << " is " << cdf(complement(xpacks, minimum_weight)) << endl; in main()
115 << " is " << cdf(complement(nominal_packs, minimum_weight)) << endl; in main()
136 << " is " << cdf(complement(good_packs, minimum_weight)) << endl; in main()
158 << " is " << cdf(complement(cpacks, minimum_weight)) << endl; in main()
177 << " is " << cdf(complement(goodcpacks, minimum_weight)) << endl; in main()
188 << " is " << cdf(complement(goodcpacks, minimum_weight)) << endl; in main()
244 << " is " << cdf(complement(pack05, minimum_weight)) << endl; in main()
[all …]
Dnormal_misc_examples.cpp129 …cout << setw(15) << alpha[i] << setw(15) << alpha[i] /2 << setw(10) << quantile(complement(s, alp… in main()
161 << cdf(complement(s, s.standard_deviation())) << endl; in main()
163 << 1 - cdf(complement(s, s.standard_deviation())) * 2 << endl; in main()
165 << 1 - cdf(complement(s, 2 * s.standard_deviation())) * 2 << endl; in main()
167 << 1 - cdf(complement(s, 3 * s.standard_deviation())) * 2 << endl; in main()
221 << expected_life << " is "<< cdf(complement(bulbs, expected_life)) << endl; in main()
280 << cdf(complement(packs, max_weight)) << endl; // P(X > 3.1) in main()
284 << " is " << cdf(complement(packs, under_weight)) << endl; in main()
293 << " is " << cdf(complement(xpacks, under_weight)) << endl; in main()
303 << " is " << cdf(complement(nominal_packs, under_weight)) << endl; in main()
[all …]
Dfind_root_example.cpp58 << cdf(complement(packs, max_weight)) << endl; // P(X > 3.1) in main()
62 << " is " << cdf(complement(packs, under_weight)) << endl; in main()
71 << " is " << cdf(complement(xpacks, under_weight)) << endl; in main()
81 << " is " << cdf(complement(nominal_packs, under_weight)) << endl; in main()
112 << " is " << cdf(complement(pack05, under_weight)) << endl; in main()
128 << " is " << cdf(complement(pack06, under_weight)) << endl; in main()
/third_party/boost/libs/math/test/compile_test/
Dtest_compile_result.hpp98 check_result<value_type>(cdf(complement(dist, x))); in constraints()
101 check_result<value_type>(quantile(complement(dist, x))); in constraints()
121 check_result<value_type>(cdf(complement(dist, f))); in constraints()
124 check_result<value_type>(quantile(complement(dist, f))); in constraints()
128 check_result<value_type>(cdf(complement(dist, d))); in constraints()
131 check_result<value_type>(quantile(complement(dist, d))); in constraints()
135 check_result<value_type>(cdf(complement(dist, l))); in constraints()
138 check_result<value_type>(quantile(complement(dist, l))); in constraints()
142 check_result<value_type>(cdf(complement(dist, i))); in constraints()
145 check_result<value_type>(quantile(complement(dist, i))); in constraints()
[all …]
Ddist_complement_incl_test.cpp18 boost::math::complement(f, f); in compile_and_link_test()
19 boost::math::complement(f, f, d); in compile_and_link_test()
20 boost::math::complement(f, f, d, l); in compile_and_link_test()
21 boost::math::complement(f, f, d, l, i); in compile_and_link_test()
Ddist_find_scale_incl_test.cpp54 …check_result<float>(boost::math::find_scale<test_distribution<float> >(boost::math::complement(f, … in compile_and_link_test()
55 …check_result<double>(boost::math::find_scale<test_distribution<double> >(boost::math::complement(d… in compile_and_link_test()
56 …(boost::math::find_scale<test_distribution<long double> >(boost::math::complement(l, l, l, boost::… in compile_and_link_test()
58 …check_result<float>(boost::math::find_scale<test_distribution<float> >(boost::math::complement(f, … in compile_and_link_test()
59 …check_result<double>(boost::math::find_scale<test_distribution<double> >(boost::math::complement(d… in compile_and_link_test()
60 …ouble>(boost::math::find_scale<test_distribution<long double> >(boost::math::complement(l, l, l))); in compile_and_link_test()
Ddist_find_location_incl_test.cpp54 …at>(boost::math::find_location<test_distribution<float> >(boost::math::complement(f, f, f, boost::… in compile_and_link_test()
55 …e>(boost::math::find_location<test_distribution<double> >(boost::math::complement(d, d, d, boost::… in compile_and_link_test()
56 …ost::math::find_location<test_distribution<long double> >(boost::math::complement(l, l, l, boost::… in compile_and_link_test()
58 …lt<float>(boost::math::find_location<test_distribution<float> >(boost::math::complement(f, f, f))); in compile_and_link_test()
59 …<double>(boost::math::find_location<test_distribution<double> >(boost::math::complement(d, d, d))); in compile_and_link_test()
60 …le>(boost::math::find_location<test_distribution<long double> >(boost::math::complement(l, l, l))); in compile_and_link_test()
/third_party/freetype/src/gxvalid/
Dgxvprop.c121 char complement; in gxv_prop_property_validate() local
131 complement = (char)( offset >> 8 ); in gxv_prop_property_validate()
132 if ( complement & 0x08 ) in gxv_prop_property_validate()
137 complement = (char)( ( complement & 0x07 ) + 1 ); in gxv_prop_property_validate()
140 if ( glyph <= complement ) in gxv_prop_property_validate()
149 gxv_glyphid_validate( (FT_UShort)( glyph + complement ), gxvalid ); in gxv_prop_property_validate()
/third_party/skia/third_party/externals/freetype/src/gxvalid/
Dgxvprop.c121 char complement; in gxv_prop_property_validate() local
131 complement = (char)( offset >> 8 ); in gxv_prop_property_validate()
132 if ( complement & 0x08 ) in gxv_prop_property_validate()
137 complement = (char)( ( complement & 0x07 ) + 1 ); in gxv_prop_property_validate()
140 if ( glyph <= complement ) in gxv_prop_property_validate()
149 gxv_glyphid_validate( (FT_UShort)( glyph + complement ), gxvalid ); in gxv_prop_property_validate()
/third_party/flutter/skia/third_party/externals/freetype/src/gxvalid/
Dgxvprop.c121 char complement; in gxv_prop_property_validate() local
131 complement = (char)( offset >> 8 ); in gxv_prop_property_validate()
132 if ( complement & 0x08 ) in gxv_prop_property_validate()
137 complement = (char)( ( complement & 0x07 ) + 1 ); in gxv_prop_property_validate()
140 if ( glyph <= complement ) in gxv_prop_property_validate()
149 gxv_glyphid_validate( (FT_UShort)( glyph + complement ), gxvalid ); in gxv_prop_property_validate()

12345678910>>...18