Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.

Struct template median_impl

boost::accumulators::impl::median_impl — Median estimation based on the quantile estimator.


template<typename Sample> 
struct median_impl {
  // types
  typedef numeric::functional::average< Sample, std::size_t >::result_type result_type;

  // construct/copy/destruct

  // public member functions
  template<typename Args> result_type result(Args const &) const;


The algorithm is invoked with a quantile probability of 0.5.

median_impl public construct/copy/destruct

  1. median_impl(dont_care);

median_impl public member functions

  1. template<typename Args> result_type result(Args const & args) const;