You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
0
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<std::runtime_error> >'
what(): index n = 3 is not in valid range [0, 3)
Aborted (core dumped)
Consider the following program:
On my machine it outputs
Notice that the result for
quantile_probability = 0
is wrong too. Digging into https://www.boost.org/doc/libs/1_70_0/boost/accumulators/statistics/tail_quantile.hpp, I found that index -1 is accessed whenquantile_probability = 0
.The simplest fix seems to be:
Change
to
with the caveat that exception would be thrown when
quantile_probability = 0
.The text was updated successfully, but these errors were encountered: