Statistics › Moments ›
Statistics
Calculates the statistics for a set of data that may change size frequently.
Controller: CodeCogs
Contents
Interface
C++
Statistics
template<...> classStatistics( | ) |
A C# version of this class is available when you obtain a licence
References:
Example 1
#include <codecogs/statistics/moments/statistics.h> #include <iostream> int main() { double a[15]; for (int i = 0; i < 15; i++) a[i]=i+1; a[1]=5; Stats::Moments::Statistics<double> stats(15, a); stats.print(); return 0; }
Output:Total = 123.0000000000 Arithmetic Mean = 8.2000000000 Geometric Mean = 6.8280387111 Harmonic Mean = 4.9698018386 Variance = 18.0285714286 Standard Deviation = 4.2460065271 Skewness = 0.0403100873 Kurtosis = -1.0487842858
Authors
- Anca Filibiu (August 2005)
Source Code
Source code is available when you buy a Commercial licence.
Not a member, then Register with CodeCogs. Already a Member, then Login.