@@ -62,6 +62,12 @@ Histogram::Histogram(Span<const uint32_t> data)
* \return Number of bins
*/
+/**
+ * \fn Histogram::data()
+ * \brief Retrieve the internal data
+ * \return The data
+ */
+
/**
* \fn Histogram::total()
* \brief Retrieve the total number of values in the data set
@@ -36,6 +36,7 @@ public:
}
size_t bins() const { return cumulative_.size() - 1; }
+ const Span<const uint64_t> data() const { return cumulative_; }
uint64_t total() const { return cumulative_[cumulative_.size() - 1]; }
uint64_t cumulativeFrequency(double bin) const;
double quantile(double q, uint32_t first = 0, uint32_t last = UINT_MAX) const;