#include <measure.h>
Inheritance diagram for AvgMeasure:
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. | |
Population & | getPopulation (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< Population > | populations |
Array of populations. | |
std::vector< bool > | valid |
Bit array to check if the i-th entry of populations is valid. |