#include <metric_stat.h>

Public Member Functions

 metric_stat (const float mean=std::numeric_limits< float >::quiet_NaN(), const float stddev=std::numeric_limits< float >::quiet_NaN(), const float median=std::numeric_limits< float >::quiet_NaN())
 
void clear ()
 
void mean (const float val)
 
void stddev (const float val)
 
void median (const float val)
 
float mean () const
 
float stddev () const
 
float median () const
 

Protected Attributes

float m_mean
 
float m_stddev
 
float m_median
 

Friends

template<class MetricType , int Version>
struct io::generic_layout
 

Detailed Description

Simple statistics describing a set of metrics

Constructor & Destructor Documentation

metric_stat ( const float  mean = std::numeric_limits<float>::quiet_NaN(),
const float  stddev = std::numeric_limits<float>::quiet_NaN(),
const float  median = std::numeric_limits<float>::quiet_NaN() 
)
inline

Constructor

Parameters
meanmean value over several metrics
stddevstandard deviation over several metrics
medianmedian over several metrics

Member Function Documentation

void clear ( )
inline

Clear the stat variables

void mean ( const float  val)
inline

Set the mean value

Parameters
valmean value
void median ( const float  val)
inline

Set the median value

Parameters
valmedian value
void stddev ( const float  val)
inline

Set the standard deviation value

Parameters
valstandard deviation value

Friends And Related Function Documentation

friend struct io::generic_layout
friend

Member Data Documentation

float m_mean
protected

Mean value

float m_median
protected

Median value

float m_stddev
protected

Standard deviation value


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