Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8491: boost::random::discrete_distribution ignores the first element
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-05-29 21:38:05
#8491: boost::random::discrete_distribution ignores the first element
------------------------------------+---------------------------------------
Reporter: astralstorm@⦠| Owner: no-maintainer
Type: Bugs | Status: reopened
Milestone: To Be Determined | Component: random
Version: Boost 1.53.0 | Severity: Showstopper
Resolution: | Keywords:
------------------------------------+---------------------------------------
Changes (by anonymous):
* status: closed => reopened
* resolution: invalid =>
Comment:
The weights are not negative in this testcase - the probs array is
actually printed out. Please run the testcase. It offsets them so that
they become non-negative.
For negative weights, such a normalization should be done within boost
anyway I think, but then the special value would have to be -infty instead
of 0 to give probability 0, which is an API change.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/8491#comment:2> 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:13 UTC