1 #ifndef GENESIS_UTILS_MATH_HISTOGRAM_ACCUMULATOR_H_ 2 #define GENESIS_UTILS_MATH_HISTOGRAM_ACCUMULATOR_H_ 96 const_iterator
begin()
const;
98 const_iterator
end()
const;
130 bool integer_ranges =
false 145 std::map<double, double> values_;
146 size_t added_values_ = 0;
161 #endif // include guard
~HistogramAccumulator()=default
void swap(HistogramAccumulator &other)
Histogram class for accumulating and summarizing data.
Histogram build_uniform_ranges_histogram(size_t num_bins, bool integer_ranges=false) const
Container namespace for all symbols of genesis in order to keep them separate when used as a library...
Histogram helper class that collects data and builds a fitting Histogram.
void accumulate(double x, double weight)
const_iterator begin() const
const_iterator end() const
std::map< double, double >::const_iterator const_iterator
size_t added_values() const
Return the number of values that have been added to the Accumulator.
HistogramAccumulator & operator=(HistogramAccumulator const &)=default