Subject: [Boost-bugs] [Boost C++ Libraries] #13254: extreme value distribution's mean/std fail for location=0
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-10-10 14:14:52
#13254: extreme value distribution's mean/std fail for location=0
------------------------------+--------------------------
Reporter: anonymous | Owner: John Maddock
Type: Bugs | Status: new
Milestone: To Be Determined | Component: math
Version: Boost 1.66.0 | Severity: Problem
Keywords: |
------------------------------+--------------------------
Extreme value distribution's mean and standard_deviation use both
`detail::check_scale` for location parameter a, which seems wrong, as
there's no limitation for location parameter a (besides being finite).
This causes even a standard extreme value distribution to fail:
{{{
BOOST_AUTO_TEST_CASE(checkScaleIssueMean)
{
boost::math::extreme_value_distribution<> G;
boost::math::mean(G);
}
BOOST_AUTO_TEST_CASE(checkScaleIssueStd)
{
boost::math::extreme_value_distribution<> G;
boost::math::standard_deviation(G);
}
}}}
with
{{{
std::domain_error: Error in function boost::math::mean(const
extreme_value_distribution<double>&): Scale parameter is 0, but must be >
0 !
std::domain_error: Error in function boost::math::standard_deviation(const
extreme_value_distribution<double>&): Scale parameter is 0, but must be >
0 !
}}}
-- Ticket URL: <https://svn.boost.org/trac10/boost/ticket/13254> 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-10-10 14:21:26 UTC