@@ -32,7 +32,7 @@ namespace ipa {
* \brief Create a cumulative histogram
* \param[in] data A pre-sorted histogram to be passed
*/
-Histogram::Histogram(Span<uint32_t> data)
+Histogram::Histogram(Span<const uint32_t> data)
{
cumulative_.reserve(data.size());
cumulative_.push_back(0);
@@ -22,7 +22,7 @@ namespace ipa {
class Histogram
{
public:
- Histogram(Span<uint32_t> data);
+ Histogram(Span<const uint32_t> data);
size_t bins() const { return cumulative_.size() - 1; }
uint64_t total() const { return cumulative_[cumulative_.size() - 1]; }
uint64_t cumulativeFrequency(double bin) const;