Subject: [Boost-bugs] [Boost C++ Libraries] #5733: Uniform distribution complemented cdf wrong meaning
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-07-25 10:51:25
#5733: Uniform distribution complemented cdf wrong meaning
--------------------------------------+-------------------------------------
Reporter: mr.findmyphone@⦠| Owner:
Type: Bugs | Status: new
Milestone: To Be Determined | Component: None
Version: Boost 1.47.0 | Severity: Problem
Keywords: |
--------------------------------------+-------------------------------------
The bug occurs out of the bounds of the function
for x smaller than lower bound it returns 0.
for x greater than higher bound it return 1.
It should be vice versa.
It is also inconsistent with cdf regular function which returns te same
values (and not the complemented).
[Code]
if (x < lower)
{
return 0;
}
if (x > upper)
{
return 1;
}
[Code]
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5733> 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:07 UTC