Celero
Public Member Functions | List of all members
celero::Statistics< T > Class Template Reference

#include <Statistics.h>

Public Member Functions

 Statistics ()=default
 Default constructor.
 
 Statistics (const Statistics &other)
 
Statistics operator+ (const Statistics< T > &other)
 
Statisticsoperator+= (const Statistics &other)
 
Statisticsoperator= (const Statistics &other)
 
void reset ()
 Resets all accumulated statistics.
 
void addSample (T x)
 Adds a statistical sample.
 
size_t getSize () const
 
double getMean () const
 
double getVariance () const
 
double getStandardDeviation () const
 
double getSkewness () const
 
double getKurtosis () const
 
double getZScore () const
 Computed as (mean - hypothesis)/standard_deviation. More...
 
getMin () const
 
getMax () const
 

Detailed Description

template<typename T = int64_t>
class celero::Statistics< T >

Author
John Farrier

Sources: http://www.johndcook.com/skewness_kurtosis.html http://en.wikipedia.org/wiki/Algorithms_for_calculating_variance http://prod.sandia.gov/techlib/access-control.cgi/2008/086212.pdf http://en.wikipedia.org/wiki/Kurtosis

Member Function Documentation

◆ getZScore()

template<typename T = int64_t>
double celero::Statistics< T >::getZScore ( ) const
inline

Computed as (mean - hypothesis)/standard_deviation.

Here, the hypothesis is our minimum value.


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