Home
last modified time | relevance | path

Searched refs:negative_binomial (Results 1 – 24 of 24) sorted by relevance

/third_party/boost/libs/math/example/
Ddistribution_construction.cpp46 using boost::math::negative_binomial; // typedef provides default type is double.
102 using boost::math::negative_binomial; in main()
107 negative_binomial mydist(8., 0.25); in main()
112 negative_binomial mydist10(5., 0.4); // Both arguments double. in main()
116negative_binomial mydist11(5, 0.4); // Using provided typedef of type double, and int and double a… in main()
121 negative_binomial mydist12(5., 0.4F); // Double and float arguments. in main()
122 negative_binomial mydist13(5, 1); // Both arguments integer. in main()
Dpolicy_ref_snip6.cpp13 using boost::math::negative_binomial;
17 double x = quantile(negative_binomial(20, 0.3), 0.05); // rounded up 27 from 27.3898
19 double y = quantile(complement(negative_binomial(20, 0.3), 0.05)); // rounded down to 69 from 68.15…
Dneg_binom_confidence_limits.cpp23 using boost::math::negative_binomial;
91 double lower = negative_binomial::find_lower_bound_on_p(trials, successes, alpha[i]/2); in confidence_limits_on_frequency()
92 double upper = negative_binomial::find_upper_bound_on_p(trials, successes, alpha[i]/2); in confidence_limits_on_frequency()
Dneg_binomial_sample_sizes.cpp12 using boost::math::negative_binomial;
79 << (int)ceil(negative_binomial::find_minimum_number_of_trials(failures, p, alpha[i])) in find_number_of_trials()
Dnegative_binomial_example2.cpp14 using boost::math::negative_binomial; // typedef
38 negative_binomial mynbdist(8, 0.25); // Shorter method using typedef. in main()
Dnegative_binomial_example1.cpp57 using boost::math::negative_binomial; // typedef provides default type is double.
115 negative_binomial nb(sales_quota, success_fraction); // type double by default. in main()
Dgeometric_examples.cpp45 using boost::math::negative_binomial; // typedef provides default type is double.
138 negative_binomial nb(1, success_fraction); in main()
/third_party/boost/libs/random/test/
Dtest_negative_binomial.cpp18 #define BOOST_RANDOM_DISTRIBUTION_NAME negative_binomial
19 #define BOOST_MATH_DISTRIBUTION boost::math::negative_binomial
/third_party/boost/libs/math/doc/distributions/
Dnegative_binomial.qbk3 ``#include <boost/math/distributions/negative_binomial.hpp>``
11 typedef negative_binomial_distribution<> negative_binomial;
50 [@http://en.wikipedia.org/wiki/Negative_binomial_distribution negative_binomial distribution]:
56 negative_binomial distribution gives the probability of observing
58 The negative_binomial distribution
103 geometric(p) = negative_binomial(1, p).
107 poisson([lambda]) = lim [sub r [rarr] [infin]] negative_binomial(r, r / ([lambda] + r)))
279 ``pdf(negative_binomial(r, p), k)``]]
284 ``cdf(negative_binomial(r, p), k)``]]
289 ``cdf(complement(negative_binomial(r, p), k))``]]
[all …]
Dgeometric_example.qbk10 [link math_toolkit.stat_tut.weg.neg_binom_eg.neg_binom_conf See negative_binomial confidence interv…
Dgeometric.qbk96 __spaces `geometric(p) == negative_binomial(1, p)`
99 negative_binomial nb(1, success_fraction);
163 [link math_toolkit.stat_tut.weg.neg_binom_eg.neg_binom_conf See negative_binomial confidence interv…
Ddist_reference.qbk27 [include negative_binomial.qbk]
Dnegative_binomial_example.qbk111 floor(negative_binomial::find_minimum_number_of_trials(failures, p, alpha[i]))
/third_party/boost/libs/math/reporting/performance/
Dtest_distributions.cpp460 distribution_tester negative_binomial("NegativeBinomial"); in main() local
461negative_binomial.add_test_case(5, 0.125, two_param_quantile<boost::math::negative_binomial_distri… in main()
462negative_binomial.add_test_case(200, 0.75, two_param_quantile<boost::math::negative_binomial_distr… in main()
463negative_binomial.add_test_case(2000, 0.001, two_param_quantile<boost::math::negative_binomial_dis… in main()
464negative_binomial.add_test_case(20000, 0.5, two_param_quantile<boost::math::negative_binomial_dist… in main()
465negative_binomial.add_test_case(200000, 0.99, two_param_quantile<boost::math::negative_binomial_di… in main()
467 test_boost_2_param<boost::math::negative_binomial_distribution>(negative_binomial); in main()
610negative_binomial.run_timed_tests([](const std::vector<double>& v, double x) { return gsl_cdf_neg… in main()
678negative_binomial.run_timed_tests([](const std::vector<double>& v, double x) { return dnbinom(x, … in main()
679negative_binomial.run_timed_tests([](const std::vector<double>& v, double x) { return pnbinom(x, … in main()
[all …]
/third_party/boost/libs/math/test/compile_test/
Dtest_traits.cpp25 BOOST_STATIC_ASSERT(::boost::math::tools::is_distribution<negative_binomial>::value);
47 BOOST_STATIC_ASSERT(::boost::math::tools::is_scaled_distribution<negative_binomial>::value == false…
Ddist_neg_binom_incl_test.cpp18 TEST_DIST_FUNC(negative_binomial) in compile_and_link_test()
Dinstantiate.hpp146 function_requires<DistributionConcept<dist_test::negative_binomial > >(); in instantiate()
/third_party/boost/libs/random/doc/
Ddistribution_performance_linux.qbk8 [[negative_binomial][1.69549][2.29305][1.65563][2.45098]]
Ddistribution_performance_windows.qbk8 [[negative_binomial][2.79065][3.99138][2.73358][3.72898]]
/third_party/boost/boost/math/distributions/
Dfwd.hpp138 typedef boost::math::negative_binomial_distribution<Type, Policy> negative_binomial;\
Dnegative_binomial.hpp257 … typedef negative_binomial_distribution<double> negative_binomial; // Reserved name of type double. typedef
/third_party/boost/libs/math/test/
Dtest_negative_binomial.cpp225 using ::boost::math::negative_binomial; in test_spots()
807 negative_binomial mynb1(2., 0.5); // Using typedef - default type is double. in BOOST_AUTO_TEST_CASE()
/third_party/boost/libs/math/dot_net_example/distribution_explorer/
Dreadme.txt31 * negative_binomial
/third_party/boost/libs/math/doc/policies/
Dpolicy.qbk369 cdf(negative_binomial(20), x) <= 0.05
370 cdf(negative_binomial(20), y) >= 0.95
393 cdf(negative_binomial(20), x) >= 0.05
394 cdf(negative_binomial(20), y) <= 0.95