Main Page | Class Hierarchy | Class List | File List | Class Members

AvgMeasure Class Reference

An AvgMeasure is a set of populations for averaged metrics. More...

#include <measure.h>

Inheritance diagram for AvgMeasure:

Object List of all members.

Public Member Functions

 AvgMeasure ()
 Create an emptry AvgMeasure.

 ~AvgMeasure ()
 Do nothing.

void addSample (sample_t x, unsigned int id)
 Add a sample to a population.

PopulationgetPopulation (unsigned int id)
 Return the population of a given index.

bool getValid (unsigned int id)
 Return true if the population with a given index exists.

unsigned int getSize () const
 Return the number of populations in this measure.


Private Attributes

std::vector< Populationpopulations
 Array of populations.

std::vector< bool > valid
 Bit array to check if the i-th entry of populations is valid.


Detailed Description

An AvgMeasure is a set of populations for averaged metrics.


The documentation for this class was generated from the following files:
Generated on Tue May 30 08:09:56 2006 for ns2measure by doxygen 1.3.7