Opened 10 years ago
Closed 10 years ago
#6939 closed Bugs (fixed)
pdf(weibull(shape, scale), 0) == 0 even if shape <= 1
| Reported by: | Owned by: | John Maddock | |
|---|---|---|---|
| Milestone: | Boost 1.51.0 | Component: | math |
| Version: | Boost 1.49.0 | Severity: | Problem |
| Keywords: | Cc: | pbristow@… |
Description
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.
Example:
#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:
0 0
Change History (2)
comment:1 by , 10 years ago
| Cc: | added |
|---|---|
| Milestone: | To Be Determined → Boost 1.51.0 |
| Status: | new → assigned |
comment:2 by , 10 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.

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