[Boost-bugs] [Boost C++ Libraries] #6805: Infinite loop in do_inverse_discrete_quantile(...)

Subject: [Boost-bugs] [Boost C++ Libraries] #6805: Infinite loop in do_inverse_discrete_quantile(...)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-04-18 10:36:42


#6805: Infinite loop in do_inverse_discrete_quantile(...)
----------------------------------------------+-----------------------------
 Reporter: torsten.hilgenberg@… | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: math
  Version: Boost 1.49.0 | Severity: Problem
 Keywords: distributions discrete quantiles |
----------------------------------------------+-----------------------------
 {{{
 #include <boost/math/distributions/binomial.hpp>
 using boost::math::binomial_distribution;
 using boost::math::policies::policy;
 using boost::math::policies::discrete_quantile;

 binomial_distribution<double,
 policy<discrete_quantile<boost::math::policies::integer_round_up> > >
 distribution(100, 1e-10);

 quantile(distribution, 0.99999999);
 }}}

 This goes into boost\math\distributions\detail\inv_discrete_quantile.hpp's
 do_inverse_discrete_quantile with guess < 10 and never comes back.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6805>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:09 UTC