Opened 6 years ago

Closed 6 years ago

#6939 closed Bugs (fixed)

pdf(weibull(shape, scale), 0) == 0 even if shape <= 1

Reported by: Florian Schoppmann <Florian.Schoppmann@…> Owned by: John Maddock
Milestone: Boost 1.51.0 Component: math
Version: Boost 1.49.0 Severity: Problem
Keywords: Cc: pbristow@…


If shape == 1, then we should have pdf(weibull(shape, scale), 0) == 1 and if shape < 1, cdf(weibull(shape, scale), 0) should call raise_overflow_error.


#include <boost/math/distributions/weibull.hpp>
using namespace boost::math;
int main() {
    std::cout << pdf(weibull(0.5), 0) << std::endl
     << pdf(weibull(1), 0) << std::endl;

This prints:


Attachments (0)

Change History (2)

comment:1 Changed 6 years ago by John Maddock

Cc: pbristow@… added
Milestone: To Be DeterminedBoost 1.51.0
Status: newassigned

comment:2 Changed 6 years ago by John Maddock

Resolution: fixed
Status: assignedclosed

(In [78723]) Tighten Weibull distro tests. Fix corner cases in Weibull distro. Fixes #6939. Fixes #6938.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain John Maddock.
The resolution will be deleted.

Add Comment

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

Note: See TracTickets for help on using tickets.