Modify

Ticket #5733 (closed Bugs: fixed)

Opened 3 years ago

Last modified 3 years ago

Uniform distribution complemented cdf wrong meaning

Reported by: mr.findmyphone@… Owned by: pbristow
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]

Attachments

Change History

comment:1 Changed 3 years ago by anonymous

  • Owner set to johnmaddock
  • Component changed from None to math

comment:2 Changed 3 years ago by johnmaddock

  • Cc pbristow@… added

Paul, was this one one of yours?

comment:3 Changed 3 years ago by pbristow

  • Owner changed from johnmaddock to pbristow
  • Version changed from Boost 1.47.0 to Boost Development Trunk
  • Milestone changed from To Be Determined to Boost 1.48.0

Confirmed and uniform.hpp and test_uniform.cpp corrected in trunk. Completed: At revision: 73360

comment:4 Changed 3 years ago by pbristow

  • Keywords uniform cdf complemented added
  • Status changed from new to closed
  • Resolution set to fixed
View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.