ns3::MinMaxAvgTotalCalculator< T > Class Template Reference

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

List of all members.

Public Member Functions

void Update (const T i)
virtual void Output (DataOutputCallback &callback) const
long getCount () const
double getSum () const
double getMin () const
double getMax () const
double getMean () const
double getStddev () const
double getVariance () const
double getSqrSum () const

Protected Member Functions

virtual void DoDispose (void)

Protected Attributes

uint32_t m_count
m_total
m_min
m_max

template<typename T = uint32_t>
class ns3::MinMaxAvgTotalCalculator< T >


Member Function Documentation

template<typename T >
void ns3::MinMaxAvgTotalCalculator< T >::DoDispose ( void   )  [inline, protected, virtual]

This method is called by Object::Dispose or by the object's destructor, whichever comes first.

Subclasses are expected to implement their real destruction code in an overriden version of this method and chain up to their parent's implementation once they are done. i.e., for simplicity, the destructor of every subclass should be empty and its content should be moved to the associated DoDispose method.

It is safe to call GetObject from within this method.

Reimplemented from ns3::DataCalculator.

Reimplemented in ns3::PacketSizeMinMaxAvgTotalCalculator.

template<typename T = uint32_t>
long ns3::MinMaxAvgTotalCalculator< T >::getCount (  )  const [inline, virtual]

Returns the number of the observations.

Implements ns3::StatisticalSummary.

template<typename T = uint32_t>
double ns3::MinMaxAvgTotalCalculator< T >::getMax (  )  const [inline, virtual]

Returns the maximum of the values.

Implements ns3::StatisticalSummary.

template<typename T = uint32_t>
double ns3::MinMaxAvgTotalCalculator< T >::getMean (  )  const [inline, virtual]

Returns the mean of the (weighted) observations.

Implements ns3::StatisticalSummary.

template<typename T = uint32_t>
double ns3::MinMaxAvgTotalCalculator< T >::getMin (  )  const [inline, virtual]

Returns the minimum of the values.

Implements ns3::StatisticalSummary.

template<typename T = uint32_t>
double ns3::MinMaxAvgTotalCalculator< T >::getSqrSum (  )  const [inline, virtual]

Returns the sum of the squared values.

See also:
getWeightedSqrSum()

Implements ns3::StatisticalSummary.

template<typename T = uint32_t>
double ns3::MinMaxAvgTotalCalculator< T >::getStddev (  )  const [inline, virtual]

Returns the standard deviation of the (weighted) observations.

Implements ns3::StatisticalSummary.

template<typename T = uint32_t>
double ns3::MinMaxAvgTotalCalculator< T >::getSum (  )  const [inline, virtual]

Returns the sum of the values.

See also:
getWeightedSum()

Implements ns3::StatisticalSummary.

template<typename T = uint32_t>
double ns3::MinMaxAvgTotalCalculator< T >::getVariance (  )  const [inline, virtual]

Returns the variance of the (weighted) observations.

Implements ns3::StatisticalSummary.


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

Generated on 6 Jan 2011 for NS-3 by  doxygen 1.6.1