45 WHistogram(
double min,
double max, std::size_t buckets = 1000 );
66 virtual std::size_t
operator[]( std::size_t index )
const = 0;
75 virtual std::size_t
at( std::size_t index )
const = 0;
82 virtual std::size_t
size()
const;
Container which associate values with (uniform width) bins (aka intervals or buckets).
virtual std::pair< double, double > getIntervalForIndex(std::size_t index) const =0
Returns the actual interval associated with the given index.
double m_minimum
The smallest value.
virtual double getBucketSize(std::size_t index=0) const =0
Return the size of one specific bucket.
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.
virtual std::size_t at(std::size_t index) const =0
Get the count of the specified bucket.
WHistogram(double min, double max, std::size_t buckets=1000)
Default constructor.
virtual std::size_t operator[](std::size_t index) const =0
Get the count of the specified bucket.
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.