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::lazy_weighted_variance_impl< Sample, Weight, MeanFeature > Struct Template Reference

Lazy calculation of variance of weighted samples. More...

#include <statistics_fwd.hpp>

Inheritance diagram for boost::accumulators::impl::lazy_weighted_variance_impl< Sample, Weight, MeanFeature >:
Collaboration diagram for boost::accumulators::impl::lazy_weighted_variance_impl< Sample, Weight, MeanFeature >:

Public Types

typedef
numeric::functional::multiplies
< Sample, Weight >
::result_type 
weighted_sample
 
typedef
numeric::functional::fdiv
< weighted_sample, Weight >
::result_type 
result_type
 
typedef mpl::false_ is_droppable
 

Public Member Functions

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

Detailed Description

template<typename Sample, typename Weight, typename MeanFeature>
struct boost::accumulators::impl::lazy_weighted_variance_impl< Sample, Weight, MeanFeature >

Lazy calculation of variance of weighted samples.

The default implementation of the variance of weighted samples is based on the second moment $\widehat{m}_n^{(2)}$ (weighted_moment<2>) and the mean $ \hat{\mu}_n$ (weighted_mean):

\[ \hat{\sigma}_n^2 = \widehat{m}_n^{(2)}-\hat{\mu}_n^2, \]

where $n$ is the number of samples.

Member Typedef Documentation

template<typename Sample , typename Weight , typename MeanFeature >
typedef numeric::functional::fdiv<weighted_sample, Weight>::result_type boost::accumulators::impl::lazy_weighted_variance_impl< Sample, Weight, MeanFeature >::result_type
template<typename Sample , typename Weight , typename MeanFeature >
typedef numeric::functional::multiplies<Sample, Weight>::result_type boost::accumulators::impl::lazy_weighted_variance_impl< Sample, Weight, MeanFeature >::weighted_sample

Constructor & Destructor Documentation

template<typename Sample , typename Weight , typename MeanFeature >
boost::accumulators::impl::lazy_weighted_variance_impl< Sample, Weight, MeanFeature >::lazy_weighted_variance_impl ( dont_care  )
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
detail::void_ boost::accumulators::accumulator_base::operator() ( dont_care  )
inlineinherited
template<typename Sample , typename Weight , typename MeanFeature >
template<typename Args >
result_type boost::accumulators::impl::lazy_weighted_variance_impl< Sample, Weight, MeanFeature >::result ( Args const &  args) const
inline

References boost::python::args().


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