Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Struct template weighted_variance_impl

boost::accumulators::impl::weighted_variance_impl — Iterative calculation of variance of weighted samples.

Synopsis

// In header: <boost/accumulators/statistics/weighted_variance.hpp>

template<typename Sample, typename Weight, typename MeanFeature, typename Tag> 
struct weighted_variance_impl : public  {
  // types
  typedef     ;
  typedef  ;    

  // construct/copy/destruct
  template<typename Args> ();

  // public member functions
  template<typename Args>  ();
   () ;
  template<typename Archive>  (, );
};

Description

Iterative calculation of variance of weighted samples:

Equation 1.49. 


where is the sum of the weights and the estimate of the mean of the weighted samples. Note that the sample variance is not defined for .

weighted_variance_impl public construct/copy/destruct

  1. template<typename Args> ( args);

weighted_variance_impl public member functions

  1. template<typename Args>  ( args);
  2.  () ;
  3. template<typename Archive> 
       ( ar,  file_version);

PrevUpHomeNext