Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::accumulators::impl::with_density_median_impl< Sample > Struct Template Reference

Median estimation based on the density estimator. More...

#include <statistics_fwd.hpp>

Inheritance diagram for boost::accumulators::impl::with_density_median_impl< Sample >:
Collaboration diagram for boost::accumulators::impl::with_density_median_impl< Sample >:

Public Types

typedef
numeric::functional::fdiv
< Sample, std::size_t >
::result_type 
float_type
 
typedef std::vector< std::pair
< float_type, float_type > > 
histogram_type
 
typedef iterator_range
< typename
histogram_type::iterator > 
range_type
 
typedef float_type result_type
 
typedef mpl::false_ is_droppable
 

Public Member Functions

template<typename Args >
 with_density_median_impl (Args const &args)
 
void operator() (dont_care)
 
template<typename Args >
result_type result (Args const &args) const
 
detail::void_ add_ref (dont_care)
 
detail::void_ drop (dont_care)
 
detail::void_ on_drop (dont_care)
 

Detailed Description

template<typename Sample>
struct boost::accumulators::impl::with_density_median_impl< Sample >

Median estimation based on the density estimator.

The algorithm determines the bin in which the $0.5*cnt$-th sample lies, $cnt$ being the total number of samples. It returns the approximate horizontal position of this sample, based on a linear interpolation inside the bin.

Member Typedef Documentation

template<typename Sample >
typedef numeric::functional::fdiv<Sample, std::size_t>::result_type boost::accumulators::impl::with_density_median_impl< Sample >::float_type
template<typename Sample >
typedef std::vector<std::pair<float_type, float_type> > boost::accumulators::impl::with_density_median_impl< Sample >::histogram_type
template<typename Sample >
typedef iterator_range<typename histogram_type::iterator> boost::accumulators::impl::with_density_median_impl< Sample >::range_type
template<typename Sample >
typedef float_type boost::accumulators::impl::with_density_median_impl< Sample >::result_type

Constructor & Destructor Documentation

template<typename Sample >
template<typename Args >
boost::accumulators::impl::with_density_median_impl< Sample >::with_density_median_impl ( Args const &  args)
inline

Member Function Documentation

detail::void_ boost::accumulators::accumulator_base::add_ref ( dont_care  )
inlineinherited
detail::void_ boost::accumulators::accumulator_base::drop ( dont_care  )
inlineinherited
detail::void_ boost::accumulators::accumulator_base::on_drop ( dont_care  )
inlineinherited
template<typename Sample >
void boost::accumulators::impl::with_density_median_impl< Sample >::operator() ( dont_care  )
inline

The documentation for this struct was generated from the following file: