...one of the most highly
regarded and expertly designed C++ library projects in the
world.

— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards

boost::accumulators::impl::kurtosis_impl — Kurtosis estimation.

// In header: <boost/accumulators/statistics/kurtosis.hpp>template<typenameSample>structkurtosis_impl {// typestypedefnumeric::functional::average< Sample, Sample >::result_type result_type;// construct/copy/destructkurtosis_impl(dont_care);// public member functionstemplate<typenameArgs> result_type result(Argsconst&)const; };

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 is added in order to ensure that the normal distribution has zero kurtosis. The kurtosis can also be expressed by the simple moments:

where are the -th moment and the mean (first moment) of the samples.