stats: make Histogram::GetBinCount const

This commit is contained in:
Tommaso Pecorella
2023-05-19 23:43:21 +02:00
parent c4e1f0827e
commit 707860e11c
2 changed files with 2 additions and 2 deletions

View File

@@ -71,7 +71,7 @@ Histogram::SetDefaultBinWidth(double binWidth)
}
uint32_t
Histogram::GetBinCount(uint32_t index)
Histogram::GetBinCount(uint32_t index) const
{
NS_ASSERT(index < m_histogram.size());
return m_histogram[index];

View File

@@ -93,7 +93,7 @@ class Histogram
* \param index the bin index
* \return the number of data added to the bin
*/
uint32_t GetBinCount(uint32_t index);
uint32_t GetBinCount(uint32_t index) const;
// Method for adding values
/**