Statistics › Moments ›
Kurtosis
Calculates the kurtosis of a given set of data.
Controller: CodeCogs 
Contents
Dependents

Interface
C++
Kurtosis
template<class T> doublekurtosis( | int | n | |
T* | data | ) |
References:
NIST/SEMATECH e-Handbook of Statistical Methods, http://www.itl.nist.gov/div898/handbook/eda/section3/eda35b.htmExample 1
#include <codecogs/statistics/moments/kurtosis.h> #include <iostream> int main() { float x[5] = {3.4 , 7.1 , 1.5 , 8.6 , 4.9}; double kurt = Stats::Moments::kurtosis<float>(5, x); std::cout << "The population kurtosis is: " << kurt << std::endl; return 0; }
Output:The population kurtosis is: -0.928457
Parameters
n the size of the population data the actual population data given as an array
Returns
- the kurtosis of the given set of data
Authors
- Anca Filibiu (August 2005)
Source Code
Source code is available when you agree to a GP Licence or buy a Commercial Licence.
Not a member, then Register with CodeCogs. Already a Member, then Login.
Last Modified: 22 Dec 11 @ 01:06 Page Rendered: 2022-03-14 00:09:52