metric_average Class Reference

#include <metric_average.h>

Public Member Functions

 metric_average ()
 
metric_averageoperator+= (const float val)
 
 operator float () const
 
float average () const
 

Detailed Description

Keep a running average of a metric

Constructor & Destructor Documentation

metric_average ( )
inline

Constructor

Member Function Documentation

float average ( ) const
inline

Compute current average

Returns
current average
operator float ( ) const
inline

Compute current average

Returns
current average
metric_average& operator+= ( const float  val)
inline

Add another value to the average

Parameters
valsource value for average
Returns
reference to this object

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