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

Kurtosis estimation for weighted samples. More...

#include <statistics_fwd.hpp>

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

Public Types

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

Public Member Functions

 weighted_kurtosis_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>
struct boost::accumulators::impl::weighted_kurtosis_impl< Sample, Weight >

Kurtosis estimation for weighted samples.

The kurtosis of a sample distribution is defined as the ratio of the 4th central moment and the square of the 2nd central moment (the variance) of the samples, minus 3. The term $ -3 $ is added in order to ensure that the normal distribution has zero kurtosis. The kurtosis can also be expressed by the simple moments:

\[ \hat{g}_2 = \frac {\widehat{m}_n^{(4)}-4\widehat{m}_n^{(3)}\hat{\mu}_n+6\widehat{m}_n^{(2)}\hat{\mu}_n^2-3\hat{\mu}_n^4} {\left(\widehat{m}_n^{(2)} - \hat{\mu}_n^{2}\right)^2} - 3, \]

where $ \widehat{m}_n^{(i)} $ are the $ i $-th moment and $ \hat{\mu}_n $ the mean (first moment) of the $ n $ samples.

The kurtosis estimator for weighted samples is formally identical to the estimator for unweighted samples, except that the weighted counterparts of all measures it depends on are to be taken.

Member Typedef Documentation

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

Constructor & Destructor Documentation

template<typename Sample , typename Weight >
boost::accumulators::impl::weighted_kurtosis_impl< Sample, Weight >::weighted_kurtosis_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 >
template<typename Args >
result_type boost::accumulators::impl::weighted_kurtosis_impl< Sample, Weight >::result ( Args const &  args) const
inline

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