#include <histogram.h>
Public Member Functions | |
Histogram (double binWidth) | |
Histogram () | |
void | AddValue (double value) |
uint32_t | GetBinCount (uint32_t index) |
double | GetBinEnd (uint32_t index) |
double | GetBinStart (uint32_t index) |
double | GetBinWidth (uint32_t index) const |
uint32_t | GetNBins () const |
void | SerializeToXmlStream (std::ostream &os, int indent, std::string elementName) const |
void | SetDefaultBinWidth (double binWidth) |
Private Attributes | |
double | m_binWidth |
std::vector< uint32_t > | m_histogram |
Definition at line 30 of file histogram.h.
ns3::Histogram::Histogram | ( | double | binWidth | ) |
Definition at line 94 of file histogram.cc.
References m_binWidth.
ns3::Histogram::Histogram | ( | ) |
Definition at line 99 of file histogram.cc.
References DEFAULT_BIN_WIDTH, and m_binWidth.
void ns3::Histogram::AddValue | ( | double | value | ) |
Definition at line 80 of file histogram.cc.
References m_binWidth, m_histogram, and NS_LOG_DEBUG.
Referenced by ns3::HistogramTestCase::DoRun(), and ns3::FlowMonitor::ReportLastRx().
uint32_t ns3::Histogram::GetBinCount | ( | uint32_t | index | ) |
Definition at line 73 of file histogram.cc.
References m_histogram, and NS_ASSERT.
Referenced by ns3::HistogramTestCase::DoRun().
double ns3::Histogram::GetBinEnd | ( | uint32_t | index | ) |
Definition at line 54 of file histogram.cc.
References m_binWidth.
double ns3::Histogram::GetBinStart | ( | uint32_t | index | ) |
Definition at line 48 of file histogram.cc.
References m_binWidth.
Referenced by ns3::HistogramTestCase::DoRun().
double ns3::Histogram::GetBinWidth | ( | uint32_t | index | ) | const |
Definition at line 60 of file histogram.cc.
References m_binWidth.
Referenced by ns3::HistogramTestCase::DoRun().
uint32_t ns3::Histogram::GetNBins | ( | ) | const |
Definition at line 42 of file histogram.cc.
References m_histogram.
Referenced by ns3::HistogramTestCase::DoRun().
void ns3::Histogram::SerializeToXmlStream | ( | std::ostream & | os, |
int | indent, | ||
std::string | elementName | ||
) | const |
Definition at line 106 of file histogram.cc.
References INDENT, m_binWidth, and m_histogram.
void ns3::Histogram::SetDefaultBinWidth | ( | double | binWidth | ) |
Definition at line 66 of file histogram.cc.
References m_binWidth, m_histogram, and NS_ASSERT.
Referenced by ns3::FlowMonitor::GetStatsForFlow().
|
private |
Definition at line 57 of file histogram.h.
Referenced by AddValue(), GetBinEnd(), GetBinStart(), GetBinWidth(), Histogram(), SerializeToXmlStream(), and SetDefaultBinWidth().
|
private |
Definition at line 56 of file histogram.h.
Referenced by AddValue(), GetBinCount(), GetNBins(), SerializeToXmlStream(), and SetDefaultBinWidth().