28 #include "WHistogram.h"
33 m_nbBuckets( buckets )
40 WAssert( buckets > 0,
"Error: A histogram with a size of 0 does not make any sense." );
44 m_minimum( hist.m_minimum ),
45 m_maximum( hist.m_maximum ),
46 m_nbBuckets( hist.m_nbBuckets )
Container which associate values with (uniform width) bins (aka intervals or buckets).
double m_minimum
The smallest value.
virtual std::size_t size() const
Returns the number of buckets in the histogram with the actual mapping.
virtual double getMinimum() const
Returns the minimum value.
WHistogram(double min, double max, std::size_t buckets=1000)
Default constructor.
double m_nbBuckets
The number of buckets.
virtual ~WHistogram()
Default destructor.
double m_maximum
The biggest value.
virtual double getMaximum() const
Returns the maximum value.