Simple average, min, max and std. More...
#include <average.h>
Inheritance diagram for ns3::Average< T >:
Collaboration diagram for ns3::Average< T >:Public Member Functions | |
| Average () | |
| double | Avg () const |
| Sample average. More... | |
| uint32_t | Count () const |
| Sample size. More... | |
| T | Max () const |
| Maximum. More... | |
| double | Mean () const |
| Estimate of mean, alias to Avg. More... | |
| T | Min () const |
| Minimum. More... | |
| void | Reset () |
| Reset statistics. More... | |
| double | Stddev () const |
| Standard deviation. More... | |
| void | Update (T const &x) |
| Add new sample. More... | |
| double | Var () const |
| Unbiased estimate of variance. More... | |
Error of the mean estimates | |
| double | Error90 () const |
| Margin of error of the mean for 90% confidence level. More... | |
| double | Error95 () const |
| Margin of error of the mean for 95% confidence level. More... | |
| double | Error99 () const |
| Margin of error of the mean for 99% confidence level. More... | |
Private Attributes | |
| T | m_max |
| Maximum value observed. More... | |
| T | m_min |
| Minimum value observed. More... | |
| uint32_t | m_size |
| Number of sampled data. More... | |
| MinMaxAvgTotalCalculator< double > | m_varianceCalculator |
| Variance calculator. More... | |
Simple average, min, max and std.
deviation calculator
|
inline |
|
inline |
Sample average.
Definition at line 76 of file average.h.
Referenced by ns3::Average< double >::Mean(), and ns3::V4Ping::StopApplication().
Here is the caller graph for this function:
|
inline |
Sample size.
Definition at line 70 of file average.h.
Referenced by OneIntegerAverageTestCase::DoRun(), FiveIntegersAverageTestCase::DoRun(), FiveDoublesAverageTestCase::DoRun(), ns3::Average< double >::Error90(), ns3::Average< double >::Error95(), ns3::Average< double >::Error99(), and ns3::V4Ping::StopApplication().
Here is the caller graph for this function:
|
inline |
|
inline |
|
inline |
|
inline |
Maximum.
Definition at line 74 of file average.h.
Referenced by OneIntegerAverageTestCase::DoRun(), FiveIntegersAverageTestCase::DoRun(), FiveDoublesAverageTestCase::DoRun(), and ns3::V4Ping::StopApplication().
Here is the caller graph for this function:
|
inline |
Estimate of mean, alias to Avg.
Definition at line 78 of file average.h.
Referenced by OneIntegerAverageTestCase::DoRun(), FiveIntegersAverageTestCase::DoRun(), and FiveDoublesAverageTestCase::DoRun().
Here is the caller graph for this function:
|
inline |
Minimum.
Definition at line 72 of file average.h.
Referenced by OneIntegerAverageTestCase::DoRun(), FiveIntegersAverageTestCase::DoRun(), FiveDoublesAverageTestCase::DoRun(), and ns3::V4Ping::StopApplication().
Here is the caller graph for this function:
|
inline |
|
inline |
Standard deviation.
Definition at line 82 of file average.h.
Referenced by OneIntegerAverageTestCase::DoRun(), FiveIntegersAverageTestCase::DoRun(), FiveDoublesAverageTestCase::DoRun(), and ns3::V4Ping::StopApplication().
Here is the caller graph for this function:
|
inline |
Add new sample.
Definition at line 49 of file average.h.
Referenced by OneIntegerAverageTestCase::DoRun(), FiveIntegersAverageTestCase::DoRun(), FiveDoublesAverageTestCase::DoRun(), and ns3::V4Ping::Receive().
Here is the caller graph for this function:
|
inline |
Unbiased estimate of variance.
Definition at line 80 of file average.h.
Referenced by OneIntegerAverageTestCase::DoRun(), FiveIntegersAverageTestCase::DoRun(), FiveDoublesAverageTestCase::DoRun(), ns3::Average< double >::Error90(), ns3::Average< double >::Error95(), ns3::Average< double >::Error99(), and ns3::Average< double >::Stddev().
Here is the caller graph for this function:
|
private |
Maximum value observed.
Definition at line 121 of file average.h.
Referenced by ns3::Average< double >::Max(), ns3::Average< double >::Reset(), and ns3::Average< double >::Update().
|
private |
Minimum value observed.
Definition at line 120 of file average.h.
Referenced by ns3::Average< double >::Min(), ns3::Average< double >::Reset(), and ns3::Average< double >::Update().
|
private |
Number of sampled data.
Definition at line 119 of file average.h.
Referenced by ns3::Average< double >::Count(), ns3::Average< double >::Reset(), and ns3::Average< double >::Update().
|
private |
Variance calculator.
Definition at line 122 of file average.h.
Referenced by ns3::Average< double >::Avg(), ns3::Average< double >::Reset(), ns3::Average< double >::Update(), and ns3::Average< double >::Var().