Holder of data grouped into pre-determined width bins. More...
#include <histo.h>
Public Types | |
|
typedef std::map< HistoBinType, HistoCountType >::iterator | histo_itr |
| Iterator over the histogram bins. | |
Public Member Functions | |
| Histogram (const std::string name, HistoBinType binW) | |
| Creates a new bin with a specific bin width. | |
| Histogram (const char *name, HistoBinType binW) | |
| Creates a new bin with a specific bin width. | |
| void | add (HistoBinType value) |
| Adds a new value to the histogram. | |
| HistoCountType | getBinCount () |
| Count how many bins are active in this histogram. | |
| HistoBinType | getBinWidth () |
| Get the width of a bin in this histogram. | |
| HistoCountType | getBinCountByBinStart (HistoBinType v) |
| Get the count of items in the bin by the start value (e.g. | |
| HistoBinType | getBinStart () |
| Get the smallest start value of a bin in this histogram (i.e. | |
| HistoBinType | getBinEnd () |
| Get the largest possible value represented by this histogram (i.e. | |
| HistoCountType | getItemCount () |
| Get the total number of items contained in all bins. | |
| HistoBinType | getValuesSummed () |
| Sum up every item presented for storage in the histogram. | |
Holder of data grouped into pre-determined width bins.
| HistoBinType | is the type of the data held in each bin (i.e. what data type described the width of the bin) | |
| HistoCountType | is the count type of data held in each bin (i.e. what data type counts the number of items held in the bin itself) |
| SST::Statistics::Histogram< HistoBinType, HistoCountType >::Histogram | ( | const std::string | name, | |
| HistoBinType | binW | |||
| ) | [inline] |
Creates a new bin with a specific bin width.
| binW | The width of the bin |
| SST::Statistics::Histogram< HistoBinType, HistoCountType >::Histogram | ( | const char * | name, | |
| HistoBinType | binW | |||
| ) | [inline] |
Creates a new bin with a specific bin width.
| binW] | The width of the bin | |
| name] | Pointer to a name of the histogram variable (this is a description for the statistic engine to use in output) |
| void SST::Statistics::Histogram< HistoBinType, HistoCountType >::add | ( | HistoBinType | value | ) | [inline] |
Adds a new value to the histogram.
The correct bin is identified and then incremented. If no bin can be found to hold the value then a new bin is created.
| HistoCountType SST::Statistics::Histogram< HistoBinType, HistoCountType >::getBinCountByBinStart | ( | HistoBinType | v | ) | [inline] |
Get the count of items in the bin by the start value (e.g.
give me the count of items in the bin which begins at value X).
| HistoBinType SST::Statistics::Histogram< HistoBinType, HistoCountType >::getBinEnd | ( | ) | [inline] |
Get the largest possible value represented by this histogram (i.e.
the highest value in any of items bins rounded above to the size of the bin)
| HistoBinType SST::Statistics::Histogram< HistoBinType, HistoCountType >::getBinStart | ( | ) | [inline] |
Get the smallest start value of a bin in this histogram (i.e.
the minimum value possibly represented by this histogram)
| HistoCountType SST::Statistics::Histogram< HistoBinType, HistoCountType >::getItemCount | ( | ) | [inline] |
Get the total number of items contained in all bins.
| HistoBinType SST::Statistics::Histogram< HistoBinType, HistoCountType >::getValuesSummed | ( | ) | [inline] |
Sum up every item presented for storage in the histogram.
1.6.1