Simple average, min, max and std. More...
#include "average.h"
 Inheritance diagram for ns3::Average< T >:
 Inheritance diagram for ns3::Average< T >: Collaboration diagram for ns3::Average< T >:
 Collaboration diagram for ns3::Average< T >:| Public Member Functions | |
| Average () | |
| double | Avg () const | 
| Sample average. | |
| uint32_t | Count () const | 
| Sample size. | |
| T | Max () const | 
| Sample maximum. | |
| double | Mean () const | 
| Sample estimate of mean, alias to Avg. | |
| T | Min () const | 
| Sample minimum. | |
| void | Reset () | 
| Reset statistics. | |
| double | Stddev () const | 
| Sample standard deviation. | |
| void | Update (const T &x) | 
| Add new sample. | |
| double | Var () const | 
| Sample unbiased nbiased estimate of variance. | |
| Error of the mean estimates | |
| 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 | |
| T | m_max | 
| Maximum value observed. | |
| T | m_min | 
| Minimum value observed. | |
| uint32_t | m_size | 
| Number of sampled data. | |
| MinMaxAvgTotalCalculator< double > | m_varianceCalculator | 
| Variance calculator. | |
Simple average, min, max and std.
deviation calculator
| 
 | inline | 
| 
 | inline | 
Sample average.
Definition at line 107 of file average.h.
References ns3::MinMaxAvgTotalCalculator< T >::getMean(), and ns3::Average< T >::m_varianceCalculator.
Referenced by ns3::Average< T >::Mean(), and ns3::Ping::PrintReport().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | inline | 
Sample size.
Definition at line 80 of file average.h.
References ns3::Average< T >::m_size.
Referenced by OneIntegerAverageTestCase::DoRun(), FiveIntegersAverageTestCase::DoRun(), FiveDoublesAverageTestCase::DoRun(), ns3::Average< T >::Error90(), ns3::Average< T >::Error95(), ns3::Average< T >::Error99(), ns3::Ping::PrintReport(), and ns3::Ping::Send().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | inline | 
Margin of error of the mean for 90% confidence level.
Note that estimates are valid for
Definition at line 154 of file average.h.
References ns3::Average< T >::Count(), and ns3::Average< T >::Var().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | inline | 
Margin of error of the mean for 95% confidence level.
Note that estimates are valid for
Definition at line 169 of file average.h.
References ns3::Average< T >::Count(), and ns3::Average< T >::Var().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | inline | 
Margin of error of the mean for 99% confidence level.
Note that estimates are valid for
Definition at line 185 of file average.h.
References ns3::Average< T >::Count(), and ns3::Average< T >::Var().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | inline | 
Sample maximum.
Definition at line 98 of file average.h.
References ns3::Average< T >::m_max.
Referenced by OneIntegerAverageTestCase::DoRun(), FiveIntegersAverageTestCase::DoRun(), FiveDoublesAverageTestCase::DoRun(), ns3::Ping::PrintReport(), and ns3::Ping::Send().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | inline | 
Sample estimate of mean, alias to Avg.
Definition at line 116 of file average.h.
References ns3::Average< T >::Avg().
Referenced by OneIntegerAverageTestCase::DoRun(), FiveIntegersAverageTestCase::DoRun(), and FiveDoublesAverageTestCase::DoRun().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | inline | 
Sample minimum.
Definition at line 89 of file average.h.
References ns3::Average< T >::m_min.
Referenced by OneIntegerAverageTestCase::DoRun(), FiveIntegersAverageTestCase::DoRun(), FiveDoublesAverageTestCase::DoRun(), and ns3::Ping::PrintReport().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | inline | 
Reset statistics.
Definition at line 66 of file average.h.
References ns3::Average< T >::m_max, ns3::Average< T >::m_min, ns3::Average< T >::m_size, ns3::Average< T >::m_varianceCalculator, and ns3::MinMaxAvgTotalCalculator< T >::Reset().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | inline | 
Sample standard deviation.
Definition at line 134 of file average.h.
References ns3::Average< T >::Var().
Referenced by OneIntegerAverageTestCase::DoRun(), FiveIntegersAverageTestCase::DoRun(), FiveDoublesAverageTestCase::DoRun(), and ns3::Ping::PrintReport().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | inline | 
Add new sample.
| x | The sample | 
Definition at line 55 of file average.h.
References ns3::Average< T >::m_max, ns3::Average< T >::m_min, ns3::Average< T >::m_size, ns3::Average< T >::m_varianceCalculator, and ns3::MinMaxAvgTotalCalculator< T >::Update().
Referenced by OneIntegerAverageTestCase::DoRun(), FiveIntegersAverageTestCase::DoRun(), FiveDoublesAverageTestCase::DoRun(), and ns3::Ping::Receive().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | inline | 
Sample unbiased nbiased estimate of variance.
Definition at line 125 of file average.h.
References ns3::MinMaxAvgTotalCalculator< T >::getVariance(), and ns3::Average< T >::m_varianceCalculator.
Referenced by OneIntegerAverageTestCase::DoRun(), FiveIntegersAverageTestCase::DoRun(), FiveDoublesAverageTestCase::DoRun(), ns3::Average< T >::Error90(), ns3::Average< T >::Error95(), ns3::Average< T >::Error99(), and ns3::Average< T >::Stddev().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Maximum value observed.
Definition at line 195 of file average.h.
Referenced by ns3::Average< T >::Max(), ns3::Average< T >::Reset(), and ns3::Average< T >::Update().
| 
 | private | 
Minimum value observed.
Definition at line 194 of file average.h.
Referenced by ns3::Average< T >::Min(), ns3::Average< T >::Reset(), and ns3::Average< T >::Update().
| 
 | private | 
Number of sampled data.
Definition at line 193 of file average.h.
Referenced by ns3::Average< T >::Count(), ns3::Average< T >::Reset(), and ns3::Average< T >::Update().
| 
 | private | 
Variance calculator.
Definition at line 196 of file average.h.
Referenced by ns3::Average< T >::Avg(), ns3::Average< T >::Reset(), ns3::Average< T >::Update(), and ns3::Average< T >::Var().