Opened 11 years ago
Closed 11 years ago
#5733 closed Bugs (fixed)
Uniform distribution complemented cdf wrong meaning
Reported by: | Owned by: | Paul A. Bristow | |
---|---|---|---|
Milestone: | Boost 1.48.0 | Component: | math |
Version: | Boost Development Trunk | Severity: | Problem |
Keywords: | uniform cdf complemented | Cc: | pbristow@… |
Description
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]
Change History (4)
comment:1 by , 11 years ago
Component: | None → math |
---|---|
Owner: | set to |
comment:2 by , 11 years ago
Cc: | added |
---|
comment:3 by , 11 years ago
Milestone: | To Be Determined → Boost 1.48.0 |
---|---|
Owner: | changed from | to
Version: | Boost 1.47.0 → Boost Development Trunk |
Confirmed and uniform.hpp and test_uniform.cpp corrected in trunk. Completed: At revision: 73360
comment:4 by , 11 years ago
Keywords: | uniform cdf complemented added |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Paul, was this one one of yours?