...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::accumulators::impl::tail_variate_means_impl — Estimation of the absolute and relative tail variate means (for both left and right tails).
// In header: <boost/accumulators/statistics/tail_variate_means.hpp> template<typename Sample, typename Impl, typename LeftRight, typename VariateTag> struct tail_variate_means_impl { // types typedef numeric::functional::average< Sample, std::size_t >::result_type float_type; typedef std::vector< float_type > array_type; typedef iterator_range< typename array_type::iterator > result_type; // construct/copy/destruct tail_variate_means_impl(dont_care); // public member functions template<typename Args> result_type result(Args const &) const; };
For all -th variates associated to the largest samples (or the smallest samples in case of the left tail), the absolute tail means are computed and returned as an iterator range. Alternatively, the relative tail means are returned, which are the absolute tail means normalized with the (non-coherent) sample tail mean .