| Home | Libraries | People | FAQ | More

## Struct template weighted_sum_kahan_impl

boost::accumulators::impl::weighted_sum_kahan_impl

## Synopsis

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

    template<typename Sample, typename Weight, typename Tag>
    struct weighted_sum_kahan_impl : public accumulator_base {
      // types
      typedef numeric::functional::multiplies< Sample, Weight >::result_type weighted_sample;
      typedef weighted_sample                                                result_type;

      // public member functions
      template<typename Args> weighted_sum_kahan_impl(Args const &);
      template<typename Args> void operator()(Args const &);
      result_type result(dont_care) const;
      template<typename Archive> void serialize(Archive &, const unsigned int);
    };

## Description

### `weighted_sum_kahan_impl` public member functions

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

2.     template<typename Args> void operator()(Args const & args);

3.     result_type result(dont_care) const;

4.     template<typename Archive>
         void serialize(Archive & ar, const unsigned int file_version);