A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ns3::Average< T > Class Template Reference

#include <average.h>

Public Member Functions

void Reset ()
 Reset statistics.
 
void Update (T const &x)
 Add new sample.
 
Sample statistics
uint32_t Count () const
 Sample size.
 
Min () const
 Minimum.
 
Max () const
 Maximum.
 
double Avg () const
 Sample average.
 
double Mean () const
 Estimate of mean, alias to Avg.
 
double Var () const
 Unbiased estimate of variance.
 
double Stddev () const
 Standard deviation.
 
Error of the mean estimates

Note that estimates are valid for

  • uncorrelated measurements,
  • normal distribution and
  • large enough sample size.
double Error90 () const
 Margin of error of the mean for 90% confidence level.
 
double Error95 () const
 Margin of error of the mean for 95% confidence level.
 
double Error99 () const
 Margin of error of the mean for 99% confidence level.
 

Private Attributes

m_max
 
m_min
 
uint32_t m_size
 
MinMaxAvgTotalCalculator< double > m_varianceCalculator
 

Detailed Description

template<typename T = double>
class ns3::Average< T >

Simple average, min, max and std. deviation calculator

Definition at line 45 of file average.h.


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