46 WHistogram(
double min,
double max,
size_t buckets = 1000 );
67 virtual size_t operator[](
size_t index )
const = 0;
76 virtual size_t at(
size_t index )
const = 0;
83 virtual size_t size()
const;
138 #endif // WHISTOGRAM_H
virtual size_t at(size_t index) const =0
Get the count of the specified bucket.
virtual std::pair< double, double > getIntervalForIndex(size_t index) const =0
Returns the actual interval associated with the given index.
double m_minimum
The smallest value.
double m_nbBuckets
The number of buckets.
virtual double getMinimum() const
Returns the minimum value.
virtual double getMaximum() const
Returns the maximum value.
virtual ~WHistogram()
Default destructor.
Container which associate values with (uniform width) bins (aka intervals or buckets).
virtual double getBucketSize(size_t index=0) const =0
Return the size of one specific bucket.
virtual size_t operator[](size_t index) const =0
Get the count of the specified bucket.
WHistogram(double min, double max, size_t buckets=1000)
Default constructor.
virtual size_t size() const
Returns the number of buckets in the histogram with the actual mapping.
double m_maximum
The biggest value.