Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9966: exponential_distribution returns negative zero
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-02-27 23:13:00
#9966: exponential_distribution returns negative zero
-------------------------------+---------------------------
Reporter: mazzamuto@⦠| Owner: no-maintainer
Type: Bugs | Status: new
Milestone: To Be Determined | Component: random
Version: Boost 1.48.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+---------------------------
Comment (by steven_watanabe):
It looks like all standard library implementations are essentially similar
to Boost.Random. I checked msvc 2013, gcc 4.8.3, and libc++ ToT. The
only difference is that libstdc++ and libc++ use generate_canonical. They
all use -log(1 - X)/lambda were X is a uniform variate in [0, 1) and can
therefore produce the value 0.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/9966#comment:7> 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:18 UTC