Public Member Functions

ns3::Average< T > Class Template Reference

Simple average, min, max and std. deviation calculator. More...

#include <average.h>

Collaboration diagram for ns3::Average< T >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void Update (T const &x)
 Add new sample.
void Reset ()
 Reset statistics.
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.

Detailed Description

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

Simple average, min, max and std. deviation calculator.


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