Boost C++ Libraries: Ticket #13254: extreme value distribution's mean/std fail for location=0 https://svn.boost.org/trac10/ticket/13254 <p> Extreme value distribution's mean and standard_deviation use both <code>detail::check_scale</code> for location parameter a, which seems wrong, as there's no limitation for location parameter a (besides being finite). </p> <p> This causes even a standard extreme value distribution to fail: </p> <pre class="wiki">BOOST_AUTO_TEST_CASE(checkScaleIssueMean) { boost::math::extreme_value_distribution&lt;&gt; G; boost::math::mean(G); } BOOST_AUTO_TEST_CASE(checkScaleIssueStd) { boost::math::extreme_value_distribution&lt;&gt; G; boost::math::standard_deviation(G); } </pre><p> with </p> <pre class="wiki">std::domain_error: Error in function boost::math::mean(const extreme_value_distribution&lt;double&gt;&amp;): Scale parameter is 0, but must be &gt; 0 ! std::domain_error: Error in function boost::math::standard_deviation(const extreme_value_distribution&lt;double&gt;&amp;): Scale parameter is 0, but must be &gt; 0 ! </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13254 Trac 1.4.3 John Maddock Tue, 31 Jul 2018 17:54:07 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/13254#comment:1 https://svn.boost.org/trac10/ticket/13254#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">obsolete</span> </li> </ul> <p> Moved to <a class="ext-link" href="https://github.com/boostorg/math/issues/139"><span class="icon">​</span>https://github.com/boostorg/math/issues/139</a> </p> Ticket